CyanLaser / CyanTrigger

CyanTrigger is an Udon compiler with focus on in-scene editing. The interface resembles the old SDK2 VRC Trigger interface, but has more functionality. CyanTrigger has full access to all of Udon and can work with UdonGraph and UdonSharp.
https://cyanlaser.github.io/CyanTrigger/
Other
47 stars 2 forks source link

[v4.4.2][VRCSDK 3.7.1-beta] Error when attempting to compile triggers #21

Closed StudioBlueGames closed 1 month ago

StudioBlueGames commented 1 month ago

On a VRC World, after upgrading from an earlier version of CyanTrigger to 4.4.2 (through the VCC), I now get this error whenever I try to compile a trigger, or add an event to an existing trigger. I'm using Unity 2022.3.22f1. Unfortunately, I don't remember the version of CyanTrigger that I upgraded from.

ArgumentException: An item with the same key has already been added. Key: Random System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <27124aa0e30a41659b903b822b959bc7>:0) System.Collections.Generic.Dictionary2[TKey,TValue].Add (TKey key, TValue value) (at <27124aa0e30a41659b903b822b959bc7>:0) Cyan.CT.Editor.CyanTriggerNodeDefinitionManager+<>cDisplayClass17_0.g__AddType|0 (System.Type type) (at ./Packages/com.cyan.cyantrigger/Editor/UdonDefinitions/CyanTriggerNodeDefinitionManager.cs:167) Cyan.CT.Editor.CyanTriggerNodeDefinitionManager.ProcessDefinitions () (at ./Packages/com.cyan.cyantrigger/Editor/UdonDefinitions/CyanTriggerNodeDefinitionManager.cs:211) Cyan.CT.Editor.CyanTriggerNodeDefinitionManager..ctor () (at ./Packages/com.cyan.cyantrigger/Editor/UdonDefinitions/CyanTriggerNodeDefinitionManager.cs:114) Cyan.CT.Editor.CyanTriggerNodeDefinitionManager.get_Instance () (at ./Packages/com.cyan.cyantrigger/Editor/UdonDefinitions/CyanTriggerNodeDefinitionManager.cs:82) Cyan.CT.Editor.CyanTriggerEventSearchWindow.GetRemainingEvents (System.Collections.Generic.IEnumerable1[T] favoriteEvents) (at ./Packages/com.cyan.cyantrigger/Editor/UI/SearchWindows/CyanTriggerEventSearchWindow.cs:145) Cyan.CT.Editor.CyanTriggerEventSearchWindow.GetAllEventsAsFavorites () (at ./Packages/com.cyan.cyantrigger/Editor/UI/SearchWindows/CyanTriggerEventSearchWindow.cs:193) Cyan.CT.Editor.CyanTriggerSearchWindowManager.DisplayEventsFavoritesSearchWindow (UnityEngine.Vector2 pos, System.Action1[T] onSelect, System.Boolean displayAll) (at ./Packages/com.cyan.cyantrigger/Editor/UI/SearchWindows/CyanTriggerSearchWindowManager.cs:200) Cyan.CT.Editor.CyanTriggerSearchWindowManager.DisplayEventsFavoritesSearchWindow (System.Action`1[T] onSelect, System.Boolean displayAll) (at ./Packages/com.cyan.cyantrigger/Editor/UI/SearchWindows/CyanTriggerSearchWindowManager.cs:190) Cyan.CT.Editor.CyanTriggerSerializableInstanceEditor.RenderAddEventButton () (at ./Packages/com.cyan.cyantrigger/Editor/UI/CyanTriggerSerializableInstanceEditor.cs:3006) Cyan.CT.Editor.CyanTriggerSerializableInstanceEditor.RenderEvents () (at ./Packages/com.cyan.cyantrigger/Editor/UI/CyanTriggerSerializableInstanceEditor.cs:1858) Cyan.CT.Editor.CyanTriggerSerializableInstanceEditor.OnInspectorGUI () (at ./Packages/com.cyan.cyantrigger/Editor/UI/CyanTriggerSerializableInstanceEditor.cs:250) Cyan.CT.Editor.CyanTriggerEditor.OnInspectorGUI () (at ./Packages/com.cyan.cyantrigger/Editor/UI/CyanTriggerEditor.cs:71) UnityEditor.UIElements.InspectorElement+<>cDisplayClass72_0.b__0 () (at <80a8ce1980c648dca8e68f0d8aa3b930>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

CyanLaser commented 1 month ago

This is an issue with the current VRChat Open Beta SDK. Please use sdk version 3.7.0 or earlier until I have a fix ready.

StudioBlueGames commented 1 month ago

Gotcha. Thank you for letting me know. That did fix it. I'll keep my eye on here for the next release. Thank you for all that you do! :-)

Enverex commented 1 month ago

@StudioBlueGames Shouldn't this stay open until it's fixed? Almost didn't find this because it's marked as resolved.

StudioBlueGames commented 1 month ago

Maybe? I've never used GitHub issues before. I don't think that I can reopen it, though.

StudioBlueGames commented 1 month ago

Nevermind. I think that CyanLaser reopened it.

CyanLaser commented 1 month ago

Issue has been resolved with V4.4.3.