Where do you find warelists?

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

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

Speedsterworld
Posts: 69
Joined: Wed, 5. Jan 05, 09:41
x2

Where do you find warelists?

Post by Speedsterworld »

I'm looking for the file containing the warelists, the pageid and such, with all the t id=# for each ware...
for example: <t id="327691">Xenon Station</t>
I need to know which file that is found in... thanks.
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

they're in [/b]440001.xml[/b].

This maybe a .pck so you'll need something to extract it first.
Speedsterworld
Posts: 69
Joined: Wed, 5. Jan 05, 09:41
x2

Post by Speedsterworld »

in 04.cat?, what exact page id #? I really can't seem to find it. And I do have the X2 editor to unpack pck files and use Text Resource editor and such, just can't seem to find the right page id inside 440001.xml that has the warelist. Thanks for all the help :)
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

try the 01.dat

it's years, literally, since I extract X2 but I think that's where you'll find what you want.
Speedsterworld
Posts: 69
Joined: Wed, 5. Jan 05, 09:41
x2

Post by Speedsterworld »

well i'm able to find all the 440001.xml's i just can't find which pageid, has the list, I see all the sectornames, boardcomp stuff, and racenames, but I can't find the warelist :P, honestly does an X3/X2 egosoft coder not browse the forums?
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

It is in 440001

try CTRL + F and type the ware you want once opened.
LV's TC Scripts
Readme's For All My Scripts


I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced

si tacuisses, philosophus mansisses
Speedsterworld
Posts: 69
Joined: Wed, 5. Jan 05, 09:41
x2

Post by Speedsterworld »

Hmm still can't find it. the CTRL + F only looks down the left column, the page id's, not the t id's... so it doesn't help, searching for 'ware' only brings up ware transport class. I need the warelist for working on my external script editor, so I can match it up to things in the codearray like <sval type="int" val="393229"/> which is the Paranid Crystal Fab, but I need the list so I can get the computer to figure that out for itself automatically.
This is one big thing stopping me from finishing my script compiler part of the editor, which will be my first release of it. So you can take a script from the game, and edit the xml parts that you can actually understand like;
<line linenr="001" indent=""><var>$stat = </var><var>Paranid Crystal Fab M</var></line>

then maybe make a few of those lines, then run it through my compiler, and it'll write the proper codearray into the file so the game reads it properly. So help finding these warelists/ids would be greatly appreciated.
User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked »

Sorry can't answer you, but if you're planning to write an external script editor, you should give a look at this topic. (i believe there's another related topic with additional info, but i can't find it).
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station
Speedsterworld
Posts: 69
Joined: Wed, 5. Jan 05, 09:41
x2

Post by Speedsterworld »

Serial Kicked wrote:Sorry can't answer you, but if you're planning to write an external script editor, you should give a look at this topic. (i believe there's another related topic with additional info, but i can't find it).
Ya that's where I got a lot of my information from, and ironed out all the things I needed, just a couple steps away here, need the ware id's, I got the german ware id list from the XTern external X script viewer, but I need the english version :P. Wish I knew where the maker of that retreived his list from, it should be plain and simple, but it just doesn't seem to be that way. The game has to be getting that info from somewhere.

Anyways, I think after I get this warelist what i'll have left is just parsing text to have it match up with ID's automatically, and input the #'s into the right spots and it's done, i've already made it print out each entry set(sval's) for the version, name, description, and such, I figure i'm only a few steps away.
Speedsterworld
Posts: 69
Joined: Wed, 5. Jan 05, 09:41
x2

Post by Speedsterworld »

OK an update on this, i've created my own warelist with the proper t id's in english, if you're interested in a copy of this list, PM(private message) me. Here's a sample of it.
  • <t id="327680">Free Argon Trading Station</t>
    <t id="327681">Split Trading Port</t>
    <t id="327682">Paranid Trading Dock</t>
    <t id="327683">Royal Boron Trading Station</t>
    <t id="327684">Teladi Trading Station</t>
    <t id="327685">Xenon Station</t>
    <t id="327686">Argon Equipment Dock</t>
and closer to the end of it:
  • <t id="1048617">Strafe Drive Extension</t>
    <t id="1048618">Mass Driver Ammunition</t>
    <t id="1048620">Camera Drone</t>
    <t id="1048621">Advanced Satellite</t>
    <t id="1048622">Spacefly Collector</t>
    <t id="1048623">Ore Collector</t>
though i'm a little stumped now, I can now compile scripts that have just VAR = ware ...
that's a very simple procedure now that I have the warelist.
But the thing that's stumped me, is I decided to do
VAR = ware + ware ...
and it's added 6 more sval entries, even though there's only 2 more items, going to have to research this a bit more thoroughly. Again any help would be appreciated.
Speedsterworld
Posts: 69
Joined: Wed, 5. Jan 05, 09:41
x2

Post by Speedsterworld »

In continuation i've discovered more things about the codearray and will be moving this discussion over to that Codearray Discussion Topic when I get back from my visit out of town this weekend. But for now here it is, the codearray chunk described in some detail,

$stat = ware + ware - ware + ware * ware / ware mod ware
<sval type="array" size="43">
<sval type="int" val="104" />
<sval type="int" val="0" />
<sval type="int" val="13" />
<sval type="int" val="9" /> AND
<sval type="int" val="327680" /> WARE
<sval type="int" val="9" /> AND
<sval type="int" val="327680" /> WARE
<sval type="int" val="15" /> MOD
<sval type="int" val="11" /> +
<sval type="int" val="9" /> AND
<sval type="int" val="327680" /> WARE
<sval type="int" val="15" /> MOD
<sval type="int" val="12" /> -
<sval type="int" val="9" /> AND
<sval type="int" val="327680" /> WARE
<sval type="int" val="9" /> AND
<sval type="int" val="327680" /> WARE
<sval type="int" val="15" /> MOD
<sval type="int" val="13" /> *
<sval type="int" val="9" /> AND
<sval type="int" val="327680" /> WARE
<sval type="int" val="15" /> MOD
<sval type="int" val="14" /> /
<sval type="int" val="9" /> AND
<sval type="int" val="327680" /> WARE
<sval type="int" val="15" /> MOD
<sval type="int" val="15" /> MOD
<sval type="int" val="15" /> MOD
<sval type="int" val="11" /> +
<sval type="int" val="13" /> *
<sval type="int" val="-1" />
<sval type="int" val="11" /> +
<sval type="int" val="-2" />
<sval type="int" val="12" /> -
<sval type="int" val="-4" />
<sval type="int" val="11" /> +
<sval type="int" val="-6" />
<sval type="int" val="13" /> *
<sval type="int" val="-7" />
<sval type="int" val="14" /> \
<sval type="int" val="-9" />
<sval type="int" val="15" /> MOD
<sval type="int" val="-11" />
</sval>

i'll go into more detail on the other forum after this weekend, hope this comes handy for someone, or helps them help me :)

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