Comments (12)
I don't know how to do this but definitely would want this feature!
from saliengame_idler.
something like
foreach active planet
foreach noncaptured zone
if difficulty == 3
planetscore += 10000
if difficulty == 2
planetscore += 100
if difficulty == 1
planetscore += 1
with 96 zones on each planet, this means the final planet score would reflect that any hard zones would have priority over a planet with all medium zones and so on.
from saliengame_idler.
Actually, since switching planets would mean almost no extra work, we don't need to find the "best" planet. Just any planet that still has Hard zones. Failing that, any Medium zone. Failing that, any zone.
We could just run the planet switcher between every game, just like the zone switcher.
from saliengame_idler.
@Zazcallabah : I thought the same thing as your solution (planet score based).
And about when to run it, i indeed thought to run it when we switch the zone because it has ended, but i think we may want to also do a check every now and then if we're in a difficulty inferior to 3. Like every 10 minutes for instance.
If nobody started on it, i'll in 20/30 minutes.
from saliengame_idler.
Just finished, testing my script and i'll do a pull request soon.
from saliengame_idler.
I've issues with CORS strangely. When i request info on the different planets it just returns info on the current one and all the others are blocked atm.
from saliengame_idler.
Merged in as a disabled-by-default, console-toggleable only feature.
Calling CheckSwitchBetterPlanet() to run once or setting auto_switch_planet=true(E: see below) should enable this.
Leaving disabled by default until CORS issues are sorted though.
from saliengame_idler.
^ This. Except to enable it, it's auto_switch_planet.active = true
(you can also modify it at the start of the script after you pasted it).
Atm, i'd recommend enabling this only if you'll be afk for a long period of time.
Also, if you're calling CheckSwitchBetterPlanet(), use this call CheckSwitchBetterPlanet(true)
. Otherwise you'll not be able to go back to the same area than before and if it's the best one, you'll be locked.
from saliengame_idler.
HOPEFULLY with the AJAX handling, we should be able to avoid this at least a bit better. I'm going to manually enable planet switching and let this run for a bit. If it seems to work fine, and I can trigger a handled CORS error, I'll probably enable it by default, add a toggle button to the gui, and close out this issue.
from saliengame_idler.
Oops, leaving this open unti lthat point, though.
from saliengame_idler.
As i said in the latest messages. It seems they fixed the CORS issues. Dunno about you ? I didn't get any in a while now, and the 10+ last calls to check for a better planet didn't trigger any CORS error. It never happened before.
from saliengame_idler.
I'm not getting any either currently. I wouldn't be surprised if it's linked to a misconfigured failover/load-distribution server or something, so only comes up at peak usage times.
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.