Ikabot-Collective / ikabot

A Python-based bot designed for automating tasks in the game Ikariam
https://discord.com/invite/3hyxPRj
MIT License
89 stars 62 forks source link

constructionList doesn't work #221

Closed susikaman closed 5 months ago

susikaman commented 5 months ago

Bug explanation

The constructionList returns an error as soon as an upgrade has been started. Happens in 2 different towns of the same account.

{ 'date': '2024-01-29_08-17-51', 'level': 2, 'message': 'MESSAGE TO TG BOT: Error in:\n' '\n' 'Upgrade building\n' 'City: CityNameHere\n' 'Building: Carpenter. From 45, to 50\n' 'Cause:\n' 'Traceback (most recent call last):\n' ' File "ikabot\function\constructionList.py", line 590, in ' 'constructionList\n' ' File "ikabot\function\constructionList.py", line 89, in ' 'expandBuilding\n' "KeyError: 'upgradeTo'\n", 'module': 'ikabot.helpers.botComm', 'pid': 5760, 'request_history': 'H4sIAIRDt2UC//PLz0sFAPGvot8EAAAA', 'traceback': 'Traceback (most recent call last):\n' ' File "ikabot\function\constructionList.py", line 590, in ' 'constructionList\n' ' File "ikabot\function\constructionList.py", line 89, in ' 'expandBuilding\n' "KeyError: 'upgradeTo'\n"}

Operating System

Windows Server 2019

Ikabot installation

I downloaded the pre-built Windows binary

Ikabot version

Latest

Python version

Python 3.10.6

susikaman commented 5 months ago

THis issue was fixed: https://github.com/physics-sec/ikabot/commit/b18ac981bd471e9f5df50317fbbf272d318b8cc4