Where are statuses saved?

Talk about your new mod or map here

Moderators: jelco, bert_the_turtle

qFox
level1
level1
Posts: 59
Joined: Tue Oct 23, 2001 5:11 pm

Where are statuses saved?

Postby qFox » Thu Mar 24, 2005 12:52 am

Ok, when you play the original game, the states are saved in game.txt and the several mission txts in the appropriate profile dirs.

The things saved, amongst others, are locations of enemies, locations and targets of darwinians and the location and tasks of officers (target of movement cannot be saved, only their tasks).

Exact locations of enemies (darwinians and officers excluded) are not saved, or at least it didnt look like that.

Now for my current mod it would be really helpfull if I could save the state of the 122 spawned officers. That would save me a shitload of manual editing. I can't seem to find out where these are saved though.

I can't even figure out where the building states are saved (I've tested it on Fodder, and once I captured the building of the first level, it would remember it after restarting it, however i could not locate the file containing this information).

So... where's the state of mods saved? Or how... Did I just miss it? It's well possible ;)
Icepick
level5
level5
Posts: 7528
Joined: Wed Oct 24, 2001 10:29 pm
Location: Bradford, England

Postby Icepick » Thu Mar 24, 2005 1:27 am

Different things are stored in different places.
The building being captured (ie, switching teams), is saved in the level specific file. Things like activating a Trunk Port are saved in game.txt
Generally speaking, unless a building is switched from offline to online, its saved in the mission file, otherwise it will be added to game.txt as well.


If you want to place a lot of units specifically, you will need to create groups of 1, place them in the editor, and set their spread to 0, that way they will always appear where you place them on the level.
qFox
level1
level1
Posts: 59
Joined: Tue Oct 23, 2001 5:11 pm

Postby qFox » Thu Mar 24, 2005 9:46 am

yeah i know, but i want to play the level, set the awaypoints of the officers, and copy that status from a savedgame. this way i wont have to set the awaypoints manually since the editor doesnt support it.
Icepick
level5
level5
Posts: 7528
Joined: Wed Oct 24, 2001 10:29 pm
Location: Bradford, England

Postby Icepick » Thu Mar 24, 2005 12:13 pm

Looks like its just stored in the level file. I assume the goto path is the value set for waypointx and waypointz.

# Type team x z count inUnit state spread waypointX waypointZ
Darwinian 0 2440.0 2471.4 1 0 -1 0.0 2422.0 2462.5

Darwinian 0 2320.6 2513.2 1 0 -1 0.0 2302.8 2517.6

Darwinian 0 2573.0 2555.0 1 0 -1 0.0 2585.1 2559.4

Darwinian 0 2470.6 2529.4 1 0 -1 0.0 2475.4 2547.1
Officer 2 1817.1 2396.2 1 0 1 0.0 2454.2 2481.9
qFox
level1
level1
Posts: 59
Joined: Tue Oct 23, 2001 5:11 pm

Postby qFox » Thu Mar 24, 2005 8:40 pm

Well I already posted that before ;)

But the status of the officers are not saved for me, that's the whole problem.
Like when I play the mod I posted, if I change the target of the officer, leave and return to the level, the target will be reset.

I know that and how they're saved in the original game, but this behaviour seems to be flawed for mods :(

If I'm wrong however...

Return to “Mod Projects”

Who is online

Users browsing this forum: No registered users and 3 guests