Page 1 of 1

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

Posted: Tue Jul 30, 2024 4:19 am
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 294 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

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

Posted: Tue Jul 30, 2024 9:25 am
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.