![]() |
PBEM game: Advice and/or recommendations?
I would like to start a PBEM game in the near future. By necessity it will be of a slower nature (i.e. hopefully 1 turn/24 hours but maybe 1 turn/48 hours - I have a 2.5 day old daughter now, which just might cut into my gaming time http://forum.shrapnelgames.com/images/smilies/happy.gif)
Does anyone have any advice or reccomendations for making a successful PBEM game? Thanks. |
Re: PBEM game: Advice and/or recommendations?
My own advice would be to have backup mail addresses to get the turns, as some servers (either when receiving or sending mails) have the annoying tendency of losing some mails. Even if your own server is reliable at 100%, the servers of your players could be more likely to have problems.
Two or three mail servers can do the trick, or perhaps having an automated reply when you receive their turns, or any other similar system. If you want to go with a heavy-duty solution, a FTP server is always available, though it would probably be able to stand on its own then. Another idea would be to determine a standard procedure for away players, or players leaving the game while it is going on. Likewise, agreeing on what to do when a player will stale the turn may be a good idea. It is something I have failed to do in my own "Not Stupid Just Slow" game, and it is always annoying to have to take a decision in an "emergency". A Last suggestion would be to have a fixed hour for your deadlines, for example 1600 (your own time). It has the advantages of setting a routine, and players can email you when they have not received their turns, two or three hours after the usual deadline. And if you receive all your turn files before the deadline, you can always run the turn in advance, while keeping the same deadline hour. The use of this kind of hosting is mostly for players with a strict schedule, and not having much time to play their turns everyday. |
Re: PBEM game: Advice and/or recommendations?
Thanks for the good advice, Alneyan. Sounds very reasonable...
I am currently thinking along the same lines as Avocet, with the difference of wanting to host a 'demo' game, to help myself and all the other interested players with their buying decision towards "Dominions II". Has an 'unregistered' game ever been played before here? And does that make sense at all? |
Re: PBEM game: Advice and/or recommendations?
Yep there were many in the first days of its release. It will definetly do what you want as far as sparking their interest. Especially when the game comes to a stop at turn 40.
Did you notice that there is a Halloween Sale going on right now at GamersFront.com (Shrapnels sale shop). |
Re: PBEM game: Advice and/or recommendations?
Here's my 3 cents.
One possible way around the problem of lost emails is this: 1. At a certain time, all .2h files are due (let's say 7:30 am). 2. If some are missing, the host will send a general email to all players that so-and-so's game files are missing. The host then will wait a specific amount of time (e.g. until 6:00 pm) for the problem to be resolved. (A second special targeted email also could be sent to the missing player.) This system would require 3 emails to be lost before someone's turn staled. (I am trying to figure out a way that I, for example, could host and deal with such problems and still go to work during the day.) I am concerned that requiring everyone to have backup email servers would be overly burdensome. PASHA |
Re: PBEM game: Advice and/or recommendations?
@Gandalf: Thanks for the tip! I guess I'll take that opportunity, even before I get this demo game running (^_^)
@PashaDawg: You identified the problem... not many hosts would like to go after late players manually. After all, it quickly becomes a lot of work (and let's be honest - only very few mails get lost at all. The ones that do, are of course the important ones, but still I think the risk is negligible). On the other hand, setting up an automatic PBEM host would be a fun project for me - rather than using email, people would log into a website to upload turns and get their results. Validation of turns could be automatic, there could be a little forum for diplomacy and trash talk, Users could start new games themselves, ... Stay tuned! (^_^) |
Re: PBEM game: Advice and/or recommendations?
And before I forget: If you do start that PBEM game, Avocet... count me in (as soon as I get my full Version of the game, that is)!
|
Re: PBEM game: Advice and/or recommendations?
I've been toying with the idea of making a website for facilitating PBEM play. Basically modelled on SEIV's PBW system, it should allow the host to upload the current turn file to the website, and after correctly identifying themselves, players would be able to download their relevant turn files, and after doing their turns, upload the .2h file to the website. This means that all players can know who has or hasn't played which helps to create some peer pressure to speed up games a bit.
I was planning to do it with PHP / MySQL. Any one think this would be useful? I wonder how hard this would be. I already have a modded phpBB forum running on my website that allows photo uploads/downloads. Edit: Sheesh, Rowlff beat me to it. http://forum.shrapnelgames.com/image...es/redface.gif Great minds think alike. Yeah, that's my excuse. |
Re: PBEM game: Advice and/or recommendations?
That would be a great addition Deccan.
|
Re: PBEM game: Advice and/or recommendations?
Theres a long thread somewhere on "dedicated servers" where I discuss alot of what a system could do.
If someone can write a nice upload script, even if it goes with defaults and only uploads .2h files, that would go far toward a good system. An alternative might be to run a forum that allows file attach |
Re: PBEM game: Advice and/or recommendations?
Quote:
Quote:
|
Re: PBEM game: Advice and/or recommendations?
@Gandalf: I'll try and dig that up...
@deccan: We could join forces, no? And how hard could it be? I've only been doing a little thinking, but I am quite confident it's possible to get a nice system running in a relatively short timeframe. The hard part always is getting the bugs out, and implementing all the new features the damn Users suddenly seem to want (^_^) Anyway, I develop PHP and MySQL for a living, so why not get another (free) project on the plate... PM me, if you like! |
Re: PBEM game: Advice and/or recommendations?
I found the thread you mentioned, Gandalf. Definitely an interesting read...
And I started running some tests: Hosting regular turns once you get the .2h files from the players is easy enough from the commandline (and thus automatically from a script). But there does not seem to be an obvious way to start a new game when you only have the initial .2h files from the players' "newlords" folder. I played around with a script starting and subsequently killing a text only TCP server of "Dominions II", and that did generate a "fathrlnd" file, but even when I specify all the options like map, and set "--uploadtime 0", the damn server still insists on some interactivity on my part, having to click "OK" several times. Does anybody here know of a way to get this process completed without the user having to do anything? [10.49pm] Got it working! It's late... still, a good start, methinks! |
Re: PBEM game: Advice and/or recommendations?
Heh, my day job isn't even remotely related to programming and I tend to be the kind of person who learns just enough programming to make what I need and then promptly forget whatever I learned afterwards. I'm not sure how much help I could be to a pro...
The reason why I said it might not be too hard is because there are already plenty of free PHP scripts about that handle user registration / management (including such things as "remember me" login, "I forgot my password" functionality, "I want to change my e-mail address" etc.) and file upload / download, which to my mind are the most difficult parts. Other than that, we would only need a way for a registered user to create a virtual game with x number of open slots (which is after just rows in an MySQL table), allow players to apply for an open slot and upload their pretender file, and after the host presses the "Start Game" button, allows the host to upload turn files and Users to download them and upload .2h files in turn. Since in Dominions, the the correct .2h file is always (nation_name).2h, and the turn file is always (nation_name).trn that helps too. You'd also want some functionality on the game page to allow the host to post news on the game (which I suppose would also get e-mailed automatically to each player). It would make it really easy to do if we force the host to upload each .trn file individually. I suppose the alternative would be to allow the host to zip all the turn files into a zip and upload that and have the server unzip them and sort all the (nation_name).trn files correctly, which would be a lot more complex and need lots of testing. (You need error checking of all kinds such as seeing if the host forgot to include a particular nation's .trn in the zip etc.) Personally, I'd just aim to get the above to work first (and force hosts to upload each .trn individually) before thinking about other things, like e-mail notifications, giving players the option of having the latest turn attached to their e-mail notification etc, allowing players to withdraw, allowing the host to kick a player etc. Yeah, I've been thinking about this for a while now. And oh, you'd also want to think about some reasonable size limits for the various files. How big can a .2h get? How big can a .trn get? |
Re: PBEM game: Advice and/or recommendations?
Quote:
|
Re: PBEM game: Advice and/or recommendations?
Of course, the system we're aiming for would have to do all you describe - and you're right that it's pretty much a standard framework in regard to authorization and such.
But to be frank, without the capability to actually generate turns automatically, there's not much sense to the whole thing, is there? If the 'owner' of a game had to go to a webpage, download all .2h files to his home machine, host the game and reupload all .trns (zipped or not), that's more work than just doing it all for yourself with an email-client. Nothing really gained here. What I want is a system that, once set up, can run (that is: start and host) a large number of games with minimal administrator involvement. You are right of course, that you need a web server that allows you to run a copy of "Dominions II" and some cron jobs to schedule host runs, but with services like DynDNS that's not that big a deal to do it with a spare computer from home (and I intend to do it myself, once I have changed apartments in January). Hey, the more I talk about it, the more difficult (or, should we say, interesting?) it sounds... still, I think it's worth it (^_^) |
Re: PBEM game: Advice and/or recommendations?
I have a 24/7 Debian Linux server (its easier and cheaper than you think). I wouldnt mind hosting either arrangment but Im going for the simplest modular arrangment that I can do as a sysadmin-upward system rather than the all-in-one webmaster-downward Version already available (Mose Hansens package).
So for mine, the keystone would be the simplest possible script that doesnt have much "this must also be loaded for this to work" stuff. It would transfer the Users "C:\Program Files\dominions2\game2\man.2h" file to "../dominions2/game2/man.2h". No variables, and no switches. Im also hoping for "create game" and "host then quit" scripts rather than up-all-the-time hosting. Those ARE supposed to be possible. I would much rather CRON or CGI kickoff the hostings. |
Re: PBEM game: Advice and/or recommendations?
Thanks for the offer, Gandalf! Like I said, I'll most likely be able to host something like this myself come the beginning of next year, but the more offers, the better!
As to the simplicity, I am thinking along the same lines. A single package that's easy to install with as little dependencies as possible would be best. Seeing that having a database makes keeping track of players, games and everything so much easier, I am currently aiming for PHP5 with the included SQLite (or maybe PHP4 with some libraries I wrote myself for simple flatfile DBs). So if you had that, I'd like to keep you in the loop regarding my progress... And, yes, we're talking about a solution here that 'hosts and quits' - no permanently running "Dominions II"-servers (^_^) |
Re: PBEM game: Advice and/or recommendations?
Since Im more SysAdmin than programmer or webmaster, my method of tracking Users and games was going to be user accounts on the machine. Managed by ISP methods. If a game has an account then it automatically has a web space, quotas, an email address that can be automatically programmed for processing incoming turn files and sending outgoing result files, ftp, etc etc etc. With user accounts they could simply be email aliases allowing for playing anonymously.
Of course to some that would seem the hard way and a database the easy way but Im thinking that depends on your background. The Mose Hansen Version is Perl/MySQL (and available for download if you want to look at the scripts) |
Re: PBEM game: Advice and/or recommendations?
Like you said, Gandalf: There always more than one way to do it. I prefer the database approach, because it allows for so much more flexibility in aggregating data. A list of all games you play? Just an SQL query! Displaying all games that have open positions left? Another simple query!
Whatever! I've started working on 'domserv' (anybody have a better name?) today, and am making progress (at least that's what I think). As soon as I have something to show, I'll either point you to the address or send you the files to try them on your own machine. |
All times are GMT -4. The time now is 10:05 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.