Log in

View Full Version : File Structures: Question for the developers


Psientist
January 14th, 2007, 02:15 PM
I'm thinking of writing a comprehensive PBEM manager. One of the problems I have found with PBEM games is turn numbers - players think they have submitted the most recent turn, but they haven't.

For the host, once all the files are in place, the game does a good job of telling the host which player has played a turn. But since the players' turnfiles' names do not change - (e.g., "early_vanheim.trn", the confusion remains for the player.

How can one extract the current turn number from a player's turnfile? Is there a consistent way to extract that without revealing too much of the filestructure?

Johan K
January 14th, 2007, 02:56 PM
Use this switch: --verify gamename

It will create .chk files inside your savedgames folder and it will tell you the turn numbers of the 2h files.

Psientist
January 14th, 2007, 04:58 PM
That sounds *exactly* like what I'm looking for. Now if only we can get the command line switches to work:

http://www.shrapnelcommunity.com/threads/showflat.php?Cat=&Number=487397&page=0&view=collap sed&sb=5&o=&fpart=1

Arralen
January 15th, 2007, 04:00 AM
At least with W2k, command line switches work just fine for me!
(ok, most work fine: I still have some trouble with the 'resolution' switch, but that might be a driver issue or something)