9/5/2012 12:36:03 AM
UnhandledErrors: 9/5/2012 12:36:03 AM (5.078)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.NullReferenceException: Object reference not set to an instance of an object
at ForegroundObject.MovePlayerUnit (Boolean RecalculateFull, Boolean RecalcualteMiddling) [0x00000] in <filename unknown>:0
at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0
at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0
at Game.RunFrame () [0x00000] in <filename unknown>:0
at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0
Stack Trace: at ForegroundObject.MovePlayerUnit (Boolean RecalculateFull, Boolean RecalcualteMiddling) [0x00000] in <filename unknown>:0
at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0
at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0
at Game.RunFrame () [0x00000] in <filename unknown>:0
at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0
at System.Environment.get_StackTrace()
at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity)
at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity)
at ArcenDebugging.ArcenDebugLog(System.String Message, Verbosity Verbosity)
at Configuration.WriteToErrorFile(System.String ErrorFile, System.String ErrorName, System.String ErrorText)
at MainCameraLogic.LogWritten(System.String LogString, System.String StackTrace, LogType Type, System.Exception Cause, Boolean CameFromUnity)
at MainCameraLogic.LogWritten(System.String LogString, System.String StackTrace, LogType Type, System.Exception Cause)
at MainCameraLogic.FixedUpdate()
Just got that. No real clue what caused it, but I've got a save directly after it said that? Says 'at move player unit'.. which sounds to me like it could be anything.
Fixed it for 5.079. The only thing that's changed since 5.073 that could cause that, so far as I can tell, was the remains-rebuilder logic fix to make it drop its rebuild target if it was trying to rebuild an energy producer after the command station went down. Basically, if:
1) The energy producer died
2) The rebuilder targeted the remains for rebuilding
3) The command station died
4) The rebuilder entered a wormhole or did something else to cause its CurrentPlanet reference to be set to null for that frame
5) The rebuilder then did its check for "can I actually do the rebuild now?"
6) The logic checking for the existence of the command station would reference CurrentPlanet and blow up.
So if this error gets at all common I'll go ahead and push the release, otherwise I'll wait to see if something else pops up to keep it company in the changelog. Anyway, thanks