.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   File Structures: Question for the developers (http://forum.shrapnelgames.com/showthread.php?t=32820)

Psientist January 14th, 2007 02:15 PM

File Structures: Question for the developers
 
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

Re: File Structures: Question for the developers
 
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

Re: File Structures: Question for the developers
 
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/thr...o=&fpart=1

Arralen January 15th, 2007 04:00 AM

Re: File Structures: Question for the developers
 
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)


All times are GMT -4. The time now is 05:45 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.