Quest Machine + Invector Sample File Errors Please Help

Announcements, support questions, and discussion for Quest Machine.
Post Reply
ajjabe
Posts: 3
Joined: Sun Dec 22, 2024 1:53 pm

Quest Machine + Invector Sample File Errors Please Help

Post by ajjabe »

Quest Machine + Invector Sample File Errors Please Help

I'm trying to make a game using the latest version of Invector Shooter and Quest Machine.

DS_QM_Invector_Example_2024-09-08.unitypackage
PixelCrushers_InvectorSupport_2024-08-26.unitypackage
Invector Support.unitypackage

All the sample files in are not working or are giving me too many errors.

All the sample files are telling me to find a shotgun
But when I search for a shotgun, it only tells me to find a shotgun.

How can I fix this?

Problem detected while opening the Scene file: 'Assets/Pixel Crushers/Quest Machine/Third Party Support/Invector Support/Scripts/Quest Machine Examples/Invector Scene Change Example/Invector Scene 1.unity'.
Check the following logs for more details.

Prefab instance problem: 'vGrenadeCollectable (6) (Missing Prefab with guid: 98547674c3e98f9418dbb3a352b9684f)'. 6 instances are missing the same Prefab Asset with guid 98547674c3e98f9418dbb3a352b9684f.

The character must have a ICharacter Interface
UnityEngine.Debug:LogWarning (object)
Invector.vCharacterController.v_SpriteHealth:Start () (at Assets/Invector-3rdPersonController/Basic Locomotion/Scripts/Generic/Health/v_SpriteHealth.cs:34)

NullReferenceException: Object reference not set to an instance of an object
Invector.vCharacterController.v_SpriteHealth.Start () (at Assets/Invector-3rdPersonController/Basic Locomotion/Scripts/Generic/Health/v_SpriteHealth.cs:37)

InvectorHasItemsQuestCondition: You must define the scripting symbol USE_INVECTOR_INVENTORY to use Invector inventory features in Quest Machine.
UnityEngine.Debug:LogError (object)
PixelCrushers.QuestMachine.InvectorHasItemsQuestCondition:StartChecking (System.Action) (at Assets/Pixel Crushers/Quest Machine/Third Party Support/Invector Support/Scripts/Quest Conditions/InvectorHasItemsQuestCondition.cs:127)
PixelCrushers.QuestMachine.QuestConditionSet:StartChecking (System.Action) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Condition Set/QuestConditionSet.cs:130)
PixelCrushers.QuestMachine.QuestNode:SetConditionChecking (bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:511)
PixelCrushers.QuestMachine.QuestNode:SetState (PixelCrushers.QuestMachine.QuestNodeState,bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:438)
PixelCrushers.QuestMachine.QuestNode:OnParentStateChange (PixelCrushers.QuestMachine.QuestNode) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:540)
PixelCrushers.QuestMachine.QuestNode:SetState (PixelCrushers.QuestMachine.QuestNodeState,bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:450)
PixelCrushers.QuestMachine.QuestNode:SetState (PixelCrushers.QuestMachine.QuestNodeState,bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:465)
PixelCrushers.QuestMachine.Quest:SetState (PixelCrushers.QuestMachine.QuestState,bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest.cs:966)
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:926)
PixelCrushers.QuestMachine.QuestGiver:OnAcceptQuest (PixelCrushers.QuestMachine.Quest) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestGiver.cs:828)
PixelCrushers.QuestMachine.UnityUIQuestDialogueUI:AcceptQuest () (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest UIs/Unity UI/Unity UI Quest Dialogue UI/UnityUIQuestDialogueUI.cs:230)
UnityEngine.EventSystems.EventSystem:Update () (at ./Library/PackageCache/com.unity.ugui@2.0.0/Runtime/UGUI/EventSystem/EventSystem.cs:530)

Save System: Loading scene Invector Scene 2 [spawn at Spawnpoint From Scene 1]
UnityEngine.Debug:Log (object)
PixelCrushers.SaveSystem/<LoadSceneCoroutine>d__135:MoveNext () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:986)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
PixelCrushers.SaveSystem:LoadScene (string) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:980)
PixelCrushers.ScenePortal:LoadScene () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/Misc/ScenePortal.cs:68)
PixelCrushers.ScenePortal:UsePortal () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/Misc/ScenePortal.cs:63)
PixelCrushers.ScenePortal:OnTriggerEnter (UnityEngine.Collider) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/Misc/ScenePortal.cs:74)

Can't load scene. Scene is not in build settings: Invector Scene 2
UnityEngine.Debug:LogError (object)
PixelCrushers.SaveSystem:SceneManagerOrAddressablesLoadScene (string) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:454)
PixelCrushers.SaveSystem/<LoadSceneInternal>d__103:MoveNext () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:513)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
PixelCrushers.SaveSystem:LoadScene (string) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:980)
PixelCrushers.ScenePortal:LoadScene () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/Misc/ScenePortal.cs:68)
PixelCrushers.ScenePortal:UsePortal () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/Misc/ScenePortal.cs:63)
PixelCrushers.ScenePortal:OnTriggerEnter (UnityEngine.Collider) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/Misc/ScenePortal.cs:74)

Save System: Can't find spawnpoint 'Spawnpoint From Scene 1'. Is spelling and capitalization correct?
UnityEngine.Debug:LogWarning (object)
PixelCrushers.SaveSystem/<LoadSceneCoroutine>d__135:MoveNext () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:1000)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

InvectorHasItemsQuestCondition: You must define the scripting symbol USE_INVECTOR_INVENTORY to use Invector inventory features in Quest Machine.
UnityEngine.Debug:LogError (object)
PixelCrushers.QuestMachine.InvectorHasItemsQuestCondition:StartChecking (System.Action) (at Assets/Pixel Crushers/Quest Machine/Third Party Support/Invector Support/Scripts/Quest Conditions/InvectorHasItemsQuestCondition.cs:127)
PixelCrushers.QuestMachine.QuestConditionSet:StartChecking (System.Action) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Condition Set/QuestConditionSet.cs:130)
PixelCrushers.QuestMachine.QuestNode:SetConditionChecking (bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:511)
PixelCrushers.QuestMachine.QuestNode:SetState (PixelCrushers.QuestMachine.QuestNodeState,bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Node/QuestNode.cs:423)
PixelCrushers.QuestMachine.QuestStateSerializer:ReadQuestNodeDataFromStream (System.IO.BinaryReader,PixelCrushers.QuestMachine.QuestNode,int) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Serialization/QuestStateSerializer.cs:242)
PixelCrushers.QuestMachine.QuestStateSerializer:ReadQuestNodesFromStream (System.IO.BinaryReader,PixelCrushers.QuestMachine.Quest,int) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Serialization/QuestStateSerializer.cs:232)
PixelCrushers.QuestMachine.QuestStateSerializer:ReadQuestDataFromStream (System.IO.BinaryReader,PixelCrushers.QuestMachine.Quest) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Serialization/QuestStateSerializer.cs:192)
PixelCrushers.QuestMachine.QuestStateSerializer:DeserializeInto (PixelCrushers.QuestMachine.Quest,byte[],bool) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Serialization/QuestStateSerializer.cs:74)
PixelCrushers.QuestMachine.QuestListContainer:ApplyData (string) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestListContainer.cs:503)
PixelCrushers.QuestMachine.QuestJournal:ApplyData (string) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestJournal.cs:254)
PixelCrushers.SaveSystem:ApplySavedGameData (PixelCrushers.SavedGameData) (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:871)
PixelCrushers.SaveSystem/<LoadSceneCoroutine>d__135:MoveNext () (at Assets/Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs:1001)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Prefab instance problem: 'vGrenadeCollectable (6) (Missing Prefab with guid: 98547674c3e98f9418dbb3a352b9684f)'. 6 instances are missing the same Prefab Asset with guid 98547674c3e98f9418dbb3a352b9684f.
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine + Invector Sample File Errors Please Help

Post by Tony Li »

Hello,

Thanks for posting your question here.

When you play the "Shooter Example" scene in Quest Machine's integration and accept the "Get Shotgun" quest, to address this red error message:

Code: Select all

InvectorHasItemsQuestCondition: You must define the scripting symbol USE_INVECTOR_INVENTORY to use Invector inventory features in Quest Machine.
please define the scripting symbol USE_INVECTOR_INVENTORY. To do this, select menu item Edit > Project Settings. In the Player section -> Other Settings, Scripting Define Symbols, add USE_INVECTOR_INVENTORY and click Apply.

This same Scripting Define Symbol works for the Dialogue System integration, too. So once you define it, it will work for both.

I've confirmed that Quest Machine's integration scene ("Shooter Example") and the Dialogue System's integration scene ("") both work with the current versions of Invector's Shooter controller and Quest Machine and the Dialogue System.

Please do not import PixelCrushers_InvectorSupport_2024-08-26.unitypackage. This may cause problems. It was provided as a patch for an earlier version.

Example scenes linked in forum posts here are typically built for the versions of assets that were available at the time of the post. I'll update the DS_QM_Invector_Example_... example so you can try it in the current versions (as of this reply).
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine + Invector Sample File Errors Please Help

Post by Tony Li »

Where did you find the "DS_QM_Invector_Example_2024-09-08.unitypackage" file?
ajjabe
Posts: 3
Joined: Sun Dec 22, 2024 1:53 pm

Re: Quest Machine + Invector Sample File Errors Please Help

Post by ajjabe »

Where did you find the "DS_QM_Invector_Example_2024-09-08.unitypackage" file?

- https://www.pixelcrushers.com/phpbb/vie ... php?t=8487
- I found this while searching for invector here.
ajjabe
Posts: 3
Joined: Sun Dec 22, 2024 1:53 pm

Re: Quest Machine + Invector Sample File Errors Please Help

Post by ajjabe »

Thank you very much. It worked out well. :D :D :D :D :D

I didn't expect to get a reply this quickly.
Happy New Year. :D :D :D :D :D
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Machine + Invector Sample File Errors Please Help

Post by Tony Li »

Hi,

Glad to help! I updated the example scene in the other thread.

Make sure you've imported:
  • Plugins/Pixel Crushers/Common/Third Party Support/Invector Support.unitypackage
  • Plugins/Pixel Crushers/Dialogue System/Third Party Support/Invector Support.unitypackage
  • Plugins/Pixel Crushers/Quest Machine/Third Party Support/Invector Support.unitypackage
  • Plugins/Pixel Crushers/Quest Machine/Third Party Support/Dialogue System Support.unitypackage
Post Reply