Page 1 of 1

OpenAI plugin - missing AI button

Posted: Mon Mar 27, 2023 8:45 am
by w4der
Hi,
I bought the OpenAI plugin. It is awesome!

I have troubles with importing it to the project, because of lack of Assembly Definitions.
Are you able to deliver Assembly Definitions like they were in the other packages like Quest Machine and Dialogue System?
I tried to create the one Assembly Definition by my own, but I was not able to set it properly so it will work (more below).


What I achieved so far:
1. Plugin is working - it create the quests, but I have missing AI button - so I'm not able to translate specific field in conversations.
2. I use Unity Localization Package - so translation by OpenAI is not possible - it is not working
3. I tried to create Assembly Definition by my own, but I don't know why it doesn't work. I created Assebly Definition in the following place

Code: Select all

Dialogue System Addon for OpenAI/Scripts/Editor/DialogueSystemAddonForOpenAIEditor.asmdef
assign the others assembly definitions like: OpenAI, DialogueSystem, DialogueSystemEditor etc.
Unfortunately I was not able to get rid of whole bunch of errors
Screen_00346.png
Screen_00346.png (167.24 KiB) Viewed 438 times
4. Finally after restarting unity, re importing all files, etc. I get rid of the Assembly Definition that i created. I moved all scripts as follow
Screen_00351.png
Screen_00351.png (181.71 KiB) Viewed 438 times
(i know it is wrong), but now I was able to generate the quests using OpenAI. The main error here is that I don't have the AI button in converstations.
Screen_00352.png
Screen_00352.png (83.6 KiB) Viewed 438 times

Re: OpenAI plugin - missing AI button

Posted: Mon Mar 27, 2023 9:35 am
by w4der
And here is the correct way having the Assembly Definition, but as you can see there are many errors. Even if I added the correct assembly definitions.

Re: OpenAI plugin - missing AI button

Posted: Mon Mar 27, 2023 9:47 am
by Tony Li
I'll take a look at this and provide asmdefs here later today. They'll also be included in an optional package in the next release of the addon.

Re: OpenAI plugin - missing AI button

Posted: Mon Mar 27, 2023 4:28 pm
by Tony Li
Hi,

This package contains an asmdef reference file for the addon, plus an updated DialogueSystemEditor.asmdef that references the OpenAI asmdef:

AddonAssemblyDefinitions.unitypackage

Re: OpenAI plugin - missing AI button

Posted: Tue Mar 28, 2023 6:23 am
by w4der
Hi,
Thank you, the errors are gone, but I'm still not able to find AI button in the dialogue editor.

My inspector:
Screen_00354.png
Screen_00354.png (107.43 KiB) Viewed 419 times
Your Tutorial online:
Screen_00355.png
Screen_00355.png (388.5 KiB) Viewed 419 times

Re: OpenAI plugin - missing AI button

Posted: Tue Mar 28, 2023 1:15 pm
by Tony Li
Hi,

What does your Dialogue System Addon for Open AI Welcome Window look like? Can you post a screenshot?

Re: OpenAI plugin - missing AI button

Posted: Tue Mar 28, 2023 4:29 pm
by w4der
Yes sure ;)

Re: OpenAI plugin - missing AI button

Posted: Tue Mar 28, 2023 7:11 pm
by Tony Li
Thanks. The Welcome window looks good. The OpenAI for Unity package is installed, and the USE_OPENAI Scripting Define Symbol is set. Let's double check the Scripting Define Symbol. Please select menu item Edit > Project Settings. In the Player section, locate Other Settings > Scripting Define Symbols. Make sure USE_OPENAI is listed.

If USE_OPENAI is set, are there any errors or warnings in the Console window?

Also, are you using Dialogue System version 2.2.35 or higher? The addon requires 2.2.35+.

Re: OpenAI plugin - missing AI button [Solved]

Posted: Wed Mar 29, 2023 3:48 am
by w4der
I had old version of Dialogue System 2.2.32.
After update it works!
Thank you!

Re: OpenAI plugin - missing AI button

Posted: Wed Mar 29, 2023 9:38 am
by Tony Li
Glad to help!