0001-L044 - internal logic regarding sector names

The place to discuss scripting and game modifications for X³: Farnham's Legacy

Moderators: Scripting / Modding Moderators, Moderators for English X Forum, Moderators for the X3:FL Forums

iXenon
Posts: 177
Joined: Wed, 1. Jun 22, 20:00

0001-L044 - internal logic regarding sector names

Post by iXenon »

I'm trying to extract all sector names from the 0001-L044 XML file. I have found these related pages id:
  • # id= "7" title="Boardcomp. Sectornames" descr="Names of all sectors (spoken by Boardcomputer)"
  • # id="300007" title="Boardcomp. Sectornames" descr="Names of all sectors (spoken by Boardcomputer)"
  • # id="350007" title="Boardcomp. Sectornames" descr="Names of all sectors (spoken by Boardcomputer)"
  • # id="380007" title="Boardcomp. Sectornames" descr="Names of all sectors (spoken by Boardcomputer)"
  • # id="390007" title="Boardcomp. Sectornames" descr="Names of all sectors (spoken by Boardcomputer)"
  • # id="9" title="Boardcomp. letters" descr="Spoken latin letters"
  • # id="12" title="Boardcomp. greek" descr="Spoken greek letters"
I'm a bit confused here. First, there is no single page id that contains the whole list. We have several xxxxx7 pages with similar content instead. Second, there are "links" that actually aren't exist. For example, the first line of "390007" refers to

Code: Select all

 <t id="1">{7,1021519}(Hollow Infinity)</t>
I understand it in that way that this is a reference to page id "7" and its internal entry id "1021519". But that page id doesn't have such id. Moreover, this entry presents one more time as a reference in "350007" and that's all:

Code: Select all

 <t id="1021519">{7,30030}(Hollow Infinity BORON SECTOR 18-14)</t>
And again, the page id "7" doesn't has the internal entry "30030".

What is the logic behind? How can I follow it and get the full actual sector list that the game has?
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22436
Joined: Sun, 14. Nov 04, 23:26
x4

Re: 0001-L044 - internal logic regarding sector names

Post by Cycrow »

With page ids, only the last 4 digits matter, so all those are the same page.

The first 2 digits are the game number, 30 for Reunion, 35 for TC, 38 for AP and 39 for FL.

The later games will overwrite the previous ones if duplicate ids exist.
iXenon
Posts: 177
Joined: Wed, 1. Jun 22, 20:00

Re: 0001-L044 - internal logic regarding sector names

Post by iXenon »

First of all, thank you for the answer. It helped me.
Don't want to start another topic, going to ask here. I collected the sector names because I was thinking I can extract the map from the 'x3_universe' file. Indeed, it has parameter 'nameid' for some blocks that clearly says what sector it is, but for some sectors there is no such parameter. Moreover, I don't see other parameters there like sector size, suns level, coordinates on the grid and so on. How does game know all this information?
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22436
Joined: Sun, 14. Nov 04, 23:26
x4

Re: 0001-L044 - internal logic regarding sector names

Post by Cycrow »

The default text comes from the sectors coordinates

So it's 102{x +1}{y + 1}

kingdom end would then be id=1020101
Starting with 103 is the description id

If the sector has a name parameter then it overrides the default (this is new for FL)

The internal coordinates are defined by the x and y parameters

The sector size is the size parameter in internal units. (500/m)

The sun's level is calculated from the sun objects in the sector, check the TSuns file

Return to “X³: Farnham's Legacy - Scripts and Modding”