Gamerium / Dindo-Bot

:robot: Farming bot for Dofus game
MIT License
116 stars 31 forks source link

Issue during collecting #29

Open Srumley opened 2 years ago

Srumley commented 2 years ago

Why do I have this error during collecting wheat ?

File "/home/name/Desktop/Dindo-Bot-master/lib/parser.py", line 115, in parse_color if color.startswith('(') and color.endswith(')'): AttributeError: 'tuple' object has no attribute 'startswith'

AXeL-dev commented 2 years ago

Why do I have this error during collecting wheat ?

Hey, can you send your path/map details/files? there is maybe some wrong data provided to the parser.

Srumley commented 2 years ago

paths.zip maps.zip

AXeL-dev commented 2 years ago

Thanks, i'll have a look on it & get back to you when i have some news.

AXeL-dev commented 2 years ago

I just pushed a fix, can you pull it & test if you still get the issue please.

Srumley commented 2 years ago

I dont have the error anymore, thanks. But I have another problem. It seems that the algorithm can't recognize that the wheat exist and can be cut. It just skip it as if it was already cutted.

Screenshot 2022-09-23 205732 Screenshot 2022-09-23 205756

AXeL-dev commented 2 years ago

Well that's weird, for now you can simply disable color checking from the settings:

Screen Capture_select-area_20220923204722

Srumley commented 2 years ago

Hi, thanks a lot, everything works now. I still have 2 small questions. 1)Does the v3 algorithm manage the fight against the scarecrows? 2)Is it possible to run the program on Windows with some modifications you think? Thank you!

AXeL-dev commented 2 years ago

Hi, thanks a lot, everything works now.

That's great! :tada:

1)Does the v3 algorithm manage the fight against the scarecrows?

I never found time to test v3 in details, so i'm not sure if it will work for that case, but probably with the new scarecrows AI, the arakne spell or any invocation spell wouldn't work correctly, since the invocation would receive the half-damage on every hit & may die in few turns.

2)Is it possible to run the program on Windows with some modifications you think?

I already tried that before, & there is a huge part that needs to be ported/converted to windows especially the xlib utilities. So if you're not enough familiar with windows libraries & python i don't really think that this would be an easy task. However, i may work on that if ever i found some free time to (i need to get back my python skills :grin:).