OpenAI plugin - missing AI button

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
w4der
Posts: 14
Joined: Sun Dec 19, 2021 12:07 pm

OpenAI plugin - missing AI button

Post 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 459 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 459 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 459 times
w4der
Posts: 14
Joined: Sun Dec 19, 2021 12:07 pm

Re: OpenAI plugin - missing AI button

Post 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.
Attachments
Screen_00353.png
Screen_00353.png (252.05 KiB) Viewed 452 times
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: OpenAI plugin - missing AI button

Post 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.
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: OpenAI plugin - missing AI button

Post 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
w4der
Posts: 14
Joined: Sun Dec 19, 2021 12:07 pm

Re: OpenAI plugin - missing AI button

Post 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 440 times
Your Tutorial online:
Screen_00355.png
Screen_00355.png (388.5 KiB) Viewed 440 times
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: OpenAI plugin - missing AI button

Post by Tony Li »

Hi,

What does your Dialogue System Addon for Open AI Welcome Window look like? Can you post a screenshot?
w4der
Posts: 14
Joined: Sun Dec 19, 2021 12:07 pm

Re: OpenAI plugin - missing AI button

Post by w4der »

Yes sure ;)
Attachments
Screen_00363.png
Screen_00363.png (204.55 KiB) Viewed 435 times
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: OpenAI plugin - missing AI button

Post 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+.
w4der
Posts: 14
Joined: Sun Dec 19, 2021 12:07 pm

Re: OpenAI plugin - missing AI button [Solved]

Post by w4der »

I had old version of Dialogue System 2.2.32.
After update it works!
Thank you!
User avatar
Tony Li
Posts: 22102
Joined: Thu Jul 18, 2013 1:27 pm

Re: OpenAI plugin - missing AI button

Post by Tony Li »

Glad to help!
Post Reply