Edit: Found the solution buy calling PixelCrushers.QuestMachine.QuestMachine.UnregisterAllQuestAssets();
when we leave scene.
Ill leave this below just incase it helps someone else.
I've just noticed this error occurring and am hoping you can see from the message where I should be looking.
Code: Select all
ArgumentException: An item with the same key has already been added. Key: FindTheRiver
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
PixelCrushers.QuestMachine.QuestMachine.RegisterQuestAsset (PixelCrushers.QuestMachine.Quest quest) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest Machine/QuestMachine.cs:211)
PixelCrushers.QuestMachine.QuestMachineConfiguration.RegisterQuestDatabases () (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest Machine/QuestMachineConfiguration.cs:267)
PixelCrushers.QuestMachine.QuestMachineConfiguration.Awake () (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest Machine/QuestMachineConfiguration.cs:216)
I should add that the Save System component is on a separate game object that is persistent but the DIalogue System Controller and all other manager scripts (as well as all USurvival managers) components are destroyed when in the other scene.
Or is this just simple a self inflicted error because USurvival is not really designed to be shut down? If this is the case we can find a simple workaround to reset the database every time we leave.
Sorry to bother you again,
Nathan