[SCRIPT]Port of Terracorp Fleet package

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

[SCRIPT]Port of Terracorp Fleet package

Post by BlackRain »

Ok, here is the release of the script but please remember it is in its' Alpha stage. I can't be responsible if it messes up your save games, but I don't think it will. There are several known issues I have to look in which I will list below.

http://rapidshare.com/files/174498448/T ... _v1.11.spk

This is not my script, this is a port of the Original Terracorp Fleet package which Eladan has given permission to port

You can go to the following link for further information of the original file and authors: http://forum.egosoft.com/viewtopic.php?t=146187

I have also added in the extra additional commands from RRRoamer but I am not sure if they are working correctly, I didn't test them.


Current Known issues

There is a known issue with the new way that TC handles colors in scripts. I have had to painstakingly go through the process of testing this out and it has been rather frustrating. The issue is that if I use the original coding from X3R \033Cname\033X the names and ranks will in fact be in color, however, they will not print to the logbook. It will come up as unknown and be blank. I had read the answer to this was to use the [cyan]text[/cyan] coding but this is not entirely accurate. It is true that by using the [cyan]text[/cyan] coding you have messages print to the logbook in color, however, this does not work with names. So if I use this code with names then the name will show up in game like this: [yellow]rank[/yellow][cyan]name[/cyan] So unfortunately to get around this, I had to leave the ranks and names as the default color. However, messages will print to the logbook in color. Until I can get more info on what is the proper way to do this I will have to leave it like this.


Currently the Tender isn't working exactly as it should. I have to look at the coding and attempt to fix it if I can. It does purchase items and seems to be equipping my fighters but it is also buying things which are not necessary. This is most likely just an issue because of the porting. I am going to look into it further.

Not really an issue, but just so you know. When running the fighter base, it will purchase ships which are not outfitted. The tender will equip the M5's with weapons and shielding but it is slow to do it. Therefore, the ships on patrol will most likely NOT engage enemies because they are not outfitted fully. Also, so far from what I have seen the ships were not equipped with engine tuning, rudder optimization and cargo. I don't remember if it was the same originally in X3R or not.

When you set up the Fighter base, make sure to then go into the command console for the station again and choose advanced options. This will allow you to choose what sector you want to patrol. This uses the OLD menu system which X3R uses, but it is fine because it is just one option and it works correctly.

Some fixes which had to be made or are being looked into. I will try to implement them if I can!

1) I had to fix the combat targeting, it had the same problem as the script that Onesch ported. It was not targeting enemies correctly but it is fixed.

2) I am looking into having ships in a TF use jumpdrives (m6 and up)

3) Looking into adding more ships to patrols.


Version Changes

Version 1.11 - Just a small fix. One of the messages was coming up as unknown message.

Version 1.1 fixed issues with the promotion script and names not being generated correctly
Last edited by BlackRain on Thu, 18. Dec 08, 11:20, edited 7 times in total.
russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo »

Great stuff. Just some thoughts, as you are probably well aware of anyway:

Need to increase or allow changes in patrol size and makeup
Need to fix Fighter Base supply routines.

And if one day, there could be the option for the Task Force to actually go on patrol with its fighters doing their patrols, that would be phenomenal.

Good luck. Wish I knew this scripting stuff, I would be more than happy to help.
Meros
Posts: 83
Joined: Thu, 4. Nov 04, 20:44
x3tc

Post by Meros »

Can't wait to try it out :)
dminor
Posts: 1083
Joined: Sun, 14. Oct 07, 00:16
x3tc

Post by dminor »

How is it different from this script?


http://forum.egosoft.com/viewtopic.php?t=224038



You should pm eladen if you need any questions answered.
" I'm a Sexy Shoeless GOD of WAR " Belkar
Ravenholme
Posts: 246
Joined: Sat, 18. Nov 06, 15:54
x3tc

Post by Ravenholme »

I think BlackRain's is one of the more recent and more stable versions.
Meros
Posts: 83
Joined: Thu, 4. Nov 04, 20:44
x3tc

Post by Meros »

As far as I know, the terracorp version includes combat tours and taskforce, like the "Piloten" one.
In addition the Blackrain port of the Terracorp version should also include fighterbase commander and options for m7's and some more ranks.
Not 100% sure on this, so dont hold me to it ;)
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

The Terracorp Fleet package is far newer then the port that Onesch did of myros' original script. It has more features, more ranks, it also has the Fighter base which will automatically purchase ships and wares to equip your fighters, etc.


Russbo, with an admiral leading your task force fleet you can have as many ships patrolling as you want, it is unlimited. Do you mean the normal combat tour function that you initiate yourself or the Task force that is led by a captain or up rank? Yes, the Fighter base will not be functioning as well as it should yet until I update the supply routines but it does function.

