|
|
|
 |

September 3rd, 2004, 11:22 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: How multiplayer is working out for you guys...
Quote:
magnate said:
How does the server notify you when the turn has been hosted (using quickhost)? With a PBEM it's there in your email. Assuming you don't want to stay permanently connected to the game server, how do you know? If you wait a couple of days (when you expected the turn to run), you lose all the benefit of quickhost.
Am I missing something?
|
There are switches for --preexec and --postexec which will gladly run a routine before or after running the host. In a strictly PbEM game Im guessing it would be used to email the turn files to each player. In a server game it shouldnt be hard to have it email a "HEY! the turn is DONE" message to the list of players (or IM or even a text message to my cell phone). Of course I would also probably use --preexec to make sequential backups of the .2h files before doing a host, and run the game with the --scoredump so that the --postexec can coy the score.html to a webdir for people to check on. Maybe some other neat tricks.
I LOVE that the server will run text-mode on a linux server. It makes doing things like that SOOOooooo easy. Im not sure how you would accomplish any of it on other systems but its there to play with.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

September 3rd, 2004, 06:34 PM
|
 |
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: How multiplayer is working out for you guys...
At some point I tried making a script to be used as a --postexec option for turn backup, but getting the turn number (I wanted to keep copies of the game files in Turns/XX/ subdirectories, where XX stands for the turn numbers) was so ugly, I more or less gave up.
But, when one of the players can keep his PC running 24/7, a TCP/IP game with smart enough quickhost options is pretty neat - I convinced a good bunch of other French players of that in a spring game. Just have a look at the options - you can set the server so that it hosts, say, anytime all turns are in, plus whenever 24 hours have passed since the Last hosting, except that Saturdays and Sundays don't count. Or something similar, if it doesn't fit your schedule.
|

September 3rd, 2004, 10:00 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: How multiplayer is working out for you guys...
Quote:
PhilD said:
At some point I tried making a script to be used as a --postexec option for turn backup, but getting the turn number (I wanted to keep copies of the game files in Turns/XX/ subdirectories, where XX stands for the turn numbers) was so ugly, I more or less gave up.
|
I think both --scoredump and --status create a file with the turn number in it. Ive been thinking along the same lines. There are already a couple Versions of programs to do that but they all require that the user have some programming environment loaded to run the scripts. I was going to "basic" it so that I could offer a stand-alone EXE but if you want to C it that would be great.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

September 4th, 2004, 03:30 AM
|
 |
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: How multiplayer is working out for you guys...
Quote:
Gandalf Parker said:
I think both --scoredump and --status create a file with the turn number in it. Ive been thinking along the same lines. There are already a couple Versions of programs to do that but they all require that the user have some programming environment loaded to run the scripts. I was going to "basic" it so that I could offer a stand-alone EXE but if you want to C it that would be great.
|
No, it was a bash script - my "solution" wrote a file that contained the turn number, and read from it each time. Like I said, it's ugly - and won't work properly if some turns are run without the script - but that's basically the only way I could think of for adding "permanent memory" to a script.
|

September 4th, 2004, 11:09 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: How multiplayer is working out for you guys...
Quote:
PhilD said:
Quote:
Gandalf Parker said:
I think both --scoredump and --status create a file with the turn number in it. Ive been thinking along the same lines. There are already a couple Versions of programs to do that but they all require that the user have some programming environment loaded to run the scripts. I was going to "basic" it so that I could offer a stand-alone EXE but if you want to C it that would be great.
|
No, it was a bash script - my "solution" wrote a file that contained the turn number, and read from it each time. Like I said, it's ugly - and won't work properly if some turns are run without the script - but that's basically the only way I could think of for adding "permanent memory" to a script.
|
Then use --scoredump or --status and grep it.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
Posting 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 On
|
|
|
|
|