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

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars > Multiplayer & AARs

Reply
 
Thread Tools Display Modes
  #1  
Old September 1st, 2005, 05:52 PM

magnate magnate is offline
Sergeant
 
Join Date: Mar 2004
Location: London, UK
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
magnate is on a distinguished road
Default PBEM setup?

Hi All,

One of the players in the game I'm running at the moment is moving house, so we're having to go to PBEM for a few weeks.

Is there a guide anywhere to automating a PBEM game in Linux? I can't find one on this board or on any of the fansites. What I need is:

1. scan email subject lines with procmail to identify turn emails

2. extract .2h files from said emails and place in game dir

3. check that all turns are in and then run host

4. email out .trn files

... I'm sure this has been done before so I wouldn't want to reinvent the wheel (and get it wrong!).

Anyone?

CC
__________________
There will be poor always, pathetically struggling - look at the good things you've got ...
-- from "Jesus Christ Superstar"
Reply With Quote
  #2  
Old September 1st, 2005, 08:10 PM
PashaDawg's Avatar

PashaDawg PashaDawg is offline
General
 
Join Date: Jul 2004
Location: Portland, ME (USA)
Posts: 3,241
Thanks: 31
Thanked 65 Times in 18 Posts
PashaDawg is on a distinguished road
Default Re: PBEM setup?

I find that I manually do the PBEM thing. If someone knows a good automation thing for Mac, I'd like to know it, too.
Reply With Quote
  #3  
Old September 1st, 2005, 10:45 PM
Cainehill's Avatar

Cainehill Cainehill is offline
Lieutenant General
 
Join Date: Mar 2004
Location: Albuquerque New Mexico
Posts: 2,997
Thanks: 0
Thanked 0 Times in 0 Posts
Cainehill is on a distinguished road
Default Re: PBEM setup?


The part that would be easy-peasy on Linux (or other unixen) is emailing out the turns. You just write a shell script that calls elm, or mail, or pine (is that the usenet one?) to send the right turn to the right player every time.

As far as the rest goes, I used to use procmail for spam filtering about 5 years ago, but haven't a brain cell remaining that would rememember how to do such things. Especially since all _I_ was using procmail for was to throw away email, not extract attachments.
__________________
Wormwood and wine, and the bitter taste of ashes.
Reply With Quote
  #4  
Old September 2nd, 2005, 04:53 AM

magnate magnate is offline
Sergeant
 
Join Date: Mar 2004
Location: London, UK
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
magnate is on a distinguished road
Default Re: PBEM setup?

Well, I've done step 1 by editing my ~/.procmailrc and putting in a line to identify emails addressed to dom2@mydomain

Step 2 I think will be ok - I can get the messages dumped in their entirety, now it's just a matter of separating the attachments (with their correct names)

Step 3 is giving me a problem, which I'm sure somebody can help with - when I type

./dom2 -T --host gamename

it says "Nagot gick fel! Text mode can only be used with --tcpserver" ... surely this is not right?? You can run a text-only server, but in order to host one lousy turn you have to install all the graphics libraries? That's insane.

There must be something I'm missing - grateful for any help (Gandalf?)

Yes, as you say, step 4 should be trivial.

CC
__________________
There will be poor always, pathetically struggling - look at the good things you've got ...
-- from "Jesus Christ Superstar"
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 11:59 AM.


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