meepen / salien-bot

Steam Summer Sale 2018 "Salien" minigame bot - runs in console or browser
MIT License
418 stars 104 forks source link

Bot changes to a less good planet #149

Closed tobidemski closed 6 years ago

tobidemski commented 6 years ago

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:

Greetz D4rkiii

Dontmindme2 commented 6 years ago

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.

KannushiLink commented 6 years ago

For your information:

I changed MAX_LEVEL constant https://github.com/meepen/salien-bot/blob/27cb7d296809d9acd84077b5d4e8dc759567f0ac/index.user.js#L22

and enable forceLevellingMode https://github.com/meepen/salien-bot/blob/27cb7d296809d9acd84077b5d4e8dc759567f0ac/index.user.js#L62

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. :(

KannushiLink commented 6 years ago

my temporary fix:

add that in function https://github.com/meepen/salien-bot/blob/27cb7d296809d9acd84077b5d4e8dc759567f0ac/index.user.js#L149

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;
}