Diplomacy.ca is proud to be a Canadian site Click here for access to the Diplomacy game options.
RSS Feed (updated hourly)
RSS Feed
411 Diplomacy games and 12,332 game turns have been run on this site! There are 2 new members today!
Forum Home Donation Balance:
$-432.49
Play Diplomacy About OCS Player Ranking FAQ Register with Diplomacy.ca
Diplomacy.Ca Forums Diplomacy.Ca Forums > The Game of "Diplomacy" > Rules, Guides and Downloads > DGMS - Diplomacy Game Management System (DOS/Windows)
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
GameMaster

Rank: Admin
Site Administrator
Ottawa, Canada
Canada
# of Posts: 1172

DGMS - Diplomacy Game Management System (DOS/Windows)

I have updated and cross compiled the latest version of DGMS for windows and am making it available for download.

DGMS is a program I wrote based on Judge written by Robert Eskridge (Bryny) in 1985. (Not to be confused with the email based Diplomacy processing program also called Judge)

One of the original versions of DGMS has been available for download for quite some time but the code had developed considerably and was focused on running under Linux. Almost all of the updates were related to tying into the various databases and web site operations so in terms of actual Diplomacy processing changes, there are next to none.

Judge is non-graphical and written for command line use. It runs in a DOS window (or in a true DOS environment should there be any left these days) or you can set up various command scripts to run the commands. The Linux version has many features specific to this site and therefore will not be released at this time.

The attached zip file contains dgms.exe, the main program, and dgms.map, which is the standard Diplomacy map data file.

In order to be able to pick up a game with the current positions, I have added an option to the Play Diplomacy page called "DGMS Data" which will initiate a download of the data file for the specific game selected.

Some basic instructions will follow in this thread.

Attachment: dgms_v3.1.1.zip
This has been downloaded 6 time(s).

Old Post 05-May-2009 02:56 PM
GameMaster is offline Click Here to See the Profile for GameMaster Click here to Send GameMaster a Private Message Click Here to Email GameMaster Visit GameMaster's homepage! Find more posts by GameMaster Add GameMaster to your buddy list Edit/Delete Message Reply w/Quote
GameMaster

Rank: Admin
Site Administrator
Ottawa, Canada
Canada
# of Posts: 1172

DGMSMap

DGMSMap.exe is a utility that takes an text-based input file (dgmsmap.inp) and converts it into a database file (dgms.map) for use with DGMS.

This utility can be used to recreate the map data file should it become corrupt or lost and also for creating variants to the standard game. Note though that many unique situations (dual cost province names for example) have been hard coded into DGMS so there are some restrictions on creating a new map.

The DGMS zip file above contains the standard map so it is not necessary to use this program under most circumstances.

Attachment: dgmsmap.zip
This has been downloaded 0 time(s).

Old Post 05-May-2009 03:00 PM
GameMaster is offline Click Here to See the Profile for GameMaster Click here to Send GameMaster a Private Message Click Here to Email GameMaster Visit GameMaster's homepage! Find more posts by GameMaster Add GameMaster to your buddy list Edit/Delete Message Reply w/Quote
GameMaster

Rank: Admin
Site Administrator
Ottawa, Canada
Canada
# of Posts: 1172

Instructions on using DGMS

Download and unzip the DGMS zip file to a folder on your hard drive.

As mentioned, DGMS is a DOS/command line based program so will require that you open a DOS window (simplest way is "start" -> "run" then type "cmd"). Open a DOS window in the directory that contains DGMS or open a DOS window, then use the CD command to navigate to the correct location.

Verify that DGMS runs on your system by typing "DGMS". Simple syntax/help information should be displayed.

quote:
C:\DGMS>dgms
DGMS v3.1.1 (2009/05/05 10:28:53) Today (2454957): 2009/05/05 10:43:49
Syntax: DGMS [GameID] [command]
Where [command] is one of:
c -> process the [C]urrent turn and create an order file for the next turn.
r -> [R]eprocess the last turn and create a new order file for the current turn.
o -> create a new [O]rder file for the current turn (or new game).
m -> Display the contents of the [M]ap data file. [GameID] is not required.
Verify that the map file is compatible with your system. Type "dgms m" to dump the map data to the console display.

Through Windows Explorer, or using the mkdir command in the DOS window, create a subdirectory for the Game ID you will be working with. The subdirectory name must match exactly with the Game ID. For example, you can create a subdirectory called "test" if running a new game. If you are using DGMS in conjunction with a game on this site, then the format is year-xx such as "2009-1".

If you wish to use data from a live game, then download the dgmsmstr.gameid file and copy it to the subdirectory you just created. If you are starting a new game, then a new dgmsmstr.gameid file will be created automatically.

Create order files for the current (or new) turn by typing "DGMS gameid o". Example:
quote:
C:\DGMS>dgms test o
DGMS v3.1.1 (2009/05/05 10:28:53) Today (2454957): 2009/05/05 10:29:08
-----------------------------------------------------------
Reading Map File 'dgms.map' -> 75 map positions read.
turn_file: test/dgmsmstr.test
Building new file test/dgmsmstr.test
Game ID: test Last Processed Turn: WINTER 1900
Making order template for: SPRING 1901
Writing positions to order file: test/moves01.test
Writing positions to retreat file: test/moves01r.test
2009/05/05 10:29:08 DGMS Exiting.
This example shows the creation of 2 text files used for entering orders (moves01.test) and retreats (moves01r.test). The file names are in the format move[S|F|W][year][retreat].[gameid].
These file can be modified with any text editor (notepad, wordpad, etc).

Use abbreviations for all commands and province names. Example: A LIV S A WAR - MOS
(See the Original Orders popup option on the Turn Results pages for more examples or to copy/paste into an order file)

Once updated and saved, run the DGMS command to process this turn, generate a report and create a new template for the next turn.
quote:
C:\DGMS>dgms test c
DGMS v3.1.1 (2009/05/05 10:28:53) Today (2454957): 2009/05/05 10:29:09
-------------------------------------------------------------------------
Reading Map File 'dgms.map' -> 75 map positions read.
turn_file: test/dgmsmstr.test
Game ID: test Last Processed Turn: WINTER 1900
Command: Process Turn
Looking for the order file: test/moves01.test
Processing the order file: test/moves01.test
Orders processed and saved.
Writing to report file: test/spring01.test
Making order template for: FALL 1901
Writing positions to order file: test/movef01.test
Writing positions to retreat file: test/movef01r.test
2009/05/05 10:29:09 DGMS Exiting.
To play with various outcomes, edit and save the move files and use the "(R)eprocess" command.

Continue entering orders and processing turns as required.

Log files will be written to the main directory and will contain details about the actions taken during the turn processing.

That's about it. It is a very basic program and a simple interface.

Old Post 05-May-2009 03:26 PM
GameMaster is offline Click Here to See the Profile for GameMaster Click here to Send GameMaster a Private Message Click Here to Email GameMaster Visit GameMaster's homepage! Find more posts by GameMaster Add GameMaster to your buddy list Edit/Delete Message Reply w/Quote
The time now is 02:17 PM (GMT). Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this thread

Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Terms & Conditions --- Diplomacy.ca --- Privacy Policy

© 1999-2010 Osborne Computing Services, All Rights Reserved.
All material on this web site is considered proprietary and may only be used with permission from the site administrator. Diplomacy is a registered trademark of Hasbro Inc.

Successfully blocked 16 Bot attacks so far this month! (Last month: 237)