Forum rules - please read before posting.

[Bug] ActionLists get deleted

This is a one very edge case bug but, I wanted to share it just in case. Sometimes random actionlists can get deleted, if you launch a project that doesn't compile (there are errors in other scripts). Then some (random?) actionlists become empty and an error gets thrown when you try to select it. Maybe there is a possibility of adding some failsafes? (my version 1.54c).

Error Message:

NullReferenceException: Object reference not set to an instance of an object
AC.ActionListEditor.ResizeList (System.Collections.Generic.List`1 list, Int32 listSize) (at Assets/AdventureCreator/Scripts/ActionList/Editor/ActionListEditor.cs:530)
AC.ActionListEditor.DrawSharedElements (AC.ActionList _target) (at Assets/AdventureCreator/Scripts/ActionList/Editor/ActionListEditor.cs:232)
AC.InteractionEditor.OnInspectorGUI () (at Assets/AdventureCreator/Scripts/Logic/Editor/InteractionEditor.cs:17)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1235)
UnityEditor.DockArea:OnGUI()

ActionListEditor.cs:530 being: "idArray.Add (_action.id);" within a for loop.

Comments

  • Thank you for sharing!
    I hope this didn't hit me.
  • While it seems this error would only occur if there was an error outside of AC being reported, I shall see if there is some way of keeping things more stable in this event - thanks for posting.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.