CloneList<QuestContent>: Element 1 is null.

Announcements, support questions, and discussion for Quest Machine.
Post Reply
NicoMozes
Posts: 22
Joined: Sun Jun 05, 2022 4:18 am

CloneList<QuestContent>: Element 1 is null.

Post by NicoMozes »

Hi TonY!

Happy Easter, I hope you are very well!

Im running into a harmless log warning, and I wanted to know if you have found out what causes it.

I saw someone else had this issue here:

https://www.pixelcrushers.com/phpbb/vie ... php?t=5698

Thanks!
Nico

Code: Select all

CloneList<QuestContent>: Element 1 is null.
UnityEngine.Debug:LogWarning (object)
PixelCrushers.ScriptableObjectUtility:CloneList<PixelCrushers.QuestMachine.QuestContent> (System.Collections.Generic.List`1<PixelCrushers.QuestMachine.QuestContent>,UnityEngine.Object) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Misc/ScriptableObjectUtility.cs:83)
PixelCrushers.QuestMachine.QuestSubasset:CloneList<PixelCrushers.QuestMachine.QuestContent> (System.Collections.Generic.List`1<PixelCrushers.QuestMachine.QuestContent>) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Subasset/QuestSubasset.cs:136)
PixelCrushers.QuestMachine.QuestStateInfo:CloneSubassetsInto (PixelCrushers.QuestMachine.QuestStateInfo) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest State/QuestStateInfo.cs:126)
PixelCrushers.QuestMachine.QuestStateInfo:CloneSubassets (System.Collections.Generic.List`1<PixelCrushers.QuestMachine.QuestStateInfo>,System.Collections.Generic.List`1<PixelCrushers.QuestMachine.QuestStateInfo>) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest State/QuestStateInfo.cs:205)
PixelCrushers.QuestMachine.QuestNode:CloneSubassetsInto (PixelCrushers.QuestMachine.QuestNode) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:294)
PixelCrushers.QuestMachine.QuestNode:CloneSubassets (System.Collections.Generic.List`1<PixelCrushers.QuestMachine.QuestNode>,System.Collections.Generic.List`1<PixelCrushers.QuestMachine.QuestNode>) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:308)
PixelCrushers.QuestMachine.Quest:Clone () (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest.cs:640)
PixelCrushers.QuestMachine.QuestGiver:GiveQuestToQuester (PixelCrushers.QuestMachine.Quest,PixelCrushers.QuestMachine.QuestParticipantTextInfo,PixelCrushers.QuestMachine.QuestListContainer) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestGiver.cs:854)
PixelCrushers.QuestMachine.QuestGiver:GiveQuestToQuester (PixelCrushers.QuestMachine.Quest,PixelCrushers.QuestMachine.QuestListContainer) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestGiver.cs:907)
PixelCrushers.QuestMachine.DialogueSystemSupport.DialogueSystemQuestMachineBridge:GiveQuestToQuester (string,string,string) (at Assets/Plugins/Pixel Crushers/Quest Machine/Third Party Support/Dialogue System Support/Scripts/Bridge/DialogueSystemQuestMachineBridge.cs:251)
PixelCrushers.QuestMachine.DialogueSystemSupport.DialogueSystemQuestMachineBridge:GiveQuestToDefaultPlayer (string,string) (at Assets/Plugins/Pixel Crushers/Quest Machine/Third Party Support/Dialogue System Support/Scripts/Bridge/DialogueSystemQuestMachineBridge.cs:223)
System.Reflection.MethodBase:Invoke (object,object[])
Language.Lua.LuaMethodFunction:InvokeMethod (Language.Lua.LuaValue[]) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/LuaValue/LuaMethodFunction.cs:35)
Language.Lua.FunctionCall:Evaluate (Language.Lua.LuaValue,Language.Lua.LuaTable) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/Expr/FunctionCall.cs:41)
Language.Lua.PrimaryExpr:Evaluate (Language.Lua.LuaTable) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/Expr/PrimaryExpr.cs:15)
Language.Lua.ExprStmt:Execute (Language.Lua.LuaTable,bool&) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/Chunk/ExprStmt.cs:11)
Language.Lua.Chunk:Execute (bool&) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/Chunk/Chunk.cs:42)
Language.Lua.Chunk:Execute () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/Chunk/Chunk.cs:15)
Language.Lua.LuaInterpreter:Interpreter (string,Language.Lua.LuaTable) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/LuaInterpreter.cs:38)
PixelCrushers.DialogueSystem.Lua:RunRaw (string,bool,bool) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter/Lua.cs:223)
PixelCrushers.DialogueSystem.Lua:Run (string,bool,bool) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Wrapper/Lua Interpreter/Lua.cs:129)
PixelCrushers.DialogueSystem.ConversationModel:GetState (PixelCrushers.DialogueSystem.DialogueEntry,bool,bool,bool) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:258)
PixelCrushers.DialogueSystem.ConversationModel:GetState (PixelCrushers.DialogueSystem.DialogueEntry) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Model/Logic/Model/ConversationModel.cs:345)
PixelCrushers.DialogueSystem.ConversationController:OnFinishedSubtitle (object,System.EventArgs) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Controller/ConversationController.cs:271)
PixelCrushers.DialogueSystem.ConversationView:FinishSubtitle () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:428)
PixelCrushers.DialogueSystem.ConversationView:HandleContinueButtonClick () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:400)
PixelCrushers.DialogueSystem.ConversationView:OnConversationContinue (PixelCrushers.DialogueSystem.IDialogueUI) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/View/View/ConversationView.cs:383)
PixelCrushers.DialogueSystem.AbstractDialogueUI:OnContinueConversation () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Abstract/Dialogue/AbstractDialogueUI.cs:366)
PixelCrushers.DialogueSystem.AbstractDialogueUI:OnContinue () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Abstract/Dialogue/AbstractDialogueUI.cs:356)
PixelCrushers.DialogueSystem.StandardUIContinueButtonFastForward:OnFastForward () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Standard/Effects/StandardUIContinueButtonFastForward.cs:86)
UnityEngine.EventSystems.EventSystem:Update () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:501)
User avatar
Tony Li
Posts: 20743
Joined: Thu Jul 18, 2013 1:27 pm

