Page 1 of 1

ANTLR4 error

Posted: Mon Apr 07, 2025 4:35 pm
by WJS007
Hi Tony, I'm a big fan of the Dialogue System

I use it with YarnSpinner

I get the following error (and a list coming from this) on a new project with only DS (2.2.51) and YarnSpinner (2.5):
--The type or namespace name 'Antlr4' could not be found (are you missing a using directive or an assembly reference?)--

I am on a Mac.

Re: ANTLR4 error

Posted: Mon Apr 07, 2025 4:44 pm
by Tony Li
Hi,

Yarn import requires setting up assembly definitions. The instructions are here: Yarn 2 Import

Re: ANTLR4 error

Posted: Mon Apr 07, 2025 6:37 pm
by WJS007
Thanks your a star! I must have missed one of them.

but in the process I broke something else and I'm getting:
Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Editor/Dialogue Editor/Nodes/DialogueEditorWindowConversationNodeEditorTopControls.cs(119,13): error CS0103: The name 'DrawAIGenerateConversationButton' does not exist in the current context

I suppose completely unrelated :D

Re: ANTLR4 error

Posted: Mon Apr 07, 2025 8:18 pm
by Tony Li
Hi,

If your project doesn't have the Dialogue System Addon for OpenAI And Other Generative AI (a separately-purchased addon asset), then select menu item Edit > Project Settings. In Player > Other Settings > Scripting Define Symbols, remove the symbol "USE_OPENAI".