[SCRIPT] x0ne Turret Control System (TCS) 1.02 [UPDATED 31/12/2010]

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

xalien wrote:I still can't install it in my XTM game. I install the script with the newest plugin manager, load the game and get the message about error and telling me to check part 2.1 in the manual, but I did enebled custom wares and both script files mentioned in there are in their proper places.

I have also a weapons changer script installed, can this cause a conflict?
No conflicts with that script as far as I'm aware, the issue you're having is with the custom ware. Try opening and closing the PM, that may sort it out, and also check if your game is using the "PluginManager" mod (this is done from the X3 setup window, the one you see before the main game loads) - I've not been able to confirm it, but I've had one person tell me that in their game, the plugin wouldn't work without this.

asyikarea51 wrote:I am aware of turret problems (whatever the heck they are) with the Tyr though, maybe the Valhalla too...
Yes, the Valhalla has almost all the same turret issues as the Tyr (I've tested this myself in fact). You'll get instances where your turrets track targets that are outside their field of fire, and while they're doing this, they're not actually firing! :wink:

RexIG and asyikarea51 wrote:We want an "Attack My Target" mode!
This is actually the default behaviour of the plugin! :) The first step of the targeting process is to check what the player has targeted (or for AI controlled ships, the current "Attack Target"). If that target is in range it will be engaged.

Bear in mind though that only certain classes of ship will be engaged like this, these "Primary Targets" are covered at the beginning of section 3.3.1 in the readme, but for an M2 they are:

M1 M2 M6 M7 TL

This prevents an M2 from wasting it's time on smaller ships, as these may become auto-targeted due to the destruction of your last target, or you forgot you had an M5 selected, etc.

You can use the Re-Scan targets hotkey to make your turrets search for ships again (if you feel there's something more important they should be firing at), but If you want to force them to attack any ship or station though (neutral or enemy), then there is a "Attack My Target" hotkey in version 2.0. Basically you press it, and any turret that can hit your target will fire at it...

...great for taking out ejected pilots! :twisted:
plynak
Posts: 3010
Joined: Fri, 12. Dec 03, 08:53
x3tc

Post by plynak »

Hello xOne,


the default Attack my targets, is it working in 1.01? How can the turret know that it is an M7 target? Or does it consider M7 to be M1?
Intel Core i5 4590, 2 x 8GB DDR3 1600, MSI GTX 1060 Armor, Asus H97 Pro, Asus Xonar DG, Crucial MX100 128GB SSD + 1TB WD Caviar Blue, Seasonic S12G 550W, Corsair 550D, 22'' LG
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

plynak wrote:Hello xOne,

the default Attack my targets, is it working in 1.01? How can the turret know that it is an M7 target? Or does it consider M7 to be M1?
Not sure what you mean, are you refering to XTM? If so then yes, the plugin sees XTM M7s that are really M1s, as M1s - the same way the player sees them - so the default behavior won't work quite as well as it should (with XTM).

This will not be the case with the special XTM release of version 2.0 of this plugin though, I've already coded all the custom class handling! 8)
Zarrs
Posts: 7
Joined: Thu, 1. Dec 05, 15:24
x4

Post by Zarrs »

Hello,

well i tested now everything and nothing works... this Script wouldnt work at me...all i recieve is a ReadText 7215-1907 message which i recieve all the time so that i cant recieven anything else... if i uninstall this is away... if i install it comes back... no wares in the docks but it is still in the Script editor as i can put it manually on ships... but its not working.. i installed/uninstalled it 20times now and nothing changes.. got XTM installed and just the Fleet Responses Script (Redux VoelkerReaktionsstreitkräfte)

MfG
Zarrs
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

Zarrs wrote:Hello,

well i tested now everything and nothing works... this Script wouldnt work at me...all i recieve is a ReadText 7215-1907 message which i recieve all the time so that i cant recieven anything else... if i uninstall this is away... if i install it comes back... no wares in the docks but it is still in the Script editor as i can put it manually on ships... but its not working.. i installed/uninstalled it 20times now and nothing changes.. got XTM installed and just the Fleet Responses Script (Redux VoelkerReaktionsstreitkräfte)

MfG
Zarrs
Hmm, the text page 7215 (as in "all i recieve is a ReadText 7215-1907") is owned by XTM. Any readtexts that were mine would start with 7400 - have you been getting any like that?

You know what, this could be a language file issue. Are you running X3 in German? If so, find the file "447400.xml" in your "t" folder and rename it to "497400.xml" and see if that makes a difference. You may also need to change the line "<language id="44">" within the file to "<language id="49">", but I'm not sure so just try renaming the file first.

FYI this won't fix the readtexts you're getting from XTM I'm afraid. :cry:
Last edited by x0ne on Tue, 7. Aug 07, 11:33, edited 1 time in total.
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

x0ne wrote:You know what, this could be a language file issue. Are you running X3 in German? If so, find the file "447400.xml" in your "t" folder and rename it to "497400.xml" and see if that makes a difference. You may also need to change the line "<language id="44">" within the file to "<language id="49">", but I'm not sure so just try renaming the file first.
Ok forget that, I forgot that the Plugin Manager automatically renames the language files... :roll:

Seeing as that readtext you mentioned is from XTM, could you tell me what's being written to the player log when you install the plugin? There should be something, even if it's a readtext beginning with 7400 instead of 7215.
Zarrs
Posts: 7
Joined: Thu, 1. Dec 05, 15:24
x4

Post by Zarrs »

i only get the readtext as i wrote above... nothing more or less sry :) yes ive got german version ;) and i get a sound of a woman who tells me something goes wrong, that repeats if i try to start the setup.xxx.xxx dont remember from ur script.. il try to rename the file maybe it works :)

