Page 1 of 1
I get an error when I import Invector UI Journal Example
Posted: Thu Mar 25, 2021 9:59 pm
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?)
Re: I get an error when I import Invector UI Journal Example
Posted: Thu Mar 25, 2021 11:00 pm
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.
Re: I get an error when I import Invector UI Journal Example
Posted: Fri Mar 26, 2021 10:48 am
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
Re: I get an error when I import Invector UI Journal Example
Posted: Fri Mar 26, 2021 11:19 am
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.)
Re: I get an error when I import Invector UI Journal Example
Posted: Tue Mar 30, 2021 11:39 am
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.
Re: I get an error when I import Invector UI Journal Example
Posted: Tue Mar 30, 2021 12:09 pm
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.