Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: annoyingcalc on September 17, 2011, 05:06:57 pm

Title: luna help compiling programs
Post by: annoyingcalc 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
Title: Re: luna help compiling programs
Post by: apcalc 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.
Title: Re: luna help compiling programs
Post by: ExtendeD 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?
Title: Re: luna help compiling programs
Post by: Jim Bauwens 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.
Title: Re: luna help compiling programs
Post by: Adriweb on September 18, 2011, 12:53:18 pm
and Nspire -> DS  would mean that all the event-based structure would have to be recreated ...
Title: Re: luna help compiling programs
Post by: Jim Bauwens 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.
Title: Re: luna help compiling programs
Post by: annoyingcalc 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!
Title: Re: luna help compiling programs
Post by: Deep Toaster 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.
Title: Re: luna help compiling programs
Post by: JosJuice 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.
Title: Re: luna help compiling programs
Post by: ExtendeD 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.