System Data, and bases

A forum for the discussion and development of programs to assist working on or playing with the Vegastrike engine and data sets.
Post Reply
GoldenGnu
Bounty Hunter
Bounty Hunter
Posts: 155
Joined: Fri Jan 27, 2006 6:58 pm
Location: Denmark

System Data, and bases

Post 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...
Zeog
ISO Party Member
ISO Party Member
Posts: 453
Joined: Fri Jun 03, 2005 10:30 am
Location: Europe

Post 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.
GoldenGnu
Bounty Hunter
Bounty Hunter
Posts: 155
Joined: Fri Jan 27, 2006 6:58 pm
Location: Denmark

Post by GoldenGnu »

double post...
Last edited by GoldenGnu on Wed Mar 22, 2006 2:01 pm, edited 1 time in total.
GoldenGnu
Bounty Hunter
Bounty Hunter
Posts: 155
Joined: Fri Jan 27, 2006 6:58 pm
Location: Denmark

Post 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 :)
Last edited by GoldenGnu on Wed Mar 22, 2006 2:02 pm, edited 2 times in total.
Zeog
ISO Party Member
ISO Party Member
Posts: 453
Joined: Fri Jun 03, 2005 10:30 am
Location: Europe

Post 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.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post 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.
Post Reply