Page 1 of 2

Crash Report

Posted: Tue Oct 18, 2011 5:43 pm
by Hetrix
Hey all.

Those crashes I'm getting ingame seems to be when Im playing for more than 4-5 hours. Then the games crashes and I need to restart it. Same issue is when Im botting mobs, the game crashes and it kills my character if I dont press, "Send or Cancel" which I dont because I'm AFK under the botting period. So I'm wondering if there is a script or code that can catch this crash report and automatically press "Cancel" when it occurs so it dont kill my character?

Thanks! / Hx

Re: Crash Report

Posted: Tue Oct 18, 2011 9:48 pm
by rock5
I wish this too. I think htere was a bit of a discussion about this but nothing became of it. I think the administrator said something along the lines of 'she couldn't identify the application that caused the error box'.

Maybe we can revisit this Administrator?

Re: Crash Report

Posted: Wed Oct 19, 2011 12:19 am
by Administrator
Actually I think we were able to kill off the game if it had an error, but the problem was having it automatically restart the client and login. I should still have the code around here to restart the client, but, having it login and select character are still a problem.

Re: Crash Report

Posted: Wed Oct 19, 2011 12:54 am
by rock5
But the first propblem is when it crashes, if the game doesn't close, then the server thinks your still online and your character dies. So first priority is to kill the client process as soon as a crash occurs.

A solution to auto logging in would be great but it's another issue entirely.

So can you implement auto terminating of the process when it crashes?

Re: Crash Report

Posted: Wed Oct 19, 2011 12:56 am
by Administrator
rock5 wrote:But the first propblem is when it crashes, if the game doesn't close, then the server thinks your still online and your character dies. So first priority is to kill the client process as soon as a crash occurs.

A solution to auto logging in would be great but it's another issue entirely.

So can you implement auto terminating of the process when it crashes?
Perhaps I can look into it if I get a chance.

Re: Crash Report

Posted: Wed Oct 19, 2011 1:11 am
by rock5
BTW. What's the purpose of this folder "ROM general" as apposed to the regular "Runes of Magic" folder?

Re: Crash Report

Posted: Wed Oct 19, 2011 1:52 am
by Administrator
Nearly everything in the RoM forum is specific to botting. This is for pretty much anything to do with the game, including information on quests, dungeons, general information, whatever.

Re: Crash Report

Posted: Wed Oct 19, 2011 1:55 am
by rock5
So topics related to rom but not Botting? Maybe a more descriptive name? Like "RoM - Non botting related topics"?

Re: Crash Report

Posted: Wed Oct 19, 2011 1:58 am
by Administrator
rock5 wrote:So topics related to rom but not Botting? Maybe a more descriptive name? Like "RoM - Non botting related topics"?
The subtitle says:
Talk about anything in Runes of Magic. This does not need to pertain to botting.
Does this show under whichever theme you have selected?

Re: Crash Report

Posted: Wed Oct 19, 2011 2:01 am
by rock5
Ah.. Didn't notice that.

Re: Crash Report

Posted: Wed Oct 19, 2011 2:06 am
by Administrator
rock5 wrote:Ah.. Didn't notice that.
Don't feel too bad. I have a feeling that 99% of the other visitors to this site don't, either.

Re: Crash Report

Posted: Wed Oct 19, 2011 2:22 am
by Hetrix
I'm glad that I'm not alone about this. Well I hope we/you can find a solution.
Last night I tested to change the graphics and audio etc to the minimal resoultion. I also pressed Ctrl + Z to hide the actionbar etc for less lagg. Didnt have a crash under those 7 hours of mob farming. Will do some more tests when I get home.

If we can get the client to close while the Crash occur its pretty enough for me, I dont need the autologging and restarting client. But it would be a bonus if you can make that work :)

Re: Crash Report

Posted: Wed Oct 19, 2011 3:34 am
by lisa
If admin can find the start client code mentioned I should be able to come up with something.
Have a few ideas already forming =)

Re: Crash Report

Posted: Wed Oct 19, 2011 5:40 am
by Hetrix
lisa wrote:If admin can find the start client code mentioned I should be able to come up with something.
Have a few ideas already forming =)
Thats great =)

Re: Crash Report

Posted: Wed Oct 19, 2011 2:25 pm
by Administrator
You know, this is actually possibly easier than we might have thought. All you need to do is detect the crash window (findWindow("Crash Report"), getWindowClassName("#32770")) and then just kill the task (classes/player.lua:2843).

Seems to work.

Re: Crash Report

Posted: Wed Oct 19, 2011 3:09 pm
by Hetrix
Thats great, will you publish the code in short or do you have some testings left? =)
And could you learn me where I need to put this code or it comes in a separate file that need to go under a specific folder?

/ Hx

Re: Crash Report

Posted: Wed Oct 19, 2011 9:14 pm
by lisa
Administrator wrote:You know, this is actually possibly easier than we might have thought. All you need to do is detect the crash window (findWindow("Crash Report"), getWindowClassName("#32770")) and then just kill the task (classes/player.lua:2843).

Seems to work.
If you multiclient though how would you know which client crashed?

Re: Crash Report

Posted: Wed Oct 19, 2011 9:40 pm
by Administrator
You kill the crash report process, which would take the client with it.

Re: Crash Report

Posted: Wed Oct 19, 2011 9:50 pm
by lisa
I guess what I meant to ask was

If you multi client and multibot.
If 1 of the clients crashed all of the bots would detect the window pop up, so need to decide which bot is still running fine with a client and which actually crashed and only the one that crashed kill the crash report.

I guess easiest way would be to add any code into the
function error

I can't seem to find it though, is it part of micromacro.exe ?

Re: Crash Report

Posted: Thu Oct 20, 2011 4:06 am
by Administrator
If you kill the Crash Report window, it closes the paired game client automatically. There is no need to figure out which client it came from.

error() is a Lua function. But, there is a callback. I think in functions.lua, there's something like function onErrorCallback().