Omnimaga

Calculator Community => Casio Calculators => Topic started by: nbuesgens on March 20, 2012, 09:53:34 pm

Title: help with luafx
Post by: nbuesgens on March 20, 2012, 09:53:34 pm
So i recently downloaded Luafx to my fx-9860g because it looked interesting. i found the utmost basic code i could
clear nil
graydraw.print("Hello World!")
misc.wait(200)

i saved it as a .lua file and put it in storage memory. when i open up lua and choose the file it says
" executing test!!!!...... [string "hello.lua''] :7: unexpected symbol"
i have no idea what it means or what to do about it. can i get some help? thanks
Title: Re: help with luafx
Post by: Deep Toaster on March 20, 2012, 09:55:48 pm
Is that your entire code? It says the error is on line 7. And if your program is really called test!!!!, try renaming it to something else -- it's never a great idea to put weird symbols in program names.

And welcome to Omnimaga, nbuesgens!
Title: Re: help with luafx
Post by: nbuesgens on March 20, 2012, 10:09:44 pm
i got the code from this link http://prizmwiki.omnimaga.org/wiki/Flyingfisch's_LuaFX_tutorial
 and i named it hello.lua
Title: Re: help with luafx
Post by: Eiyeron on March 22, 2012, 02:31:19 pm
YOu should pre-compile the .lua file before, making it a .lc file, usable by the interpreter.
SOrry, but the pre-compiler on the addin does not work yet.
Title: Re: help with luafx
Post by: flyingfisch on March 26, 2012, 01:39:14 pm
Actually, if you use the fx-Manager plus, you can use the precompiler ;) Otherwise, yeah, it doesn't work.