edit1:i try but nothing changed, maybe its incompatible to german :/

edit2:i also changed the languageid to 49 now, now it seems to work, but i get spammed with the readtext message -.- ... the software is in the docks now with 18million ;) but this spamm of message is all the way every millisecond, im lucky its only with sound when i read it :)
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

Zarrs wrote:i only get the readtext as i wrote above... nothing more or less sry :) yes ive got german version ;) and i get a sound of a woman who tells me something goes wrong, that repeats if i try to start the setup.xxx.xxx dont remember from ur script.. il try to rename the file maybe it works :)

edit1:i try but nothing changed, maybe its incompatible to german :/

edit2:i also changed the languageid to 49 now, now it seems to work, but i get spammed with the readtext message -.- ... the software is in the docks now with 18million ;) but this spamm of message is all the way every millisecond, im lucky its only with sound when i read it :)
Ok that's interesting, the Plugin Manager should be renaming the 447400.xml file for you so it matches your default language setting.

What was happening before you renamed it was that it couldn't read the wareid SS_WARE_X0NE_TCS_INT from the file, so it threw the custom ware error every time you started the game with the plugin installed.

I'm pretty sure the only problem you have is that your language settings in the Plugin Manager are wrong (and this could explain why you're getting readtexts from XTM too). Have a look at the language settings, there should be an option to rename text files like "Set Language Automatically", this is what you need to use. After setting this you may have to re-install all your scripts, so please please please test the change first, and make a backup of everything just in case.

Please do not run the plugin with the renamed language file - it's proved a point, but you should change it back before you save! I don't know what all those readtext errors are you're getting, but getting so many of them all the time can't be good!
Blah!
Posts: 19
Joined: Wed, 25. Feb 04, 22:33
x3tc

Post by Blah! »

Hi i also have german version of X3 and use XTM 0.72 Mod
i got that thing to work but there is a Readtext problem

in the Dock´s wer u can buy it it shows as:


Readtext17-10253


for 983.024 credits to Buy



I can buy this and then i have the comands for turrets.
they work so fare i saw wepon changing works also.

The energy save comand will not work.
after i input 20 ( for 20%) the Computer Voice says: Comand not executable.
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

Blah! wrote:Hi i also have german version of X3 and use XTM 0.72 Mod
i got that thing to work but there is a Readtext problem

in the Dock´s wer u can buy it it shows as:


Readtext17-10253


for 983.024 credits to Buy



I can buy this and then i have the comands for turrets.
they work so fare i saw wepon changing works also.
Ok just to clarify...

