Thread: domsaver v0.1
View Single Post
  #5  
Old February 24th, 2004, 11:19 AM
Torvak's Avatar

Torvak Torvak is offline
Corporal
 
Join Date: Jan 2004
Posts: 151
Thanks: 0
Thanked 0 Times in 0 Posts
Torvak is on a distinguished road
Default Re: domsaver v0.1

Quote:
Instead of creating separate gamename## folders for different turns of the same game, why don't we append to the filenames the turn number. For example, "mygame_t020.trn", or "mygame.trn.020" or some variants, and put all these different turns of the same game in one "mygame" folder. This would make it easier to keep track of things.
That's easily possible and sounds like the better way. Will do it.

Quote:
To expand on GP's note idea, you can also create separate note files (text file?) for each separate turns, and name them appropriately
Ok a mini notepad . Will have to see what Swing offers here to implement that.

Quote:
Hmm... I wonder if you can extract the turn event summary from the save files, (i.e. the list of things that happened that turn such as battles, prophet proclaimations, random events.) If you could extract them, it may prove useful (or not?!), as an user option, to put them in the beginning of the note files.
Not easily. Just did a quick check and it seems they are either encoded or just generated by the game according to events during the turn.

Quote:
Lastly, can this program or its later Version be set to run in the background, so each time I press host button in Dom2, and when the next turn is ready for me to play, it'll autosave the processed turn appropriately?
That's also a little bit trickier. When you run a server there is an option to execute a command after hosting. So you could setup a server and connect to it on the same machine.

For single player i think the only way is to constantly check time stamps of the files. The turn file is saved when you click next turn. Between that and the user clicking host i'd have to check if the file is changed and save it. Not sure how much cpu time it would take to check often enough to make it possible.

I just thought of another way. Assuming i can react to a certain (configurable) key while the program is running in the background i could have it move the mouse, click next turn, save files, click host.
__________________
World Map
Reply With Quote