In zero-sum, I am seeing a message like the following in some games:
Hero Placeholder 1 (team ogres) can't command Bonnie (team humans).
This crashes my hero and then I usually lose the match.
I would expect this to mean that I am attempting to call
this.command() on a unit I do not control, however I do not believe this to be the case — I only use units retrieved via
this.findFriends(). Something unexpected must be happening.
In the game I am currently viewing it seems to happen immediately upon the death of some resurrected zombies. Perhaps this is related, since it seems that enemy units will fight for you if resurrected. Perhaps, upon death, there is an instant where they are included in the return value of
this.findFriends(), but it is not valid to command them.
The above is largely speculation. I haven’t been able to debug this at all because there does not seem to be any practical logging functionality (
this.say() is not very useful) or inspection tools. I have a high confidence that this is not a problem in my code, but I’m not willing to share it at this time.
Anyway, if a dev sees this (@nick) perhaps you can have a look?