0001-L044.pck
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
0001-L044.pck
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?
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?
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
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.
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.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
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.
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.
-
- Posts: 1159
- Joined: Mon, 3. Nov 08, 14:25
Close... But not quite...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").
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.
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.Lorric wrote:And if the same page/id occurs twice, the latter will override the former.
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Actually, the way I said it is correct.dillpickle wrote:Close... But not quite...DrBullwinkle wrote:Note that there can be version-specific variations on pages. So, for example, Page 350017 is the AP variation of Page 17
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.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 1159
- Joined: Mon, 3. Nov 08, 14:25
No... The AP version is 380017, 350017 is X3TC version.DrBullwinkle wrote: But, in the case of page 17, the AP version is not "3517". It is "350017".
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.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)..
- DrBullwinkle
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Heh.dillpickle wrote:No... The AP version is 380017, 350017 is X3TC version.
Yep.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)