Re: CloneList<QuestContent>: Element 1 is null.

Post by Tony Li »

Hi Nico,

Are you using Quest Machine 1.2.34 or higher?

To clean up this warning, try inspecting the quest in the Quest Editor window. From the gear menu in the upper right, select Debug > Delete Unused Subassets. This cleans up any free space that might have been left if Unity ran into an issue (e.g., editor crashed).
NicoMozes
Posts: 22
Joined: Sun Jun 05, 2022 4:18 am

Re: CloneList<QuestContent>: Element 1 is null.

Post by NicoMozes »

Hi Tony,

Thanks for the reply. Currently I'm still using version 1.2.32.2

I did try deleting the unused assets from the quests, but no luck with that.

Thanks,
Nico
User avatar
Tony Li
Posts: 20743
Joined: Thu Jul 18, 2013 1:27 pm

Re: CloneList<QuestContent>: Element 1 is null.

Post by Tony Li »

Hi Nico,

If possible, please back up your project, make sure you have a good backup, and then update to 1.2.34. Let me know if that resolves the issue.
NicoMozes
Posts: 22
Joined: Sun Jun 05, 2022 4:18 am

Re: CloneList<QuestContent>: Element 1 is null.

Post by NicoMozes »

Hi Toni,

It seems the warnings are coming from 1 of the quests I have in my Quest Database. Once I removed it from the database and from the Quest Giver, the warning disappears.

This person, https://www.pixelcrushers.com/phpbb/vie ... php?t=5698, was using version 1.2.26, and I'm using 1.2.32.2, so not sure the version is the reason for this warning.

But as this is not breaking anything, I will leave it as it is! Thanks!

Nico
User avatar
Tony Li
Posts: 20743
Joined: Thu Jul 18, 2013 1:27 pm

Re: CloneList<QuestContent>: Element 1 is null.

Post by Tony Li »

Hi,

This should be fixed in 1.2.34.
Post Reply