PropaneDragon / RushHour

Citizens act like real people when deciding what to do based on the time of day. No more school at 3 am!
33 stars 19 forks source link

Issues around creating and ending events #52

Open PropaneDragon opened 8 years ago

PropaneDragon commented 8 years ago
A Mod caused an error [System.Exception]

Details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException:
  at (wrapper managed-to-native) UnityEngine.Component:get_transform ()
  at ColossalFramework.UI.UIComponent.get_cachedTransform () [0x00000] in <filename unknown>:0
  at ColossalFramework.UI.UIComponent.AddUIComponent[UISprite] () [0x00000] in <filename unknown>:0
  at RushHour.UI.DateTimeBar.CreateEventBlock (Double startPercent, Double endPercent, Color32 colour, UInt16 buildingId, System.String tooltip) [0x00000] in <filename unknown>:0
  at RushHour.UI.DateTimeBar.CreateEvent (DateTime startTime, DateTime endTime, UInt16 building, Color32 colour) [0x00000] in <filename unknown>:0
  at RushHour.UI.DateTimeBar.CreateEvent (RushHour.Events.CityEventData eventData, Color32 colour) [0x00000] in <filename unknown>:0
  at RushHour.UI.DateTimeBar.UpdateEventBlocks () [0x00000] in <filename unknown>:0
  at RushHour.UI.DateTimeBar.<Initialise>b__6_0 (System.String languageIdentifier) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception)