10-18-2016, 03:50 PM
Hey developers, I am currently still running into the invalid literal for int() with base 10: '' exception, and it appeared every time after when clash farmer fails to gather the info of how much elixir do i have. It looks like you guys called the int() function to the string data gathered from screen reading, which occasionally fails with no good reason. I don't know anything about the screen reading part. but i believe you guys can add an if statement and call the function str.isdigit() to prevent this exception from happening.
also to prevent infinite loop when screen reading keeps on failing, a counter and a for loop could be inserted to that if statement on elixir reading count.
I am a learner of python as well and I hope my advises can help.
keep up the good work!
also to prevent infinite loop when screen reading keeps on failing, a counter and a for loop could be inserted to that if statement on elixir reading count.
I am a learner of python as well and I hope my advises can help.
keep up the good work!