I get an error when I import Invector UI Journal Example

Announcements, support questions, and discussion for Quest Machine.
Post Reply
closetgeekshow
Posts: 4
Joined: Thu Oct 25, 2018 10:44 am

I get an error when I import Invector UI Journal Example

Post by closetgeekshow »

I'm trying to set up Quest Machine with Invector in a scene but I get an error when I import it. Am I maybe skipping a step somewhere?

Error:
Assets\Quest Machine Examples\Invector UI Journal Example\InvectorQuestJournalUtility.cs(31,51): error CS1061: 'vInventory' does not contain a definition for 'firstWindow' and no accessible extension method 'firstWindow' accepting a first argument of type 'vInventory' could be found (are you missing a using directive or an assembly reference?)
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: I get an error when I import Invector UI Journal Example

Post by Tony Li »

Looks like you have an older version of that extra script. Here's the latest:

QM_InvectorUIJournalExample_2020-05-09.unitypackage

Remember to import both Invector Support packages (including the one in Common) and also add the scripting USE_INVECTOR_INVENTORY.
closetgeekshow
Posts: 4
Joined: Thu Oct 25, 2018 10:44 am

Re: I get an error when I import Invector UI Journal Example

Post by closetgeekshow »

Thank you that almost worked, I did get a bunch of errors in InvectorInventorySaver.cs that I had to correct (mostly to fix spelling in places), like changing "currentEquipedItem" to "currentEquippedItem".

And after doing that I've got some errors on the Inventory_ShooterMelee_Journal prefab.

"You are trying to replace or create a Prefab from the instance 'MainWindow' that references a missing script. This is not allowed.
Please change the script or remove it from the GameObject."
and then 4 more of the same message for EquipmentInventory, EquipmentPickerWindow, ItemWindow, and Options
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: I get an error when I import Invector UI Journal Example

Post by Tony Li »

It sounds like you're using an old version of the entire integration package. Invector's code had some misspellings, so the QM integration had to go along with those misspellings. After Invector fixed the misspellings, the QM integration was updated, but that was a while ago. Here's the latest integration:

QM_InvectorSupport_1_2_14.unitypackage

(Back up your project/changes first, just for safety.)
closetgeekshow
Posts: 4
Joined: Thu Oct 25, 2018 10:44 am

Re: I get an error when I import Invector UI Journal Example

Post by closetgeekshow »

Thank you, I haven't tried this yet but I will once I return to adding in QM into my project.

You really are the best and most helpful asset publisher.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: I get an error when I import Invector UI Journal Example

Post by Tony Li »

Glad to help! If you still see an error after importing the package, please confirm the versions of Invector and Quest Machine in your project.
Post Reply