Page 1 of 1

Illegal names for custom Lua functions.

Posted: Sat Sep 18, 2021 4:02 pm
by ferakiii
Just incase anyone else here comes across this weird corner case.

I registered a custom lua function called

Code: Select all

endJourney
, but ever time I tried to call it, it gave me a

Code: Select all

Line 2, Col 1 : Failed to parse Letter of Name.
error. When I renamed it to

Code: Select all

failJourney
it worked perfectly.

I am wondering are there certain keywords you can't begin function names with? Or am I going crazy.

Re: Illegal names for custom Lua functions.

Posted: Sat Sep 18, 2021 4:55 pm
by Tony Li
Hi,

Looks like my Lua implementation has a parsing issue with functions that start with "end" (case-sensitive). I'll try to address this in the next update. In the meantime, the workaround is to not start your Lua function names with "end". You can use "End", though.

Re: Illegal names for custom Lua functions.

Posted: Sun Sep 19, 2021 3:10 am
by ferakiii
Thanks Tony, yeah, it was super weird, but now I know, it's no biggie :D