Author Topic: luna help compiling programs  (Read 5377 times)

0 Members and 1 Guest are viewing this topic.

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
luna help compiling programs
« on: September 17, 2011, 05:06:57 pm »
http://www.nintendomax.com/viewtopic.php?p=35881#p35881 is where I got the source code I use luna and it closes on me with an error saying it crashed I want to put that on my nspire os 3.0.2
This used to contain a signature.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: luna help compiling programs
« Reply #1 on: September 18, 2011, 08:45:42 am »
Is this Lua program specifically Nspire coded?

The version of Lua on the Nspire is different than the general computer Lua.


Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: luna help compiling programs
« Reply #2 on: September 18, 2011, 09:08:06 am »
By the way would it be possible to create a compatibility layer under the Nintendo DS API?
« Last Edit: September 18, 2011, 09:08:34 am by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: luna help compiling programs
« Reply #3 on: September 18, 2011, 10:48:37 am »
Do you mean Nspire on DS, or oposite?
DS on the Nspire isn't possible without big modifcations to the script, as it depends on stuff such as io.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: luna help compiling programs
« Reply #4 on: September 18, 2011, 12:53:18 pm »
and Nspire -> DS  would mean that all the event-based structure would have to be recreated ...
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: luna help compiling programs
« Reply #5 on: September 18, 2011, 01:18:26 pm »
That wouldn't actually be so hard, you just need a main loop were you call the appropriate event handlers.

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: luna help compiling programs
« Reply #6 on: September 18, 2011, 07:58:02 pm »
actually for nspire cx and it is intended for ds but from reading posts above I currently have never used lua so I cant but if someone else can GREAT!
This used to contain a signature.

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: luna help compiling programs
« Reply #7 on: September 18, 2011, 07:59:17 pm »
Nspire Lua is different from computer Lua, just like TI-BASIC is (very, very) different from computer BASIC. You'll have to rewrite the program to make it compatible.




Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: luna help compiling programs
« Reply #8 on: September 19, 2011, 01:56:16 am »
Nspire Lua is different from computer Lua, just like TI-BASIC is (very, very) different from computer BASIC. You'll have to rewrite the program to make it compatible.
Nspire Lua and normal Lua are the same language but with different routines. TI-BASIC and normal bBASIC have nothing to do with each other, except for the name. But yes, the program would probably require a rewrite.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: luna help compiling programs
« Reply #9 on: September 19, 2011, 07:15:29 am »
Do you mean Nspire on DS, or oposite?
DS on the Nspire isn't possible without big modifcations to the script, as it depends on stuff such as io.

I think of DS on the Nspire, to port existing DS games.
Even if the API cannot be entirely recreated, porting would be easier.
Ndless.me with the finest TI-Nspire programs