TripHammer logging duplicated EndRoundRecord
From Talk:WaveSim
Jump to navigation
Jump to search
Revision as of 12 February 2018 at 16:39.
This is the thread's initial revision.
This is the thread's initial revision.
Thanks for opening source TripHammer which is a very useful tool for recording waves! However, after analyzing data recorded by TripHammer, I found a bug in its implementation.
TripHammer is logging EndRoundRecord when it receives onWin or onDeath, however, both may fire at the same round (e.g. you killed the opponent, and later you are killed as well), which causes EndRoundRecord getting logged twice.
But what affects more is that in rare cases, no EndRoundRecord is logged, making the battle data "34" rounds long.
Btw, there seems a typo in "TRADITIONAL_WAVE_END_SIGNATURE" where the second "I" is missing in the source ;)