Dialogue System: Lua code 'end_cutscene()' threw exception 'Code has syntax errors: Line 1, Col 1 'e': Failed to parse r

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
robscatch
Posts: 1
Joined: Tue Jul 30, 2024 3:56 am

Dialogue System: Lua code 'end_cutscene()' threw exception 'Code has syntax errors: Line 1, Col 1 'e': Failed to parse r

Post by robscatch »

When creating the class public class YarnCustomCommandExtensions : YarnCustomCommands
I created a function for end_cutscene. However I run into the error below

Code: Select all

Dialogue System: Lua code 'end_cutscene()' threw exception 'Code has syntax errors: Line 1, Col 1 'e': Failed to parse r
This happens even without implementing the custom method and my guess is that anything that starts with end doesn;t work for Lua script method name.
Screenshot 2024-07-30 011548.png
Screenshot 2024-07-30 011548.png (43.44 KiB) Viewed 291 times
Reference: https://www.pixelcrushers.com/dialogue_ ... yarn2.html

My work around is to create the custom script method that doesn't start with end
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System: Lua code 'end_cutscene()' threw exception 'Code has syntax errors: Line 1, Col 1 'e': Failed to par

Post by Tony Li »

Hi,

That's a bug. Thanks for letting me know. I'll try to have it fixed in version 2.2.48.
Post Reply