How to add completely new stuff to the T files
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 270
- Joined: Mon, 23. Feb 04, 15:03
How to add completely new stuff to the T files
As a by prodct of the mod I'm doing I' managed to add completely NEW stuff by adding new lines to Tfactories, Twares and T docks and messing with teh 440001 and 440002 xml files....
It works, nothing goes wierd, and they appear in the game as brand new items.
Should work for any T file.. enjoy
First unpack the highest numbered dat file and get the 440001.xml, 440002.xml and the Tfile your interested in.
1) Go into the 440002.xml file and find a free text refrence number. About half way through the file there is a ruddy great list of numbers, just pick a free one.
note down the number, and then create a new line for it in order with the other numbers.(It'll make sense when you see it...)
2) choose something similar to what you want to create to use as a template ( a ship, station, weapon etc.)
2) Go into the 440001.xml file. Find the description for the item you want to use as a template and note its text 'refrence number'
Also set up a title and description in the same format as the other things in there for the new item you are creating. Use your new number that you chose in step 1 as the text refrence. Make sure you create it in numerical order and in the same format as the other stuff in there.
Names of Ship/stations end in 1, their descriptions end in 2, Names of wares end in 3, thier descriptions end in 4.
eg.
3551 'chocolate factory'
3552 'this factory makes chocolate'
3553 'chocolate'
3554 'a very nice fatty snack normally made into bars'
Have a look at the titles and descriptions of a few stations/wares/ships etc to see what needs doing.
3) Go into the relevent 'T' file and identify the line for the item you want to use a as a template by the using its text refrence number.
4) copy the entire line to create a new entry AT THE BOTTOM of the Tfile.
5) Go back to the top of the Tfile. Right at the top you will see two numbers, the second is the number of lines in the file. Increase this by however many new lines you are adding.
Make any changes to the new line that you need to (hint -> stormfronts mod kit ) and replace the textID with the new one you chose in step 1.
BTW, if you are setting up a factory/station the owining races name will be appended to the objects description. That way you can use one description for multiple factories (EG crystal fabs I believe have the same description and were done by egosoft like this)
6) Pack the whole lot up into correctly numbered/structured .dat , plonk it in your X2 program folder an hey presto, a new item in X2.
It works, nothing goes wierd, and they appear in the game as brand new items.
Should work for any T file.. enjoy
First unpack the highest numbered dat file and get the 440001.xml, 440002.xml and the Tfile your interested in.
1) Go into the 440002.xml file and find a free text refrence number. About half way through the file there is a ruddy great list of numbers, just pick a free one.
note down the number, and then create a new line for it in order with the other numbers.(It'll make sense when you see it...)
2) choose something similar to what you want to create to use as a template ( a ship, station, weapon etc.)
2) Go into the 440001.xml file. Find the description for the item you want to use as a template and note its text 'refrence number'
Also set up a title and description in the same format as the other things in there for the new item you are creating. Use your new number that you chose in step 1 as the text refrence. Make sure you create it in numerical order and in the same format as the other stuff in there.
Names of Ship/stations end in 1, their descriptions end in 2, Names of wares end in 3, thier descriptions end in 4.
eg.
3551 'chocolate factory'
3552 'this factory makes chocolate'
3553 'chocolate'
3554 'a very nice fatty snack normally made into bars'
Have a look at the titles and descriptions of a few stations/wares/ships etc to see what needs doing.
3) Go into the relevent 'T' file and identify the line for the item you want to use a as a template by the using its text refrence number.
4) copy the entire line to create a new entry AT THE BOTTOM of the Tfile.
5) Go back to the top of the Tfile. Right at the top you will see two numbers, the second is the number of lines in the file. Increase this by however many new lines you are adding.
Make any changes to the new line that you need to (hint -> stormfronts mod kit ) and replace the textID with the new one you chose in step 1.
BTW, if you are setting up a factory/station the owining races name will be appended to the objects description. That way you can use one description for multiple factories (EG crystal fabs I believe have the same description and were done by egosoft like this)
6) Pack the whole lot up into correctly numbered/structured .dat , plonk it in your X2 program folder an hey presto, a new item in X2.
- Damar Stiehl
- Posts: 861
- Joined: Mon, 3. May 04, 02:54
-
- Posts: 270
- Joined: Mon, 23. Feb 04, 15:03
They will love him anyway because this opens new possiblities to every modder, cause they now can create new weapons, missles, new product
(enlarge the economy part of X2 by adding new Fabs with completly new wares), and IF it's possible to add new ships you'll become a legend
(enlarge the economy part of X2 by adding new Fabs with completly new wares), and IF it's possible to add new ships you'll become a legend
Eines ihrer Schiffe wird angegriffen...<<TRANTOR>>!!
-
- Posts: 270
- Joined: Mon, 23. Feb 04, 15:03
Dont know about being a legend.. but thanks for the thought
It definately works for factories (have created 11 new ones as part of the mod I'm doing), wares, and docks. All have been tried and work....
Just about to try a new ship...
It definately works for factories (have created 11 new ones as part of the mod I'm doing), wares, and docks. All have been tried and work....
Just about to try a new ship...
Last edited by marklaverty on Sat, 19. Jun 04, 23:17, edited 1 time in total.
-
- Posts: 270
- Joined: Mon, 23. Feb 04, 15:03
-
- Posts: 1957
- Joined: Sat, 7. Feb 04, 20:26
where can i download stormsongs mod kit for the tfactories?cause there are lots of numbers....
Es ist nicht das Schicksal, was die Zukunft bestimmt.
Script- und Modliste
Script- und Modliste
-
- Posts: 270
- Joined: Mon, 23. Feb 04, 15:03
Hi,
Double shadow just sent me a PM with some more info, and without getting all complicated... don't hold your breath for new ships and weapons.
There are apparently 'other' things that prevent the adding of lines to Tships and Trockets.
Will investigate further then post some results.
PS.. I just found out that this isn't the first sucessfull addition to a 'T' file, apparently ollisJ managed it with the 75mw shield mod...
Double shadow just sent me a PM with some more info, and without getting all complicated... don't hold your breath for new ships and weapons.
There are apparently 'other' things that prevent the adding of lines to Tships and Trockets.
Will investigate further then post some results.
PS.. I just found out that this isn't the first sucessfull addition to a 'T' file, apparently ollisJ managed it with the 75mw shield mod...