-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read property 'destroy' of undefined at CBattleSelectionState.Shutdown #37
Comments
I made some makeshift adjustments to the code, and it has been running for 9 hours without any major issue. There may still be difficulty exiting the planet once it has been conquered, but it is very likely that it is Steam's issue rather than the script's, as I cannot manually leave the planet either, for minutes. Step 1: Add a global error catching function in an empty space just below the header comments and above the first line of real code "(function() {..." , to allow recovery after the occurrence of the above exception (or in fact any uncatched exception).
Step 2: I am not certain if it really is useful. But the rate of error was reduced after I increased the interval of the "loop". Change all
into
Effectively doubling the timer interval, whatever it does. Step 3: This change is irrelevant, but I added it to keep track of my progress (score) in the console. Look for the line:
And add the following line below it:
|
My only worry with overwriting |
I am getting this error occasionally whenever a round has ended, but before printing "round done" to console, and the script has been unable to recover from it.
The text was updated successfully, but these errors were encountered: