Author Topic: help with luafx  (Read 3552 times)

0 Members and 1 Guest are viewing this topic.

Offline nbuesgens

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
help with luafx
« 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
« Last Edit: March 20, 2012, 09:54:41 pm by nbuesgens »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: help with luafx
« Reply #1 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!




Offline nbuesgens

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: help with luafx
« Reply #2 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

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: help with luafx
« Reply #3 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.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: help with luafx
« Reply #4 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.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0