Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Stuck in loop leaving planet (Userscript Mode) #155

Closed
trolloos opened this issue Jun 30, 2018 · 5 comments
Closed

Stuck in loop leaving planet (Userscript Mode) #155

trolloos opened this issue Jun 30, 2018 · 5 comments

Comments

@trolloos
Copy link

It just leaves the planet and refreshes the game forever.

https://i.gyazo.com/8d21f54b40cb9f74eb589d686439c5d8.png

@TheRedStormer
Copy link

i am having the same problem.

@trolloos
Copy link
Author

This one works for me though:
https://github.com/TehDmitry/salien-bot

@MatthiasMoore
Copy link
Contributor

MatthiasMoore commented Jun 30, 2018

This issue is related to zone 0 being the best zone on a planet resulting in some bad logic on line 122.
0 in this case is being interpreted as false, making the script believe that the planet is completed. But even after changing this, there is still some issue loading into zone 0 properly, but it is part of the solution here.

if(bestZoneIdx) {

I dont have much time to dive any deeper, but a quick inefficient fix is to change like 159

if (zone.progress == 0 && idx == 0)

to be if (idx == 0)

This will always ignore zone 0 and will have the UserScript working again until a proper fix is found and implemented.

@Spartanul
Copy link

Spartanul commented Jun 30, 2018

The above does indeed work until a fix is released. Thank you! :D

@meepen
Copy link
Owner

meepen commented Jun 30, 2018 via email

@meepen meepen closed this as completed Jun 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants