ID:181001
 
Code:


Problem description:

Hey Guys.. I was looking for an old script but beyond has changed so much over the years i dont even think they have the source section anymore where i found an old script called auto restart


i was wondering if anyone could help me


Right now im hosting a game and around 12 to 18 hours the game will crash..... * mainley when im asleep*

now there was an old script that would detect that the world wasent runing and it reboot itself.... *while the game was still runing* so for exp


the world was runing fine and people are playing and it would crash but *it detected it and auto rebooted it* and people continued to play.. it was an amazing script... but i cant find it again


i was hopeing if someone could help me ? find it or give me something that would help me ?
Exeagle wrote:
Right now im hosting a game and around 12 to 18 hours the game will crash..... * mainley when im asleep*

You should log the game to a file so you can find out why it's crashing, so that it can be fixed.
In response to Murrawhip
Murrawhip wrote:
You should log the game to a file so you can find out why it's crashing, so that it can be fixed.

Implying the host has developmental control over the game.

The OP had a simple request, your response did not contribute towards his needs.
In response to Airjoe
Airjoe wrote:
Implying the host has developmental control over the game.

He might. He never specified.

Airjoe wrote:
The OP had a simple request, your response did not contribute towards his needs.

"i was hopeing if someone could help me ? find it or give me something that would help me ?"

My solution would alleviate his problem. If you're not happy with my style of helping the OP, feel free to offer him the help that you believe he needs instead of trying to troll.
I couldn't find the resource you were looking for, but I decided to dig into batch again and wrote a script that does it:

ServerAutoRestart.bat

Note: requires the taskkill program to end the non-responsive server, which is included in Windows XP Pro, all Vista versions, and all Windows 7 versions (not XP Home)

Just edit the first couple of lines to set the path to the game, the launch options for dreamdaemon, and the path to dreamdaemon.exe.

I'm a little ashamed at how long it took me to write, but I've tested it and it appears to work well with the test case I set up. You'll have to let me know if it catches your crash (it should so long as Windows marks DD as unresponsive).

Also, it does *technically* work with multiple servers, but in the unlikely event that two servers (re)start at the same time, it might get confused.
In response to Murrawhip
thanks all

yes im onley the host.. but im trying to help a friend...

i remember a few years ago.. there was a script developed by someone that when people where playing the server would crash but (the scrip some how put the server back up) without anyone knowing and they continued to play it was amazing


right now people have to keep reconnecting... and macroing right now is allowed like afk training or afk gathering etc... but by an hour or 2 it will go down and back up.... O.o its werid thanks
In response to Exeagle
In response to Exeagle
So when you said "while the game was still running", you meant that the users were never disconnected after the crash, and the server went on as if nothing ever happened? That would be quite an incredible script, as it would have to be able to recreate the state of the world somehow, as well as maintain all of the connections. Are you sure you're remembering correctly?

Also, you never specified what OS you were hosting on.