-
Notifications
You must be signed in to change notification settings - Fork 78
Fix bug in Valve's code #61
Comments
Seems this is happening semi-frequently at the end of boss-battles as well. I really wish this was more reproduce-able, as I don't actually run this script often (I know, I don't idle the game I created an idler for, blasphemy). Thinking a decent solution may just be to define the error function to just force a zone switch. I might do that if this continues being an issue. |
I got this. Uncaught ReferenceError: error is not defined https://steamcommunity-a.akamaihd.net/public/javascript/saliengame/network.js Detected the game script is locked. Trying to unlock it. |
Please try not to paste in text autolinking to other issues... The above comment just updated a LOT of other issues/PRs. |
@ensingm2, really. Sorry. I pasted it in code tag and didn't expect this effect. Will replace in next time. |
in network.js, if CServerInterface.prototype.LeaveGameInstance() is called, and the ajax request is successful but the 'x-eresult' header is not set to '1' in the response, a copy-pasted error callback function will be called. The function error() is not defined in LeaveGameInstance as it is in the functions that call was copy-pasted from, leading to an error.
This should be fixed, as it can halt our script. Whether or not it's better to create an 'error' var that handles it, override the entire LeaveGameInstance() call, or some other solution, I'll have to look into.
Mentioned in issue #50 & PR #60
The text was updated successfully, but these errors were encountered: