Hi
(Game programming or general programming thread?)
In general how would i go about making a campaign (save-) file?
I have campaigns, with some campaign-data, and missions (each has a map, units, settings etc). Mission-files are not the same size as they may have different no of units etc.
Idea:
start file
save campaign-data
save mission1
save mission2
etc to last mission
end file
Now, if i want to load mission 4? Load from the beginning of the file until i hit mission 4? Or how to edit mission 3 and resave it? Or add another mission to the campaign or remove one? Or should i have a folder for the campaign with loose files for each mission? (seems ugly).
What is the general way to do this? It needs to be practical when i or the user creates and edits campaigns (and preferably all data in a single file)
Thanks a lot!
Erik