-
Notifications
You must be signed in to change notification settings - Fork 78
Hide Game + Autoswitch = Game shows after switching planets #81
Comments
If you wish, try my fork, where I tried to do that. Or wait for merge, or someone more experienced in JS fixes it. |
Could you give some more info here (browser used, if you're using tampermonkey or copy/pasting code, f your console is throwing errors, etc)? I know I added this feature when adding the ability to pause animations, and things seem to be working for me in both Chrome and Firefox. |
It's happening for me in Chrome, using the Console. I'm getting this error frequently, not sure if it is directly related: Hope this helps and thanks for this amazing script! |
Yeah, that helps a lot, thanks! I'll look into this tomorrow, though it may be a while (need to sleep before I have work in 7 hours, plus actual work day). Note: Seems like maybe (this is a complete guess from just reading the error) there's a race condition in CheckSwitchBetterPlanet where sometimes it calls SwitchNextZone before the BattleSelectorMap is initialized, and it's trying to iterate through a null list of zones? |
Hum, maybe by removing |
It's related to the OP in that the error triggers during a planet switch, breaking the normal js code flow so the re-enabling of the animation state doesn't trigger. The OP issue is a symptom of the issue posted by @gamingneeds (assuming it is the issue causing the problem). EDIT: Possibly. I can't view code at the moment. I just know that given no errors, previous animation state should be maintained through planet-switches. |
My bad. |
A new error I received tonight: |
When the script switches planets, it has to show the game canvas in order to do this (that's fine, totally understand), but it doesn't rehide the game after it finishes doing so.
The text was updated successfully, but these errors were encountered: