.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old January 14th, 2007, 02:15 PM
Psientist's Avatar

Psientist Psientist is offline
Sergeant
 
Join Date: Apr 2004
Location: Tampa Bay, Florida, USA
Posts: 327
Thanks: 5
Thanked 33 Times in 11 Posts
Psientist is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old January 14th, 2007, 02:56 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default 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.
__________________
http://www.illwinter.com
Reply With Quote
  #3  
Old January 14th, 2007, 04:58 PM
Psientist's Avatar

Psientist Psientist is offline
Sergeant
 
Join Date: Apr 2004
Location: Tampa Bay, Florida, USA
Posts: 327
Thanks: 5
Thanked 33 Times in 11 Posts
Psientist is on a distinguished road
Default 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...b=5&o=&fpart=1
Reply With Quote
  #4  
Old January 15th, 2007, 04:00 AM
Arralen's Avatar

Arralen Arralen is offline
Major General
 
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
Arralen is on a distinguished road
Default 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)
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:57 AM.


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