boformer / BuildingThemes

Mod for Cities:Skylines
http://steamcommunity.com/sharedfiles/filedetails/?id=466158459
MIT License
13 stars 11 forks source link

Bug caused by Policy GUI hook #29

Closed boformer closed 9 years ago

boformer commented 9 years ago
IndexOutOfRangeException: Array index is out of range.
  at ColossalFramework.PoolList`1[ColossalFramework.UI.UIComponent].get_Item (Int32 index) [0x00000] in <filename unknown>:0 

  at DistrictWorldInfoPanel.UpdatePolicies () [0x00000] in <filename unknown>:0 

  at DistrictWorldInfoPanel.UpdateBindings () [0x00000] in <filename unknown>:0 

  at WorldInfoPanel.LateUpdate () [0x00000] in <filename unknown>:0 

  at WorldInfoPanel.SetTarget (Vector3 worldMousePosition, InstanceID id) [0x00000] in <filename unknown>:0 

  at WorldInfoPanel.Show[DistrictWorldInfoPanel] (Vector3 worldMousePosition, InstanceID instanceID) [0x00000] in <filename unknown>:0 

  at DefaultTool.OpenWorldInfoPanel (InstanceID id, Vector3 position) [0x00000] in <filename unknown>:0 

  at DefaultTool.OnToolGUI () [0x00000] in <filename unknown>:0 

  at ToolBase.OnGUI () [0x00000] in <filename unknown>:0 

(Filename:  Line: -1)

IndexOutOfRangeException: Array index is out of range.
  at ColossalFramework.PoolList`1[ColossalFramework.UI.UIComponent].get_Item (Int32 index) [0x00000] in <filename unknown>:0 

  at DistrictWorldInfoPanel.UpdatePolicies () [0x00000] in <filename unknown>:0 

  at DistrictWorldInfoPanel.UpdateBindings () [0x00000] in <filename unknown>:0 

  at WorldInfoPanel.LateUpdate () [0x00000] in <filename unknown>:0 

(Filename:  Line: -1)
boformer commented 9 years ago

This happens when you: Load a city. Click on an existing district so the Info Window opens

This doesnt happen when you: Load a city. Open the policies panel from the toolbar first.

boformer commented 9 years ago

This is a bug in the game. It happens only when you load a city, go back to main menu, load another city.

It is not related to our mod.

boformer commented 9 years ago

Reported this bug and the m_environment bug: https://forum.paradoxplaza.com/forum/index.php?threads/api-bugs-and-exceptions-when-you-load-a-city-go-back-to-main-menu-load-another-city.865001/