Any readtext error on the name of the ware this plugin uses is a problem with Custom Wares (and these are managed by the Plugin Manager). Best to speak to Cycrow about your particular problem because the price is wrong too - should be 18 million cr. Sorry I can't be of more help, this issue is a bit beyond my knowledge I'm afraid. :cry:

Readtext errors that start with 7400 are caused by the language file for this plugin either being incorrect or missing, but because the plugin is working, I know that this file is installed on your machine. You're not getting any readtext errors on the command names or confirmation/error messages right?

Readtext errors that don't start with 7400 are nothing to do with this plugin (with the obvious exception of the ware name and command names/descriptions :wink:).

Blah! wrote:The energy save comand will not work.
after i input 20 ( for 20%) the Computer Voice says: Comand not executable.
Now this I can help you with! :) The energy reserve is for your ships main guns (turret 0), so if you've got no main guns (like on a lot of big ships), there's no point setting a reserve and you'll get the "command rejected" error.

I suppose you could also get this error if there was a problem with your ships scene file and the main cockpit was bugged, but there wouldn't be much I could do about that I'm afraid! :wink:
Blah!
Posts: 19
Joined: Wed, 25. Feb 04, 22:33
x3tc

Post by Blah! »

ok thankes x0ne

u did 50% Help me
what is 1 out of 2

u was right i had no main guns just turrets

thats why i had no energy save

i change to main gun Ship then the energy save works

Energy Save Problem is Solved Thanke a u.

for the read txt thing i ll try contact cycrow


BUT LATER

now i want use ure Speciale wepone Script ingame Hehe xD

if i would know were this read txt 10-blabla Error is to be found
I would fix this self and enter a valid TxT to bad cycrow installer suxs a bit in german X3 Language with English Files :(
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

@Blah!:

Cool, glad I was of some help then!

I don't think it's a language compatibility problem with the Plugin Manager and Custom Wares. The way it uses these wares is to generate a .cat file and language file for them, and then reference this via a script within the game. I think all that has happened is the info in these files has got out of sync somehow...?
Star_Raider15
Posts: 1212
Joined: Thu, 15. Jun 06, 08:08
x3

Post by Star_Raider15 »

xalien wrote:I still can't install it in my XTM game. I install the script with the newest plugin manager, load the game and get the message about error and telling me to check part 2.1 in the manual, but I did enebled custom wares and both script files mentioned in there are in their proper places.

I have also a weapons changer script installed, can this cause a conflict?
i have the same problem, how do you fix it?
it worked fine, until i changed to my boreas for an XI mission, when i selected "turret options" i only got the vanilla ones
i then exited the game, entered the script manager, and i enabled/disabled it, then i ticked the costum wares button several times, making sure that the last time i ticked it it was activated
what now?
The answer is just another question.
Zarrs
Posts: 7
Joined: Thu, 1. Dec 05, 15:24
x4

Post by Zarrs »

x0ne wrote: Ok that's interesting, the Plugin Manager should be renaming the 447400.xml file for you so it matches your default language setting.

What was happening before you renamed it was that it couldn't read the wareid SS_WARE_X0NE_TCS_INT from the file, so it threw the custom ware error every time you started the game with the plugin installed.

I'm pretty sure the only problem you have is that your language settings in the Plugin Manager are wrong (and this could explain why you're getting readtexts from XTM too). Have a look at the language settings, there should be an option to rename text files like "Set Language Automatically", this is what you need to use. After setting this you may have to re-install all your scripts, so please please please test the change first, and make a backup of everything just in case.

Please do not run the plugin with the renamed language file - it's proved a point, but you should change it back before you save! I don't know what all those readtext errors are you're getting, but getting so many of them all the time can't be good!
I Checked the Plugin-Manager and its already set to Automatic.. or should i try setting it manualy to 49?
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

Star_Raider15 wrote:i have the same problem, how do you fix it?
it worked fine, until i changed to my boreas for an XI mission, when i selected "turret options" i only got the vanilla ones
i then exited the game, entered the script manager, and i enabled/disabled it, then i ticked the costum wares button several times, making sure that the last time i ticked it it was activated
what now?
EDIT: "it worked fine, until i changed to my boreas" - Sorry I didn't pick up on this before (and I could be wrong), but the x0ne TCS Interface is aboard your Boreas right? The TCS only works on a ship that has this upgrade. If I'm barking up the wrong tree please ignore and read on :D

So it was working ok, but now you get an error message when you start your game, is that right?

If you don't get an error and the Argon and Spilt EQ docks list the ware as something they supply, check you've not accidentally removed the ware from your ship! :wink: If you are getting the error message though, please do the following:

I doubt you're missing any files, but check for nn7400.xml in your t folder (where nn is the language code of your game - this would be 44 if you're running X3 in English), and plugin.scriptmanager.getware.xml in the scripts folder (and if you're running version 2.x of the Plugin Manager, plugin.plugman.getware.xml in the scripts folder too).

If all of these are present, make sure you're not missing any plugin files by re-installing the plugin again - don't uninstall, just use the Install New Script button to install the plugin over the top of what's already there. Once you've done this, test the game because it may have fixed it.

If not, open the Plugin Manager, disable custom wares, close the Plugin Manager, open the Plugin Manager again (yes that's right, close it and open it!) and enable the custom wares. The Plugin Manager makes most of its changes when it closes, so this should force the ware changes.

If it's still not working by this point, open up the Plugin Manager, uninstall the plugin (just remove it, don't install the uninstaller), disable custom wares, close the Plugin Manger, open it up again, install the plugin and enable custom wares.

Hopefully that should be it!
Last edited by x0ne on Tue, 7. Aug 07, 20:17, edited 1 time in total.
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

Zarrs wrote:I Checked the Plugin-Manager and its already set to Automatic.. or should i try setting it manualy to 49?
Yes, set it manually to 49 - that should fix the XTM readtexts as well.
Star_Raider15
Posts: 1212
Joined: Thu, 15. Jun 06, 08:08
x3

Post by Star_Raider15 »

i did everything that you said, but still it doesnt work, and even more strange is the fact that the TCS is listed in the split and argon eq docks, but when i buy it, i dont see any other commands

i think this is a bug and needs to be adressed x0ne :)
The answer is just another question.
Zarrs
Posts: 7
Joined: Thu, 1. Dec 05, 15:24
x4

Post by Zarrs »

x0ne wrote:
Zarrs wrote:I Checked the Plugin-Manager and its already set to Automatic.. or should i try setting it manualy to 49?
Yes, set it manually to 49 - that should fix the XTM readtexts as well.


well okay i got the message thats everything is fine... but you have right.. this stupid readtext comes from another thing... i don´t know what i ´ve done -.- what does all those readtext failures mean? that something is set wrong or just "missing" ? ^^
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

Star_Raider15 wrote:i did everything that you said, but still it doesnt work, and even more strange is the fact that the TCS is listed in the split and argon eq docks, but when i buy it, i dont see any other commands

i think this is a bug and needs to be adressed x0ne :)
Yeah, well something's wrong for sure. Trouble is, if you knew how simple the code was to get the plugin commands appearing on a ship, you'd be as confused as me right now! :wink:

Would you mind helping me figure this out? Just a few questions...

This is a joke right, you're having me on? :D
Are you getting any error message from the plugin in your logbook?
Are you running version 1.01 of the plugin?
What other scripts have you got installed?
Do you still get the problem if you start a new game?

If you're running 2.x of the Plugin Manager, could you open the installer and go to Advanced | Game Resources | Command Conflicts and tell me what it says for TURRET_40 to TURRET_44 (if anything).

Have you got any cheat scripts installed, or know how to script a ware onto your ship? If so, do the commands show up if you script/cheat in the x0ne TCS Interface?

That's all, it would really help if you could get back to me with this!

p.s. Do you know how to edit scripts - might ask you to comment out a line in the setup script later...
Last edited by x0ne on Wed, 8. Aug 07, 00:29, edited 2 times in total.
x0ne
Posts: 173
Joined: Sun, 9. Apr 06, 21:49
x3tc

Post by x0ne »

Zarrs wrote:well okay i got the message thats everything is fine... but you have right.. this stupid readtext comes from another thing... i don´t know what i ´ve done -.- what does all those readtext failures mean? that something is set wrong or just "missing" ? ^^
Sorry mate I don't know, never seen anything like that before. Perhaps it would be better to start a new thread about this?

Return to “X³: Reunion - Scripts and Modding”