What do you mean the Task force go on patrol with its fighters doing their patrols? The fighters do go on patrol so I am a little confused by this.
User avatar
TSM
Not a Moderator
Posts: 2947
Joined: Thu, 1. Jul 04, 12:31
x4

Post by TSM »

looks like cool idea, also can't wait BlackRain less sleeping and eating and more scripting please :wink:
FAQ's Egosoft Interactive FAQ
Egosoft Wiki
Ravenholme
Posts: 246
Joined: Sat, 18. Nov 06, 15:54
x3tc

Post by Ravenholme »

I agree, am greatly looking forward to this :D
Thrandisher
Posts: 357
Joined: Sun, 1. Jul 07, 03:33
x4

Post by Thrandisher »

Ya, gonna have to agree. Less replying/sleeping/eating, more work on porting ;)

Does sound like a fun thing to play around with tho. Never used it before.
dminor
Posts: 1083
Joined: Sun, 14. Oct 07, 00:16
x3tc

Post by dminor »

I seriously suggest u pm Eladan. He was in the middle of testing a new patrol script for TCCP(X3R) before TC came out. He was also increasing the size of the patrols, up to 5 ships, and having the M6's to M1's patrol their assigned sectors. There was also plans for an Alert wing that would jump to any of the 5 sectors.

And watch out for the tender. It never did work properly.


Asser69: Its a money pig, Slow to get started but lots of fun. All my X3R games where based around TCCP.
" I'm a Sexy Shoeless GOD of WAR " Belkar
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

Dminor, eladan said he wont be getting to that anytime soon. It could be several months before he finishes it so we will have to make do with what we have now. I will try to look into updating it. I am not an advanced scripter and am still learning so please be patient. Also, any help is appreciated. I will have the script up within the hour.
eladan
Posts: 7168
Joined: Sat, 7. Jan 06, 16:01
x4

Post by eladan »

@Blackrain, while you're right that I won't be doing any scripting anytime soon, I'm happy to give you a hand if you need some help getting up to speed. I'm also perfectly fine if you don't want/need that help. :)

Quick suggestion - you may not want to use the very latest version for the conversion. You'd need to do a bit of messing around to remove the dependence on the BBS start if you used that, as the BBS doesn't exist in TC.
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

Thanks Eladan, I could use your help since I am still learning myself. Don't worry about the BBS, I got the script to work just fine by deleting all references to the BBS.

Also, Eladan, tell me more about the Gender patch. I also deleted all references and files pertaining to the Gender patch as it doesn't seem necessary? But I could be wrong.
eladan
Posts: 7168
Joined: Sat, 7. Jan 06, 16:01
x4

Post by eladan »

The gender patch personalised the reports and messages a bit better by using gender pronouns. Previously, whenever a pilot was referenced, I would use the name (I think I managed to avoid any use of 'it' :roll:) but it was a little wooden. Sounded much nicer with the gender patch.

Is there an issue with porting it? It's certainly not a necessary component, but it's not a bad addition either.
Thrandisher
Posts: 357
Joined: Sun, 1. Jul 07, 03:33
x4

Post by Thrandisher »

Blackrain, have you looked at unitraders lib he released for color text?

http://forum.egosoft.com/viewtopic.php? ... c&start=15

Not sure if that would help or not for the color problem.
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

I was having some issues with it, it was giving me some kind of readtext error. Instead of showing the name properly, it was saying readtext error but I couldn't figure out why.

I tried getting the lib to work with the SNM script that unitrader released but I couldn't get it to work.
Thrandisher
Posts: 357
Joined: Sun, 1. Jul 07, 03:33
x4

Post by Thrandisher »

Ahh, np then. Ive seen it used in a few scripts for the messages, figured id put it out there for you in case that was the problem.
dminor
Posts: 1083
Joined: Sun, 14. Oct 07, 00:16
x3tc

Post by dminor »

Hey Blackrain I wasn't trying to be negative just helpful. Sorry if it came across that way.


I spent the last year and a 1/2 lurking in the old TCCP thread. I'll be lurking here now too.


I'll put my name in the hat to help you test if you want
" I'm a Sexy Shoeless GOD of WAR " Belkar
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

I didn't think you were being negative at all. There is only so much I can do based on my experience. Eladan is much more experienced then me.

Eladan, I will keep the patrols and such as is (3 ships) If you have already changed this to 5 then if you can send me the file that would be great. Or if you could give me instructions how I could go about that then that would be great too.

Also if you have the changes to the patrols, as in M6 and up going on patrol, etc. finished, please if you can give me the files that would be great too!

Ok the script is out. Please let me know of any problems.
Last edited by BlackRain on Sun, 7. Dec 08, 07:49, edited 1 time in total.

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”