Thinking about it some more, I'm going to go on a wild guess hereโฆ
The monster has a pointer to the Training Hologram that spawned it.
Since I replaced the tower, that pointer is now null.
Whenever the monster is killed, the game tries to give XP (a float) to the tower, and that ends up calling that function on the null pointer.
The monster gets killed in one of two ways:
- a tower attacks it;
- I lose, which finishes the game and kills all remaining monsters;
That explains everything I observed.
The fix would be for that function adding XP to the Training Hologram to check if the pointer is null (the monster "lost" its tower) and do nothing if it.
Did I get this right? ๐
Pretty flawless analysis of the crash!
Yes, the hologram tower is sold and when the creep dies, it tries to grant the experience to the no longer existing tower.
It is already fixed with version 2.0.3.
Android and Desktop versions are already available, the iOS version is still in Apple review.
Once you upgrade, you will be able to continue your game!
I can confirm that after the update I could finally finish this game. ๐๐ป
Very happy to have been able to collect the rewards, even though this all caused me to lose super quickly in the bonus round.
Thanks for fixing it so quickly!
Nice analysis. At some point we need a poll to see how many people here know how to program. Maybe this game is like a geek filter๐