From: Daniel Horn <danielhorn@mi...> - 2003-03-19 10:27:59
So now I can save a key with strings into the save game
hmm that was a lot more work than I thought...
however I fixed up savegames so they could be any size (instead of
limiting it to MAXBUFFER)
hopefully there aren't any bugs...
so long story short now we can start saving fleets into the savegame!
I figure we should probably come up with a format for our fleets
then when we bring ships alive we just save some unit pointer back into
the list of ships so we know to decrement it if the ship gets destroyed.
to choose ships we choose randomly from the flightgroups (which isn't
uniformly over ships, but you figure that flightgroups would stick
then we just need to generate a believable set of ships
you can access the strings with the new Director function calls
it's just like SaveData except a string
the string can have newlines or anything you want :-)
but I think | (pipe) is a good dividing char for the stuff
this will be our big start into dynamic universe
Get latest updates about Open Source Projects, Conferences and News.