Comments (8)
If you wish, try my fork, where I tried to do that. Or wait for merge, or someone more experienced in JS fixes it.
from saliengame_idler.
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.
from saliengame_idler.
My bad.
Related to my previous message, i think the easiest solution to solve the current issue would be to keep current_game_is_boss = false;
in end_game and to add a refresh on current_game_start
(current_game_start = new Date().getTime();
) so checkUnlockGameState() would not be triggered for nothing, and call a check on planets / zones between a planet switch.
Edit : But this requires to solve #61.
from saliengame_idler.
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.
from saliengame_idler.
It's happening for me in Chrome, using the Console.
I'm getting this error frequently, not sure if it is directly related:
jquery-1.11.1.min.js?v=.isFTSRckeNhC:4 Uncaught TypeError: Cannot read property '0' of null at Object.success (<anonymous>:300:80) at j (jquery-1.11.1.min.js?v=.isFTSRckeNhC:2) at Object.fireWith [as resolveWith] (jquery-1.11.1.min.js?v=.isFTSRckeNhC:2) at x (jquery-1.11.1.min.js?v=.isFTSRckeNhC:4) at b (jquery-1.11.1.min.js?v=.isFTSRckeNhC:4) at Object.send (jquery-1.11.1.min.js?v=.isFTSRckeNhC:4) at Function.ajax (jquery-1.11.1.min.js?v=.isFTSRckeNhC:4) at INJECT_start_round (<anonymous>:279:5) at SwitchNextZone (<anonymous>:778:4) at CheckSwitchBetterPlanet (<anonymous>:816:4)
Hope this helps and thanks for this amazing script!
from saliengame_idler.
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?
from saliengame_idler.
Hum, maybe by removing current_game_is_boss = false;
in the end_game function of INJECT_report_boss_damage() would solve the issue. I assume checkUnlockGameState() was called between the switch. It'd need some others edits though as checkUnlockGameState() would be instantly inoperent with this change alone (stopped at the first if).
This error should be in another issue btw as it's not related to the OP but thanks for reporting it anyway.
from saliengame_idler.
A new error I received tonight:
Uncaught TypeError: Cannot read property 'destroy' of undefined at CPlanetSelectionState.Shutdown (game.js?v=DOBF9nI9sT2_&l=english:897) at CGame.Update (game.js?v=DOBF9nI9sT2_&l=english:108) at t.gApp.ticker.add [as fn] (game.js?v=DOBF9nI9sT2_&l=english:69) at t.emit (pixi.min.js?v=.tDHAybGykI1O:16) at t.update (pixi.min.js?v=.tDHAybGykI1O:16) at _tick (pixi.min.js?v=.tDHAybGykI1O:16)
from saliengame_idler.
Related Issues (20)
- Game stalls on getting best zone HOT 2
- Fix bug in Valve's code HOT 4
- Stuck getting empty JSON responses on start_round HOT 2
- thank you HOT 1
- Integrating boss battles (test available in the WIP branch) HOT 19
- Seems Boss update broke script entirely HOT 9
- I can't join any zone HOT 2
- Stop Boss Fight Before hitting Level 25? HOT 7
- Heat CPU HOT 2
- Possible error on brand new planet HOT 5
- GUI renders above everything else, making it impossible to see the difficulty of several zones HOT 7
- Disable timer of estimate time HOT 1
- Manually changing planets forces a re-check for CheckSwitchBetterPlanet() HOT 2
- Stopped at planet selection HOT 17
- Reduce boss dps HOT 1
- After Boss battle ends, the script doesn't update the EXP value in info box HOT 10
- Damage in Boss Battle HOT 2
- Disable joining to zone for 25 lvls HOT 4
- Join Planet Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saliengame_idler.