Re: Starting a new game...
My startup script creates a kill script in the same directory as the game.
PID=`ps a | grep $GAME | grep dom3 | cut -d" " -f2`
echo "kill "$PID >$DIR/kill.sh
That way to kill MyGame all I have to do is
savedgames/MyGame/kill.sh
You could add that to the post.sh but that doesnt seem to work on killing a game right after startup.
If you run the game with a -d to a log then you could watch for thing that says its watching for uploads and then run the kill command.
__________________
-- 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!)
|