Sector Population

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

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

CptG
Posts: 40
Joined: Sat, 8. Oct 05, 23:21
x3

Sector Population

Post by CptG »

Is there any way to manually set the sector population? My new unknown sectors are showing up with a population.
Graxxus
Posts: 21
Joined: Sat, 21. Feb 04, 23:04
x3

Post by Graxxus »

As far as I can figure out it depends on how you have the sector set up. If the unknown sector is in a path between two sectors that have factories or installations, then the unknown sector will have traffic going through it. This is because the AI are taking the shortest path to get to the other sector. So if your unknown sector isn't a dead end then it will be "populated" by traffic going between the two sectors.
CptG
Posts: 40
Joined: Sat, 8. Oct 05, 23:21
x3

Post by CptG »

The sectors are completely empty. I havent placed anything in them yet and they dont go anywhere so there are no ships there yet. But on the universe map when you scroll to the sector it says...

Race : Unknown

Population : 32331736

Planets : 0

Suns : 150%
Graxxus
Posts: 21
Joined: Sat, 21. Feb 04, 23:04
x3

Post by Graxxus »

Haven't the foggiest idea :lol:

Hmm is it possible that the population is hard coded depending on where it is located? Is the unknown sector in a x,y location on universe map where there is a population in the normal x2 game? If it is hardcoded like that then you could try changing the x,y coordinate for that sector to something else not used in the regular game...see if that changes it. Also if it isn't directly across or directly above or below the sector that its gate is connected to then the telltale gate line in the universe map won't show up...making the sector truly hidden on the map.
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

use gamehack

Post by balogt »

i tried gamehack, worked just fine.. you can also use a hex editor to open the savegame (once you turn it inot a .rar file and decompressit). the values are unique and there will likely be only 1 occurance of it in the file. change it to 0 eg. 00 00 00 00. gamehack works much in the same manner but would allow you to look for the decimal value and alter it. dont forget to save the game after :)

use windows calculator to convert decimal to hex.. unless you can do it in your head :) test question A0 86 01 is what decimal number :)

cheers
martin
Stealth
Posts: 1732
Joined: Wed, 6. Nov 02, 20:31
x2

Re: use gamehack

Post by Stealth »

balogt wrote:use windows calculator to convert decimal to hex.. unless you can do it in your head :) test question A0 86 01 is what decimal number :)
The same as OCT 60103001. Or DEC 10520065. Calculated with only a pen and paper, took under two minutes. ;)
CptG
Posts: 40
Joined: Sat, 8. Oct 05, 23:21
x3

Post by CptG »

This is happening while I am still putting together my galaxy in the edit mode. I dont have a save game file yet. :?
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

not sure for building

Post by balogt »

im not sure if you can change it in the galedit mode, i didnt see a command to do so. but i used the in game galexy editor and gamehack to change to then i save the map after im done, it stayed as 0 when i started a new game.


cheers
Balog

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