Dindo-Bot icon indicating copy to clipboard operation
Dindo-Bot copied to clipboard

Issue during collecting

Open Srumley opened this issue 3 years ago • 8 comments

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'

Srumley avatar Sep 22 '22 14:09 Srumley

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.

AXeL-dev avatar Sep 23 '22 00:09 AXeL-dev

paths.zip maps.zip

Srumley avatar Sep 23 '22 12:09 Srumley

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

AXeL-dev avatar Sep 23 '22 15:09 AXeL-dev

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

AXeL-dev avatar Sep 23 '22 18:09 AXeL-dev

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

Srumley avatar Sep 23 '22 19:09 Srumley

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

Screen Capture_select-area_20220923204722

AXeL-dev avatar Sep 23 '22 19:09 AXeL-dev

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!

Srumley avatar Sep 25 '22 12:09 Srumley

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:).

AXeL-dev avatar Sep 26 '22 00:09 AXeL-dev