ensingm2 / SteamMonsterGameScript

A Javascript automator for the 2015 Summer Steam Monster Minigame
78 stars 29 forks source link

Start script with autobuy and abilities deactivated as default #176

Open Voltronn opened 9 years ago

Voltronn commented 9 years ago

They keep spending my gold on upgrades i don't want and using abilities I am saving everytime I refresh ot update the script.

Also, not sure if it's due to lag but I have activate and deactivate several tries before button actually works.

Edit: Actually, the auto upgrader won't deactivate until there's no more gold for last focused upgrade.

ensingm2 commented 9 years ago

They keep spending my gold on upgrades i don't want and using abilities I am saving everytime I refresh ot update the script.

Settings should save on refresh as of about an hour ago.

Also, not sure if it's due to lag but I have activate and deactivate several tries before button actually works.

I'm not running into this issue on the latest version. Are you still having this problem?

Edit: Actually, the auto upgrader won't deactivate until there's no more gold for last focused upgrade.

Tested this, at least for me, on the latest version, disabling the autoBuyer _does_ disable all automatic purchases. Can you confirm?

EDIT: Nope, I'm still getting it. I think it has something to do with the injected hook for the autobuyer. I'll look into it.

ensingm2 commented 9 years ago

So after some testing: the toggle button _does_ work, but it seems the hook isn't properly removed, so as soon as you manually buy an upgrade, the autoUpgrader starts again (but doesn't update the button or log to the console or anything, making it confusing). Not familiar with hooks but I'll try to get a fix working.