Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue during collecting #29

Open
Srumley opened this issue Sep 22, 2022 · 8 comments
Open

Issue during collecting #29

Srumley opened this issue Sep 22, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@Srumley
Copy link

Srumley commented Sep 22, 2022

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
Copy link
Member

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 AXeL-dev added the needs more informations More informations needed to track the issue label Sep 23, 2022
@Srumley
Copy link
Author

Srumley commented Sep 23, 2022

paths.zip
maps.zip

@AXeL-dev
Copy link
Member

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

AXeL-dev added a commit that referenced this issue Sep 23, 2022
@AXeL-dev AXeL-dev added bug Something isn't working and removed needs more informations More informations needed to track the issue labels Sep 23, 2022
@AXeL-dev
Copy link
Member

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

@Srumley
Copy link
Author

Srumley commented Sep 23, 2022

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
Copy link
Member

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

Screen Capture_select-area_20220923204722

@Srumley
Copy link
Author

Srumley commented Sep 25, 2022

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
Copy link
Member

AXeL-dev commented Sep 26, 2022

Hi, thanks a lot, everything works now.

That's great! 🎉

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants