How do you disable MS pop up box when Torque crashes?
by kcpdad · in Torque Game Engine · 01/08/2006 (6:27 am) · 9 replies
I want to recycle my test server automatically when Torque crashes but with the release build a pop up box comes up requiring human intervention before the program terminates. Anyone know how to disable this so that the program ends and I can start another instance of the server? thanks!
BTW - torque 1.4 built with the vc7 solution file running on windows xp.
BTW - torque 1.4 built with the vc7 solution file running on windows xp.
About the author
Hobbyist working on a tank game when time allows. Play the prototype at => http://www.sytrept.com/60tons/
#2
01/08/2006 (6:42 am)
I intend to but I don't want the server to be down for a long period of time just because I couldn't be around to recycle it.
#3
A) Fix the problem
B) Schedule a script or program to be run (task scheduler is helpful here) that checks if the server is running and restarts the program if neccesary
C) Add exception handling so the error can be caught. (try...except perhaps?)
That about sums it up :)
01/08/2006 (8:52 am)
Either :A) Fix the problem
B) Schedule a script or program to be run (task scheduler is helpful here) that checks if the server is running and restarts the program if neccesary
C) Add exception handling so the error can be caught. (try...except perhaps?)
That about sums it up :)
#4
Go to Control Panel
Select System
Select Advanced Tab
Select Error Reporting button
Select Choose Progams button
Add the torquedemo.exe or whatever you call your executable in the "Do not report errors for these programs"
Found out about it here
I just need to crash my server now to test lol.
Anyway, I can set up a simple script to cycle the server if it does crash. True it won't catch a server that is unresponsive due to a hard loop or wait but I haven't experienced those problems with my test server so this will suffice for now.
01/08/2006 (3:51 pm)
Ok, I think this will workGo to Control Panel
Select System
Select Advanced Tab
Select Error Reporting button
Select Choose Progams button
Add the torquedemo.exe or whatever you call your executable in the "Do not report errors for these programs"
Found out about it here
I just need to crash my server now to test lol.
Anyway, I can set up a simple script to cycle the server if it does crash. True it won't catch a server that is unresponsive due to a hard loop or wait but I haven't experienced those problems with my test server so this will suffice for now.
#5
01/08/2006 (4:55 pm)
There's a nice script called InfiniteSpawn.exe that was out there to resurrect dead Tribes2 servers. This might be a good time to wheel it out again. ;)
#6
thing off entirely. (Who actually reports errors to Microsoft about non-MS software, anyway?) =)
Ben: I'll have to look into that, would it be possible to make a python script or something that's not an exe?
01/08/2006 (8:23 pm)
Joseph R: Thanks for that, while checking out your solution I stumbled across the fact that I can turn that thing off entirely. (Who actually reports errors to Microsoft about non-MS software, anyway?) =)
Ben: I'll have to look into that, would it be possible to make a python script or something that's not an exe?
#7
01/08/2006 (10:19 pm)
Sure, it's not a very tricky piece of code to write.
#8
01/10/2006 (11:49 am)
Ben I think it was T1 only not T2. There is a resource here www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8252
#9
then in c:\torque\sdk14\example I have a python script to rename console.log with the date called cycleServer.py
This still doesn't recycle the server if it hangs, I suppose issuing a connect request at intervals from another process and recycling if you don't get the response you expect should do the trick. But I'll cross that bridge when I get to it since haven't had that type of problem.
01/10/2006 (3:29 pm)
Here is my batch file to cycle the server which is nearly identical to the resourcec: cd \torque\sdk14\example :loop python cycleServer.py c:\torque\sdk14\example\torquedemo.exe -dedicated -mission starter.fps/data/missions/medandhilly.mis GOTO loop
then in c:\torque\sdk14\example I have a python script to rename console.log with the date called cycleServer.py
import shutil
from time import strftime
console = 'console.' + strftime("%y%m%d-%a-%d-%b_%I-%M-%S-%p") + '.log'
shutil.move('console.log', console)This still doesn't recycle the server if it hangs, I suppose issuing a connect request at intervals from another process and recycling if you don't get the response you expect should do the trick. But I'll cross that bridge when I get to it since haven't had that type of problem.
Associate Joseph Euan
Might be a better solution...