Page 1 of 1

System Data, and bases

Posted: Tue Mar 21, 2006 5:46 pm
by GoldenGnu
Hi..

I'm trying to add a feature to VSTrade, that will find the best trade route inside a specific system.

So now I'm trying to find the data, that holds the bases (MiningBase ect.) and planets, for each system. I'll need to know what faction each system (if all bases and planets are the same), or each Base/planet is (if there is more then one faction in the system), to calculate the best routes..

What I found, so far:
Vegastrike\Vegastrike-0.4.3\.vegastrike\save
-The bases, for each system, but no faction for the base

Vegastrike\Vegastrike-0.4.3\.vegastrike\sectors\milky_way.xml
-The planets, for each system, also contains the facktion for each planet (So the planets should be covered)

D:\Games\Vegastrike\Vegastrike-0.4.3\sectors\Crucible
D:\Games\Vegastrike\Vegastrike-0.4.3\sectors\Sol

-Not-random systems, have both planets and bases, plus there faction

The other problem is, that I don't know what sub factions use what base types...

Basically there is 4 base types (not all are used for each base):
-Aera
-Rlaan
-Priates
-And the Standard ones

Hobes someone can help me...

Posted: Tue Mar 21, 2006 6:21 pm
by Zeog
From what I've found out about the milky_way.xml is, that it stores for each system:
-planet types only
-initial owner faction (when you start the game, might change later)
-jumps to other systems

The layout (planet position, size, texture) is initially hardcoded for some systems (*.system). The others are generated based on the milky_way.xml once you enter them for the first time and saved also as *.system somewhere in your saves folder.
Inside a system planets revolve around their star. Moons, stations, jumps orbit their central body as well, AFAIK.

I hope that helps a little.

Posted: Tue Mar 21, 2006 9:52 pm
by GoldenGnu
double post...

Posted: Tue Mar 21, 2006 9:52 pm
by GoldenGnu
Zeog wrote:-initial owner faction (when you start the game, might change later)
Is this for the whole system?

I found these lines, in a save file...
33 FactionTookOver_Solace/Netheemaah1 8 andolian
37 FactionTookOver_Thuhtmaah/Ahbpzezzeen1 4 aera
31 FactionTookOver_Thuhtmaah/Bzzpt1 4 aera
31 FactionTookOver_Vega/Lambda_Ser1 8 andolian
Guess that will be where all changes will be stored. Can anyone confirm that?

So, First I'll load the bases and planets from the save file (both planets and bases are stored here)
EDIT: only bases are saved here. The planets need to be loaded from the *.system files, or elsewhere?

Then I'll need to get each systems fraction from
Vegastrike\Vegastrike-0.4.3\universe\milky_way.xml
and compare it with the "FactionTookOver" in the save file...

Can anyone think of a better way to do this?

milky_way.xml is 2.5MB, Its going to take forever to load with the java XML parser... :cry: Was hobbing to avoid loading it... damn...

Well anyway, now I have an idear of what to do, so I can start working on it :)

Posted: Tue Mar 21, 2006 10:54 pm
by Zeog
GoldenGnu wrote:
Zeog wrote:-initial owner faction (when you start the game, might change later)
Is this for the whole system?
Ownership is per star system, as color coded in the nav-pad map. I don't know if a faction can take over a star base, nor when the actual change of ownership of the system takes place.

Posted: Wed Apr 12, 2006 1:26 am
by Halleck
I think a system belongs to one faction unless another faction attacks and is able to sit there unassailed with a capship for a certain period of time... hellcatv made a post about that a long time ago but I can't find it.