Comments (6)
Note: to trigger this, you can enable it by setting auto_switch_planet.active=true
, or running CheckSwitchBetterPlanet();
to do a single check.
from saliengame_idler.
CheckSwitchBetterPlanet(true);
to allow the script to come back to the same zone, otherwise it'll stop.
from saliengame_idler.
I'll put that here for the record, but i got an error from a steam script when trying to move to another planet :/ (anim weren't disabled).
03:55:27,353 ReferenceError: error is not defined[En savoir plus] network.js:212:4
CServerInterface.prototype.LeaveGameInstance/< https://steamcommunity-a.akamaihd.net/public/javascript/saliengame/network.js:212:4
j https://steamcommunity-a.akamaihd.net/public/javascript/jquery-1.11.1.min.js:2:27239
fireWith https://steamcommunity-a.akamaihd.net/public/javascript/jquery-1.11.1.min.js:2:28057
x https://steamcommunity-a.akamaihd.net/public/javascript/jquery-1.11.1.min.js:4:21841
b https://steamcommunity-a.akamaihd.net/public/javascript/jquery-1.11.1.min.js:4:25897
It was after getting the planets info (despite it fails for the 17th.
03:55:27,021 Planet #16 has higher XP potential. Switching to it. Bye planet #15
03:55:27,021 Attempting to move to Planet #16
It didn't break the script though, it kept going on. I switched manually. I waited a second time before but the same error got triggered.
from saliengame_idler.
Yeah, it's actually a bug in steam's own game code(lol).
If you look in network.js, line 193+ (function definition for CServerInterface.prototype.LeaveGameInstance()), you'll notice that they copied the ajax call success function from the above functions, that included an error callback if the call succeeded, but the 'x-eresult' header is not '1'. Unfortunately, they didn't define LeaveGameInstance to take an error callback function as a parameter, so if the ajax call fails, it tries to call an undefined function.
Not much we can do about that (I guess I could overwrite their function and fix their code, haha), other than try to avoid getting any ajax errors when leaving a game.
from saliengame_idler.
Ahah indeed, nice copy/paste on their part, can't blame them :p. For the request, i checked back. In their function, callback is triggered if x-eresult
= 1. In the request that failed, it was equal to 11. Other than that, the response was the same empty json response object.
from saliengame_idler.
I think i saw what's the issue. It's because we're in a round already for some reason. Before the message Planet #17 has higher XP po...
the log was :
04:06:49,549 Round successfully started in zone #46 Scratchpad/3:195:5
04:06:49,549 Object { response: {…} } Scratchpad/3:196:5
04:06:53,105 Array(18) [ <10 empty slots>, … ]
04:06:53,107 Planet #17 has higher XP potential. Switching to it. Bye planet #15 Scratchpad/3:582:3
04:06:53,108 Attempting to move to Planet #17
I don't see why we're in one. I know it's the difficulty call in the start_round function CheckSwitchBetterPlanet(true);
that triggered the check/switch. But there's a leave_round in the switch_planet so... Too tired to dig it atm.
Edit : Okay i just saw the problem. We need to set current_game_id before calling the check on a better planet.
Edit² : Just force tested the current script with the modifications, works pretty good (except the double round start that we could avoid) :
05:23:44,843
Array(18) [ <10 empty slots>, … ] Scratchpad/5:577:2
05:23:44,845 Planet #17 has higher XP potential. Switching to it. Bye planet #13 Scratchpad/5:622:3
05:23:44,846 Attempting to move to Planet #17 Scratchpad/5:82:4
05:23:44,847 Leaving game: 1203 Scratchpad/5:382:2
05:23:45,350 Left Zone #92 Scratchpad/5:82:4
05:23:51,911 Initializing Planet Selection Menu. Scratchpad/5:82:4
05:23:51,913 At Planet Selection Scratchpad/5:82:4
05:23:52,881 Getting best zone Scratchpad/5:82:4
05:23:52,882 Planète de l'horreur existentielle - Zone 77 Progress: 0.18048183619976044 Difficulty: 3 Scratchpad/5:512:3
05:23:53,587 Round successfully started in zone #77
05:23:53,588 Object { response: {…} } Scratchpad/5:235:5
05:23:53,595 Initializing Battle Selection Menu. Scratchpad/5:82:4
05:23:53,595 Previous game detected. Ending it. Scratchpad/5:82:4
05:23:53,596 Leaving game: 1517 Scratchpad/5:382:2
05:23:53,962 Left Zone #77 Scratchpad/5:82:4
05:23:54,605 Round successfully started in zone #77
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
- Hide Game + Autoswitch = Game shows after switching planets HOT 8
- 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.