0001-L044.pck

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

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

Post Reply
Lorric
Posts: 297
Joined: Sat, 7. Jan 06, 12:18
x3tc

0001-L044.pck

Post by Lorric » Sun, 9. Feb 14, 20:57

Hi all,

I am looking for info on how the whole texts (in the t/ folder) system work, but I have not been able to find anything in the tutorial threads (for X3TC, X3R or X2).

Specifically I am looking for all the ship names in XRM for X3AP.

Is the file format described anywhere?

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Sun, 9. Feb 14, 22:31

A good reference for language files would be nice. If there is one, then I do not know it.

However, the format is fairly simple. Each file has pages. Each page has ID and value pairs. The ID's are used in scripts, and the actual values are specific to their languages.

Ship names are on Page 17. Note that there can be version-specific variations on pages. So, for example, Page 350017 is the AP variation of Page 17 (the "3500" prefix means "X3:Albion Prelude").

Pages can be in different text files. I would expect XRM's Page 17 to be in a different file (not 0001-L0xx). For XRM-specific info you should ask on the XRM thread.

Lorric
Posts: 297
Joined: Sat, 7. Jan 06, 12:18
x3tc

Post by Lorric » Mon, 10. Feb 14, 00:03

Well, you have already helped me. I wondered why some names were found in page 17 and others in 350017. And I suspected that I'd have to look through multiple files for the information - I guess the game loads them all and stores the info in memory based of page+id. I could do the same and just keep the relevant pages.

As for load order, I am guessing that it's simply sorted by the first four digits of the file name. And if the same page/id occurs twice, the latter will override the former.

dillpickle
Posts: 1159
Joined: Mon, 3. Nov 08, 14:25
x3tc

Post by dillpickle » Mon, 10. Feb 14, 07:12

DrBullwinkle wrote:Note that there can be version-specific variations on pages. So, for example, Page 350017 is the AP variation of Page 17 (the "3500" prefix means "X3:Albion Prelude").
Close... But not quite...

It's the first two numbers that are the game identifier:
300017 - X3 Reunion.
350017 - X3TC.
380017 - Albion Prelude.

The game only reads the last four numbers as the actual page ID.
Lorric wrote:And if the same page/id occurs twice, the latter will override the former.
The game can handle multiple instances of page ID's, and it will read from all instances of that page id loaded from multiple text files into your game, where you will get problems is if duplicate text id's are used in the same page id, the game will only use one of them.

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Mon, 10. Feb 14, 07:23

dillpickle wrote:
DrBullwinkle wrote:Note that there can be version-specific variations on pages. So, for example, Page 350017 is the AP variation of Page 17
Close... But not quite...
Actually, the way I said it is correct. :P

True, the game associates the first two digits with the version. But, in the case of page 17, the AP version is not "3517". It is "350017". I know that you know this, dillpickle... just clarifying for the OP. The difference is that vanilla page numbers can be up to 9999 (although custom page numbers can be larger -- presumably up to six digits).


Lorric wrote:And if the same page/id occurs twice, the latter will override the former.


Yes, I believe that is correct.

dillpickle
Posts: 1159
Joined: Mon, 3. Nov 08, 14:25
x3tc

Post by dillpickle » Mon, 10. Feb 14, 07:58

DrBullwinkle wrote: But, in the case of page 17, the AP version is not "3517". It is "350017".
No... The AP version is 380017, 350017 is X3TC version.
DrBullwinkle wrote:The difference is that vanilla page numbers can be up to 9999 (although custom page numbers can be larger -- presumably up to six digits)..
Custom page numbers can be as large as you like, but the game only reads the last four digits, so pageid="9999", pageid="99999" and pageid="999999" would all be read as pageid="9999" and duplicate textid's on these three pages would cause issues.

User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle » Mon, 10. Feb 14, 08:00

dillpickle wrote:No... The AP version is 380017, 350017 is X3TC version.
Heh.

Yep. :)

Post Reply

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