Re: Crash Report
Posted: Thu Oct 20, 2011 6:10 am
Yup I understand the client will close when you get rid of the crash window, which means there will be a MM sitting there and not attached to a game. If you have multiple MM running though you wouldn't want all of them to detect the crash window and try to close it.
If client crashes then usually bot has some sort of error, I figure we could add into the error function some checks.
so in the start of the error do a
This is of course no way going to be anywhere near the finished code. Instead of the first rest I would probably check the memory for the load screen indicator.
The check for player.Name would probably be better as a check for something in memory, not sure if the memory changes when crashed.
Obviously lots of things to determine.
If client crashes then usually bot has some sort of error, I figure we could add into the error function some checks.
so in the start of the error do a
Code: Select all
if player.Name == <UNKNOW> then -- game crashed
yrest(5000) -- rest just to make sure it isn't just in loading screen
if player.Name == <UNKNOW> then
(findWindow("Crash Report"), getWindowClassName("#32770"))
rest(3000)
--some code to start up client
-- some more code to attach MM to that client and contue with WP
end
end
The check for player.Name would probably be better as a check for something in memory, not sure if the memory changes when crashed.
Obviously lots of things to determine.