edited December 2020 in ORK Support
Removing language is not working...:
> not properly removed from Events
> it is not possible to open Events tab (cycling on saving the change)
> Following error is displayed in console:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.Collections.ArrayList.RemoveAt (System.Int32 index) (at <9577ac7a62ef43179789031239ba8798>:0)
ORKFramework.DataHelper.DataRemoved[T] (T instance, ORKFramework.ORKDataType type, System.Int32 index, System.Int32 index2) (at :0)
ORKFramework.DataHelper.DataRemoved[T] (T instance, ORKFramework.ORKDataType type, System.Int32 index, System.Int32 index2) (at :0)
ORKFramework.Editor.ORKAssetHelper.ChangeSavedEvents (System.String folder) (at <18a13975b9c54fe587a5c5af07d9fccc>:0)
ORKFramework.Editor.ProjectSaveHandler.SaveData (ORKFramework.Editor.ORKEditorWindow window) (at <18a13975b9c54fe587a5c5af07d9fccc>:0)
ORKFramework.Editor.ProjectSaveHandler.ShowGUI (ORKFramework.Editor.ORKEditorWindow window) (at <18a13975b9c54fe587a5c5af07d9fccc>:0)
ORKFramework.Editor.ORKEditorWindow.OnGUI () (at <18a13975b9c54fe587a5c5af07d9fccc>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <9577ac7a62ef43179789031239ba8798>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <9577ac7a62ef43179789031239ba8798>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <1fe7a3c0284a456b9681b7a93141c89a>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <1fe7a3c0284a456b9681b7a93141c89a>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <1fe7a3c0284a456b9681b7a93141c89a>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <1fe7a3c0284a456b9681b7a93141c89a>:0)
UnityEditor.DockArea.OldOnGUI () (at <1fe7a3c0284a456b9681b7a93141c89a>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <356f1ddb1d524ad59c7a2c95775bb38e>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <819de1aa368e45faa4f78e26c97c62b0>:0)
Post edited by Riffage on
  • When saving the project, there are options to update events, prefabs and scenes. If you remove something (e.g. a language) and don't use these options to update the data in other places, they'll potentially be broken afterwards, as the data doesn't match any longer.

    This might not be a problem for some things, but especially languages will cause issues if you don't udpate the data.

    If you're using the (built-in) backup system, you can restore a backup from before you removed the language in Editor > Backups.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • After checking the "Update events" checkbox, error is not shown anymore in ORK interface.
    But:
    - in the event in Dialogue node, thre is still button for the second language, even thou no text window is displayed when clicked.
    - when starting the event from game, game freezes and following error is shown:

    IndexOutOfRangeException: Index was outside the bounds of the array.
    ORKFramework.Events.Steps.AddConsoleLineStep.Execute (ORKFramework.Events.BaseEvent baseEvent) (at :0)
    ORKFramework.Events.GameEvent.ExecuteNextStep () (at :0)
    ORKFramework.Events.BaseEvent.StepFinished (System.Int32 next) (at :0)
    ORKFramework.Events.BaseEvent.ExecuteNextStepStop () (at :0)
    ORKFramework.Events.GameEvent.ExecuteNextStep () (at :0)
    ORKFramework.Events.BaseEvent.StartEvent () (at :0)
    ORKFramework.Events.GameEvent.StartEventSetup () (at :0)
    ORKFramework.Events.GameEvent.StartEvent (ORKFramework.Events.IEventStarter s, System.Object startingObject) (at :0)
    ORKFramework.Events.GlobalEvent.Tick (System.Single delta) (at :0)
    ORKFramework.GlobalEventsSettings.Tick () (at :0)
    ORKFramework.ORKCore.FireTick () (at :0)
    ORKFramework.ORKHandler.Update () (at :0)

  • Strange - I'll do some tests, but for now you can fix this by removing the Add Console Line node and adding a new one instead.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.