![]() |
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 |
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.
|
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. http://forum.shrapnelgames.com/images/smilies/wink.gif |
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 |
All times are GMT -4. The time now is 09:22 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.