Giter VIP home page Giter VIP logo

Comments (12)

pjlalvarenga avatar pjlalvarenga commented on July 18, 2024

I don't know how to do this but definitely would want this feature!

from saliengame_idler.

Zazcallabah avatar Zazcallabah commented on July 18, 2024

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.

Zazcallabah avatar Zazcallabah commented on July 18, 2024

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.

Harest avatar Harest commented on July 18, 2024

@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.

Harest avatar Harest commented on July 18, 2024

Just finished, testing my script and i'll do a pull request soon.

from saliengame_idler.

Harest avatar Harest commented on July 18, 2024

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.

ensingm2 avatar ensingm2 commented on July 18, 2024

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.

Harest avatar Harest commented on July 18, 2024

^ 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.

ensingm2 avatar ensingm2 commented on July 18, 2024

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.

ensingm2 avatar ensingm2 commented on July 18, 2024

Oops, leaving this open unti lthat point, though.

from saliengame_idler.

Harest avatar Harest commented on July 18, 2024

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.

ensingm2 avatar ensingm2 commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.