01-06-2015, 08:10 AM
As a followup, I was watching one raid and noticed that there were still a lot of troops left, but they were trying to break down outer walls. The code didn't detect any resource change and thus ended the battle. If left for a little longer, they would have broken through and got to storages.
I'm not sure what could be done about this, other than extend the time between checks (perhaps with the checking for 0 remaining). I may try it. Length of battle is not really an issue because troops train in the background.
I wonder if screenshot comparisons would work? Probably too much idle animation for this to be reliable. Just thinking out loud, this is probably overkill.
I'm not sure what could be done about this, other than extend the time between checks (perhaps with the checking for 0 remaining). I may try it. Length of battle is not really an issue because troops train in the background.
I wonder if screenshot comparisons would work? Probably too much idle animation for this to be reliable. Just thinking out loud, this is probably overkill.