OlympicCode / vHackXTBot-Python

Python API for vHackXT Game
MIT License
29 stars 13 forks source link

Bot Crash (BotNet Update) #44

Closed AtjonTV closed 6 years ago

AtjonTV commented 6 years ago

I was running the bot for 11hrs and now i created a bot net and after i created it i saw that the bot didnt work, i logged into the terminal and i got the same error as below (i cleared the terminal and restarted the bot)

screenshot from 2017-12-29 14 19 46

AtjonTV commented 6 years ago

After changing the botnet.py functions upgradebotnet and upgradesinglebot to the following it started a permanent loop with "Prepare attempting to upgrade bot net PC's []"

screenshot from 2017-12-29 14 38 00

AtjonTV commented 6 years ago

And something else .. i found this code:

elif (int(get_infobot['energy']) > 0): logger.info("your are not energy for update " + hostname + " :(") return False

so whenever the energy is above 0 its not enough (should be fixed)

JasonKhew96 commented 6 years ago

upgradesinglebot function didn't have count parameter.

AtjonTV commented 6 years ago

even with (I called it 'id') its entering a loop "Prepare attempting to upgrade bot net PC's -name- [-what-]"

heres a screenshot:

screenshot from 2017-12-29 15 19 38

AtjonTV commented 6 years ago

Ah .. I see where the problem is .. the upgradesinglebot function just calls itself instead of upgrading (line 150 in botnet.py)

vBlackOut commented 6 years ago

you have change your upgradesinglebot function the original is here https://github.com/OlympicCode/vHackXTBot-Python/blob/master/botnet.py#L135

never use "id" in upgradesinglebotnet

and original upgradebotnet function is here https://github.com/OlympicCode/vHackXTBot-Python/blob/master/botnet.py#L93

Please redownload the bot and run.

AtjonTV commented 6 years ago

As soon as i do i get the error that upgradesinglebot needs 4 args (line 108 and 150

vBlackOut commented 6 years ago

ok please connect you on discord channel https://discord.gg/EZNjh7t