Ephenia / Pokeclicker-Scripts

Various scripts & enhancements for the game Pokéclicker.
https://github.com/Ephenia/Pokeclicker-Scripts
GNU General Public License v3.0
184 stars 263 forks source link

Improve reliability of loading desktop scripts #390

Closed umbralOptimatum closed 1 month ago

umbralOptimatum commented 3 months ago

Occasionally, lag on the loading screen allows the game to start loading before the userscripts can be downloaded and run, preventing many of them from loading properly. This update reduces the chances of that race condition happening.

umbralOptimatum commented 2 months ago

Added another proactive fix. The desktop app can theoretically run multiple copies of the game at once, but the desktop script manager would only activate on the main window. This change allows scripts to run independently in every window without risking breakage from cross-window interference.