meepen/salien-bot

Bot changes to a less good planet

Closed this issue · 3 comments

I moved to a new planet where all levels (low / mid / hard) are available but the bot moves back to a planet where only low levels are available.
I am using the browser script in chrome with tampermonkey and i am currently level 11.

The console in the dev tools says something like that:

  • Nostalgieplanet II zone 0 (0, 0) progress: 0 difficulty: 3
  • Leaving planet, no zones left
    image

Greetz
D4rkiii

I have a guess about this one...
Even without a script, I cannot enter that zone (top left corner). Maybe that is where a boss will spawn in the future and it is currently locked. I can run the script on other zones of that planet if I start it just as the game is starting in another zone, but it errors out when the game ends. So, when the script cannot read that planet (because of the bad zone), it defaults to another planet, maybe the oldest planet? And that planet only has "Low" zones left. So the solution should be an error check. If a planet returns a bad zone, skip it.

For your information:

I changed MAX_LEVEL constant

const MAX_LEVEL = 13;

and enable forceLevellingMode

Option("forceLevellingMode", false);

But the bot still insist to play on other crap planets instead of the good planet at top-left. I can play manually on it, though.

EDIT: well, except the tile on top-left corner. :(

my temporary fix:

add that in function

const GetBestZone = function GetBestZone() {

after the bracket in if (zone.boss) {

// temporary fix
// the affect zone index is 0 and progress for it is 0
if (idx == 0 && zone.progress == 0.0) {
    continue;
}