
I searched this forum with a fine tooth comb and can't find any reference.
Can ya help ?
Thanks
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Good observation & deductive reasoning, well done!Chealec wrote:It looks as though t="3" is the sun...
<o t="3" s="3" ... color="14483420"/> <!-- kingdom end -->
Now, IF there is a value with 's' (no matter what it is) that sector will have a 'suns' value of 150%. However, if s="0" then the sector will have a suns value of 100%.
The one exception (I've found so far) being Akeela's Beacon which actually has 4 "sun" type objects:
<!-- akeela's beacon -->
<o t="3" s="0" ... color="2631720"/>
<o t="3" s="0" ... color="0"/>
<o t="3" s="0" ... color="10850715"/>
<o t="3" s="0" ... color="11837610"/>
Each of those sun objects has an s value of 0 which means, in theory, the sector _should_ have 4 suns each with a value of 100, giving a total value of 400... which is right, that's what Akeela's Beacon has.
I might have a crack at knocking one up in Java since that's got pretty good XML support these days... and I could do with some kind of an excuse for polishing up on my Java skills (I'm a web developer by trade and it's been a really, really long time since I wrote anything that didn't output to (X)HTML) - I'd not hold your breath though, my Java skills are a bit basic (and very rusty) at the momentStill...if you are going to go through the trouble of digging out the secrets of the x3_universe.xml file, it might be fun to create an updated version of this tool.
heheh feel free - I didn't spend 4 (very late) evenings reverse engineering the Galaxy editor just to keep it to myselfWith your permission, I'd like to add it to the X-Wiki (link in my sig).