Missing Assembly Reference

Announcements, support questions, and discussion for Quest Machine.
Mchia_Soo
Posts: 72
Joined: Sun Jun 30, 2019 11:59 pm

Missing Assembly Reference

Post by Mchia_Soo »

Hello!

I have just imported the Quest Machine into my project. I have Dialogue System in my project before the Quest Machine. The problem is that there are a lot of errors saying that the namespace in the scripts could not be found (Are you missing an assembly reference?), such as:
1. SequencerCommand
2. Subtitle
3. Response
4. Dialogue Entry
5. Conversation
6. Template
7. Actor

The scripts involved are
1. Dialogue System Quest Dialogue UI
2. Dialogue System Quest Machine Bridge
3. Sequencer Command Spawner

This happened after I imported the Dialogue System Support.
I am still new to C# and Quest Machine, perhaps there's any tips to help me to resolve this problem?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing Assembly Reference

Post by Tony Li »

Hi,

Are you mixing an evaluation version of one asset and the paid version of the other asset?

If so, this is still supported. But you need to delete this folder: Plugins / Pixel Crushers / Common / Scripts.

If that isn't the issue, have you moved any Dialogue System or Quest Machine folders? Unity imposes requirements on certain special folders such as Plugins and Editor Default Resources.

Would you please try to import both assets into a new, empty project? If there are no errors, then please import Quest Machine's Dialogue System Support package. Let me know if that works.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing Assembly Reference

Post by Tony Li »

A couple more questions:

Are you using assembly definition files?

What version of Unity are you using?
Mchia_Soo
Posts: 72
Joined: Sun Jun 30, 2019 11:59 pm

Re: Missing Assembly Reference

Post by Mchia_Soo »

Both assets I am using are the paid version from Asset Store. It worked fine when I opened both asset files in new project. However when I re-imported the assets into my projects again, another errors came out.
  • error CS1061: Type `PixelCrushers.DialogueSystem.BarkGroupMember' does not contain a definition for `GroupBark' and no extension method `GroupBark' of type `PixelCrushers.DialogueSystem.BarkGroupMember' could be found. Are you missing an assembly reference?
  • error CS1061: Type `PixelCrushers.DialogueSystem.BarkGroupMember' does not contain a definition for `GroupBarkString' and no extension method `GroupBarkString' of type `PixelCrushers.DialogueSystem.BarkGroupMember' could be found. Are you missing an assembly reference?
I am not using the Assembly Definition files, but I found it in the folder of Dialogue System, Quest Machine and Common files.
The Unity version is 2018.1.8 .
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing Assembly Reference

Post by Tony Li »

Hi,

Please try deleting the Dialogue System and Quest Machine from your project. (Make a backup first, just to be safe.) Then import them again.

If that doesn't fix the problem, would you please send a copy of your project to tony (at) pixelcrushers.com? I'll be happy to take a look and let you know what's going on.
Mchia_Soo
Posts: 72
Joined: Sun Jun 30, 2019 11:59 pm

Re: Missing Assembly Reference

Post by Mchia_Soo »

I have just messaged you regarding this issue and about my project. Kindly check your message box.

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

Re: Missing Assembly Reference

Post by Tony Li »

Thank you for the details. I just tested a project with Opsive, Dialogue System, Quest Machine, and the two QM+DS integration packages in Common/Third Party Support and Quest Machine/Third Party Support.

In your main project, here are two things you can try:

1. Look for an assembly definition file in this folder or one of its parent folders:
Assets / Pixel Crushers / Quest Machine / Third Party Support / Dialogue System Support / Scripts
  • Check: Assets / Pixel Crushers / Quest Machine / Third Party Support / Dialogue System Support / Scripts
  • Then check: Assets / Pixel Crushers / Quest Machine / Third Party Support / Dialogue System Support
  • Then check: Assets / Pixel Crushers / Quest Machine / Third Party Support
  • et cetera. You may have to go all the way up to the Assets folder.
until you find one. Then inspect this assembly definition file, and add Assembly Definition References for the Dialogue System and Quest Machine assembly definition files. You may find these assembly definition files in Plugins / Pixel Crushers / ....

2. Or: Make a backup of your project. Then delete all assembly definition files in the project.
Mchia_Soo
Posts: 72
Joined: Sun Jun 30, 2019 11:59 pm

Re: Missing Assembly Reference

Post by Mchia_Soo »

Yeah! I finally manage to solve the errors! What I did is that I deleted the assembly files and re-imported the Dialogue System Support. Everything is back to normal after the import.
Thanks a lot Tony!

Regards,
Mei Chia
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing Assembly Reference

Post by Tony Li »

Great! I'm glad you were able to get it working.

If your boss asks you to put the assembly definition files back, you may need to do step #1 in my previous post instead.
jwasilenko
Posts: 1
Joined: Tue May 24, 2022 2:09 pm

Re: Missing Assembly Reference

Post by jwasilenko »

Hello, I'm trying to get assembly definitions working using both Quest Machine and Dialogue System.

After importing the provided .asmdef packages, and making the reference from Quest Machine to Dialogue System,

The scripts in 'Pixel Crushers\Quest Machine\Third Party Support\Dialogue System Support\Scripts\Editor' give me some errors. I created another assembly definition inside this folder, and set it to editor only to solve the errors. However the project does not build and I am missing the menu options
" Tools → Pixel Crushers → Quest Machine → Third Party → Dialogue System → Quest DB To Dialogue DB."

What's the correct setup for assembly definitions and importing the Quest Machine Third Party Support\Dialogue System Support scripts?

Edit:
Found Solution
Attached correct settings if anyone else runs into this same problem.
Attachments
assembly-def.PNG
assembly-def.PNG (26.81 KiB) Viewed 2773 times
Post Reply