Changing Sector Information in Original Galaxy Edit

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

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

SWAHILI!!!
Posts: 290
Joined: Thu, 30. Aug 07, 14:09

Changing Sector Information in Original Galaxy Edit

Post by SWAHILI!!! »

In the in-game Galaxy Edit mode, how do you change the information about a sector? I mean like when you press the 'view universe' button, and it shows the universe, there's the name, population, planets, ect., and a short little blurb about the sector. How do I edit that information, or is it even possible?
Cheers,
S
As they say, you wouldn’t want to boronificate your potassigastrous plutonimeter before it magnesorites.
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

You can only change the sector descriptions by changing the t-file xx0001.xml. Look for <page id="19">.
The number of planets, the sun's energy depend on your map. Population seems to be a random number depending on the number of planets.
SWAHILI!!!
Posts: 290
Joined: Thu, 30. Aug 07, 14:09

Post by SWAHILI!!! »

How exactly do I change it?
Do I get rid of it, or what?

I'm currently working on a new Galaxy Map that I will probably upload as a possible extension of the Top Gun mod, and some of my sectors have a story surrounding them, and I thought I could edit it in and have it in the sector map.

Cheers,
S
As they say, you wouldn’t want to boronificate your potassigastrous plutonimeter before it magnesorites.
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

The file I was talking about is in 04.dat. You'll need either the Modding Kit from Egosoft or one of the mod managers.
Using this programs will give you either a file named 440001.txt or 440001.xml. If you get the txt-file, you'll have to rename it to 440001.xml.

Search for <page id="19">. The lines below this line are the descriptions for the sectors. These lines all follow the same scheme:
<t id="{Sector-ID}">{Description}</t>

Code: Select all


Sector-ID is 103YYXX (with YY being the y coordinate on the universe map, XX the x coordinate, starting with 01. 

When editing is finished, you have to repack the 440001.xml to 440001.pck with the above tool (I don't know if they all work, I personally use x2tool from Egosoft's Modding Kit). Place the 440001.pck in your t-folder (or repack it into 04.dat or create 05.dat/cat). 
SWAHILI!!!
Posts: 290
Joined: Thu, 30. Aug 07, 14:09

Post by SWAHILI!!! »

Well, that finishes that discussion, I'm running a Mac, so I can't do that stuff!
Cheers,
S
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

I don't know if this works, but it's worth a try:

You can use your own t-file. Just look for a number not used by any other script or mod (there's a list with all the used numbers somewhere in this forum). Look at the t-files in your t-folder for examples how to build the t-file. You just need a <page id="19"> section. Write down your sector descriptions.

Next you need a init.* or setup.*-script. It just needs a single instruction.

Code: Select all

load text=ID
with ID being the last 4 numbers of your xml-file.

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