I'm going insane! (altering current factories/wares)

The place to discuss scripting and game modifications for X²: The Threat.

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

Kuro
Posts: 87
Joined: Sat, 17. Apr 04, 20:45
x3tc

I'm going insane! (altering current factories/wares)

Post by Kuro »

*sigh*

I'll start by writing down what I've done so far, to get it out of the way:

I have edited the 440001.xml and 440002.xml files to give the names and description of both the station and the weapon to be made (lasertower weapon).

I have edited the TFactories.txt, replacing the argon "weapon component factory" with the station I'm working on. Example:

*OLD*
1;0;0;0;0;1;2041;108;-1.2;-3;200;4026;32;1;37;38;7500;10000;25;20;5;SS_FAC_A_TECH204;

*NEW*
1;0;0;0;0;1;7831;108;-1.2;-3;200;4026;32;1;37;38;7500;10000;25;20;5;SS_FAC_A_OL;

The factory is named correctly, and can be purchased and built correctly.

The station has no products!

I was trying to follow the example laid out in both the "75mw sield mod" and this thread: http://www.egosoft.com/x2/forum/viewtopic.php?t=51132

I've got a factory with no products, that uses the default wares (ore, energy, etc.) to produce this big batch of nothing. I've edited the TFactories.txt, 440001.xml, and 440002.xml files. From OllisJ's "75mw shield" mod I downloaded, these appear to be the only files I *need* to modify in order to end up with what I'm trying to build.

I have poked around in the TWare files, but there are no references to any of the shields or weapons that any of the other factories produce (for any reference).

I'm lost!

Help!
Kuro
Posts: 87
Joined: Sat, 17. Apr 04, 20:45
x3tc

Post by Kuro »

No pointers?

Any links?

I've tried that one in my first post, and have tried everything I can think of. Have I gone wrong somewhere?
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

create a script that puts the proper wares in all stations of that type
Xenon_Slayer
EGOSOFT
EGOSOFT
Posts: 13129
Joined: Sat, 9. Nov 02, 11:45
x4

Post by Xenon_Slayer »

Welcome to my nightmare. I have the same problems.
Come watch me on Twitch where I occasionally play several of the X games
Kuro
Posts: 87
Joined: Sat, 17. Apr 04, 20:45
x3tc

Post by Kuro »

Is a script the *only* way? I downloaded that "75mw shield" mod, and it didn't have any scripts packed inside. That's a mod that creates an all-new item, and I'm only trying to use one that is pre-existing.

I did find one thing interesting, however. All it takes to break the production is to change the description number in the TFacts file. It changes the name of the station, but also breaks everything else. I've tried mucking about in the .xml files, but with no success so far.

Oh well, guess I'll experiment more after work.
Bezredahl
Posts: 136
Joined: Sun, 13. Jun 04, 01:14
x2

Post by Bezredahl »

look here: http://www.egosoft.com/x2/forum/viewtopic.php?t=53228


don't change what's already there, add new and script the prods and res's

I should have a very functional example, very soon........
You ask me who I am when I'm alone.
I am never alone, for Death is always with me.......

Return to “X²: The Threat - Scripts and Modding”