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

This Month's Specials

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

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #14  
Old January 5th, 2008, 08:48 PM
Baalz's Avatar

Baalz Baalz is offline
Major General
 
Join Date: Feb 2004
Location: Houston, Texas
Posts: 2,435
Thanks: 57
Thanked 662 Times in 142 Posts
Baalz will become famous soon enough
Default Re: Community challenge: Automated PBEM e-mailing

Ok, heres the script I was talking about. It includes a free lightweight sendemail.exe that I downloaded from here:
http://caspian.dotconf.net/menu/Software/SendEmail/

Its set up to send your turns to the llamaserver, though thats easy enough to change if you want to use it for a different PBEM game. It uses a free gmail account I set up for sending the mail, so no need to configure anything. New turns will still be sent to the email address you used to join the game (you wont get confirmation emails though, those are sent to the gmail account which sends the turns). The script assumes you download your turns into the same place every time, my example below is c:\downloads, but feel free to put it wherever you like and change that path as necessary.

Unzip the zip into wherever you like, my example assumes its put in c:\utils, but again put it wherever you want. Now, you need to collect the following information for the game youre playing:

(1) location of your download directory (ie c:\downloads)
(2) location of your dominions 3 directory (ie c:\program files\dominion3)
(3) the game name of your nation. This will be of the form <era>_<name>, so for example late_arcoscephale. If youre unsure what this name should be, just look at the .trn file you received.
(4) The game name. If youre unsure, just launch dominions and see what the game name is from the in-game list (its possible this is different than what the llamaserver game name is)
(5) The location sendEmail.exe is (ie c:\utils)

*note: if any of the directories in (1), (2), or (5) contain spaces you need to enclose them in quotes (ie c:\program files\dominion3)

Next, right click on your desktop and choose new -> shortcut. In the box, type in c:\utils\domturn.bat (or whatever place you extracted the zip) followed by (1), (2), (3), (4) and (5). For example, my shortcut for the sloth game Im in looks like this:
C:\utils\domturn.bat c:\downloads "c:\program files\dominions" late_arcoscephale sloth c:\utils

Name your shortcut to the game name to make it easy to keep track of, and if you feel like it you can even change the icon to be the dominions one through the properties menu.

Now all you need to do to take your turn is download your turn into your default download directory, doubleclick on the shortcut you created, take the turn and close dominions. Note the script does launch a DOS window, you can ignore it unless you dont want the turn youre taking to be emailed in which case just close it (hit the x in the top right) before you exit dominions (if youre running in full screen mode, just hit alt-tab to bring up the DOS window so you can close it).

Now that youve got it set up, its super easy to configure another game. Just copy the shortcut, right click, properties, and change the nation (ie late_arcoscephale) and game name (ie sloth). Thats it.

Notes:
The script moves your trn file from your downloads directory so that you wont have to overwrite it the next time you download your turn (this also helps if you happen to be playing the same nation in more than one game). It works fine if you rerun it without downloading a new turn, it simply uses your old turn file so you can update your orders, itll resend when youre done the same way as if it was a new turn.

To anyone looking into the script and wondering why I do an excessive amount of cding, its to resolve potential spaces in the path names, cd resolves things like ""c:\program files\dominions3"\savedgames\sloth" for you when you dont know how many quotes to expect.

Feel free to modify and/or repost this however you like.
Attached Files
File Type: zip 574298-domturn.zip (1.36 MB, 60 views)
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 04:30 AM.


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