Bug: Can't destroy buildings.

Started by PartyFlava, March 04, 2017, 01:44:19 PM

Previous topic - Next topic

PartyFlava

There are collectors on my map that I built but cannot be destroyed for some reason. I did find a vague mention of something like it in the known bugs thread but I'm not sure if that person was experiencing the same thing.

In my case, selecting the item and clicking Destroy does nothing. Keyboard shortcut (shift+X) same deal.

If this isn't already a known issue then I'll go into some more detail and provide a save file.

PartyFlava

Also, this same map now no longer shows the white weapon range overlay when an object is selected, and when I cancel a move, the red/green destination dot does not disappear:



Started at the same time that the destroy problem started.

Karsten75

Please upload a save file of the game. Also look for the log file and see if there are any exceptions (or regardless, just upload the log file to here).

http://knucklecracker.com/forums/index.php?topic=16476.0

PartyFlava

#3
All right, so, leaving the world and going back to the system map, then going back to the world (load and resume) makes the issue go away, so I don't think a save will do much good.

However, I just had it happen to me again. Same exact thing: All of a sudden some buildings could not be deleted, and the red/green destination markers stick, and weapon ranges are no longer displayed.

It's a bummer that it's not associated with the save, but a good sign that it happened twice. I will see if I can find a way to reproduce it. All I know right now is it started as I was rapidly clicking on objects and deleting them with shift+x.

In the mean time yes there's a bunch of exceptions in the log, so this could also be a good hint:


Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 12793.
Total: 61.929535 ms (FindLiveObjects: 0.884337 ms CreateObjectMapping: 0.340782 ms MarkObjects: 60.681637 ms  DeleteObjects: 0.021438 ms)

Unknown: ZoomSlider

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)

NullReferenceException: Object reference not set to an instance of an object
  at CommandCenter.UnitsSelected () [0x00000] in <filename unknown>:0

  at CommandCenter.set_selectedUnitCount (Int32 value) [0x00000] in <filename unknown>:0

  at UnitManager.set_selected (Boolean value) [0x00000] in <filename unknown>:0

  at UnitManager.DestroyUnit (Boolean explosionEffect, Single scale, Boolean manual) [0x00000] in <filename unknown>:0

  at CollectorManager.DestroyUnit (Boolean explosionEffect, Single scale, Boolean manual) [0x00000] in <filename unknown>:0

  at UnitManager.DestroyUnit (Boolean manual) [0x00000] in <filename unknown>:0

  at CommandCenter.DestroySelectedUnits () [0x00000] in <filename unknown>:0

  at CommandCenter.OnDestroyButtonDown () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleGameInteraction () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleInteraction () [0x00000] in <filename unknown>:0

  at GameSpace.HandleKeyMouseInput () [0x00000] in <filename unknown>:0

  at GameSpace.Update () [0x00000] in <filename unknown>:0

(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at CommandCenter.UnitsSelected () [0x00000] in <filename unknown>:0

  at CommandCenter.set_selectedUnitCount (Int32 value) [0x00000] in <filename unknown>:0

  at UnitManager.set_selected (Boolean value) [0x00000] in <filename unknown>:0

  at UnitManager.DestroyUnit (Boolean explosionEffect, Single scale, Boolean manual) [0x00000] in <filename unknown>:0

  at CollectorManager.DestroyUnit (Boolean explosionEffect, Single scale, Boolean manual) [0x00000] in <filename unknown>:0

  at UnitManager.DestroyUnit (Boolean manual) [0x00000] in <filename unknown>:0

  at CommandCenter.DestroySelectedUnits () [0x00000] in <filename unknown>:0

  at CommandCenter.OnDestroyButtonDown () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleGameInteraction () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleInteraction () [0x00000] in <filename unknown>:0

  at GameSpace.HandleKeyMouseInput () [0x00000] in <filename unknown>:0

  at GameSpace.Update () [0x00000] in <filename unknown>:0

(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at CommandCenter.UnitsSelected () [0x00000] in <filename unknown>:0

  at CommandCenter.set_selectedUnitCount (Int32 value) [0x00000] in <filename unknown>:0

  at UnitManager.set_selected (Boolean value) [0x00000] in <filename unknown>:0

  at CommandCenter.UnselectAllUnits () [0x00000] in <filename unknown>:0

  at CommandCenter.OnCancelButtonDown () [0x00000] in <filename unknown>:0

  at CommandCenter.OnDestroyButtonDown () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleGameInteraction () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleInteraction () [0x00000] in <filename unknown>:0

  at GameSpace.HandleKeyMouseInput () [0x00000] in <filename unknown>:0

  at GameSpace.Update () [0x00000] in <filename unknown>:0

(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at CommandCenter.UnitsSelected () [0x00000] in <filename unknown>:0

  at CommandCenter.set_selectedUnitCount (Int32 value) [0x00000] in <filename unknown>:0

  at UnitManager.set_selected (Boolean value) [0x00000] in <filename unknown>:0

  at CommandCenter.UnselectAllUnits () [0x00000] in <filename unknown>:0

  at CommandCenter.OnCancelButtonDown () [0x00000] in <filename unknown>:0

  at CommandCenter.OnMyMouseDown () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleGameInteraction () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleInteraction () [0x00000] in <filename unknown>:0

  at GameSpace.HandleKeyMouseInput () [0x00000] in <filename unknown>:0

  at GameSpace.Update () [0x00000] in <filename unknown>:0

(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at CommandCenter.UnitsSelected () [0x00000] in <filename unknown>:0

  at CommandCenter.set_selectedUnitCount (Int32 value) [0x00000] in <filename unknown>:0

  at UnitManager.set_selected (Boolean value) [0x00000] in <filename unknown>:0

  at CommandCenter.UnselectAllUnits () [0x00000] in <filename unknown>:0

  at CommandCenter.OnCancelButtonDown () [0x00000] in <filename unknown>:0

  at CommandCenter.OnDestroyButtonDown () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleGameInteraction () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleInteraction () [0x00000] in <filename unknown>:0

  at GameSpace.HandleKeyMouseInput () [0x00000] in <filename unknown>:0

  at GameSpace.Update () [0x00000] in <filename unknown>:0

(Filename:  Line: -1)

NullReferenceException: Object reference not set to an instance of an object
  at CommandCenter.UnitsSelected () [0x00000] in <filename unknown>:0

  at CommandCenter.set_selectedUnitCount (Int32 value) [0x00000] in <filename unknown>:0

  at UnitManager.set_selected (Boolean value) [0x00000] in <filename unknown>:0

  at MoveManager.set_selected (Boolean value) [0x00000] in <filename unknown>:0

  at CommandCenter.UnselectAllUnits () [0x00000] in <filename unknown>:0

  at CommandCenter.OnCancelButtonDown () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleGlobalInteraction () [0x00000] in <filename unknown>:0

  at CommandCenter.HandleInteraction () [0x00000] in <filename unknown>:0

  at GameSpace.HandleKeyMouseInput () [0x00000] in <filename unknown>:0

  at GameSpace.Update () [0x00000] in <filename unknown>:0

(Filename:  Line: -1)


Everything before that in the log seemed reasonable, just a bunch of mundane initialization / resource management informative messages.

In that log one exception corresponds to each attempt to destroy an object, and also the ones with the different stack trace at the end are me selecting an object to move then pressing space to cancel (the persistent destination marker part of the problem).

PartyFlava

I feel like it has something to do with me bumping one of the keys near 'X' at the same time, maybe 'Z', but that's just a theory, and as of yet I have not been able to find a key sequence that produces the problem. But the log does have that message about ZoomSlider right before the exceptions start.