ANTLR4 error

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
WJS007
Posts: 2
Joined: Mon Apr 07, 2025 4:27 pm

ANTLR4 error

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

Re: ANTLR4 error

Post by Tony Li »

Hi,

Yarn import requires setting up assembly definitions. The instructions are here: Yarn 2 Import
WJS007
Posts: 2
Joined: Mon Apr 07, 2025 4:27 pm

Re: ANTLR4 error

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

Re: ANTLR4 error

Post 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".
Post Reply