DeamonHunter / AWBW-Replay-Player

Advance Wars By Web Replay Player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash in BuildUnitAction due to discovering a Pipe was turned into Rubble.

Xirema opened this issue · comments

This replay shows an error occurring on Day 14, when P2 (Pink) builds a Medium Tank at the top-center base.

Curiously, another Medium Tank was built on Day 15 at the same base, but the same error does not occur.

System.Collections.Generic.KeyNotFoundException: The given key '116' was not present in the dictionary.
   at AWBWApp.Game.Game.Logic.GameMap.RegisterDiscovery(DiscoveryCollection collection)
   at AWBWApp.Game.API.Replay.Actions.BuildUnitAction.PerformAction(ReplayController controller)+MoveNext()
   at AWBWApp.Game.Game.Logic.ReplayController.Update()

Vs Von Bolt.zip

So the circumstances that caused this is:

  • A unit attacked a pipe and turned it into rubble. (Cannot see this as pipe attack actions are not saved to replays.)
  • A unit was built, which "discovered" the destroyed pipe next to it. (This is maybe weirdness caused by pipe attack actions not being saved.)
  • The replay player did not handle a tile changing from a building to a non-building .

I should hopefully have a fix out by tomorrow, fixing the replay issue.

Was fixed with 509b0bc.