Author Topic: Getting started with Lua on Nspire  (Read 10194 times)

0 Members and 1 Guest are viewing this topic.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Getting started with Lua on Nspire
« Reply #15 on: December 30, 2011, 03:49:59 pm »
You can't really get .tns oncalc, at least I don't think so...

Maybe if a ndless program could parse the xml (of the Lua code) that would be inside the .tns and extract it to create a script widget like Luna does ... but this could be quite difficult.
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: Getting started with Lua on Nspire
« Reply #16 on: December 30, 2011, 04:37:33 pm »
What about just finding the right syscalls to the functions the OS uses?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Getting started with Lua on Nspire
« Reply #17 on: December 30, 2011, 04:42:01 pm »
What about just finding the right syscalls to the functions the OS uses?

What ???
:o
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Getting started with Lua on Nspire
« Reply #18 on: December 30, 2011, 05:00:54 pm »
Using the Oclua calc thingy, would I be able to save after I copied and pasted?

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Getting started with Lua on Nspire
« Reply #19 on: December 30, 2011, 06:11:42 pm »
What about just finding the right syscalls to the functions the OS uses?

What ???
:o
Well, the OS can decode, encode documents. If you could find the functions that handle this it will be more easy.

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Getting started with Lua on Nspire
« Reply #20 on: December 30, 2011, 07:38:42 pm »
you could save the notes page that you made your code in
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Getting started with Lua on Nspire
« Reply #21 on: December 31, 2011, 04:04:45 am »
The whole OpenSSL library is included in the OS so porting Luna would probably be easier. And the OS validation of the PK-ZIP format is actually quite weak so minizip isn't really needed.
Ndless.me with the finest TI-Nspire programs

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Getting started with Lua on Nspire
« Reply #22 on: December 31, 2011, 04:06:11 am »
The whole OpenSSL library is included in the OS so porting Luna would probably be easier. And the OS validation of the PK-ZIP format is actually quite weak so minizip isn't really needed.
Great :)
That's a good ndless project then, for anyone who has some time to spend on that :P
« Last Edit: December 31, 2011, 04:06:38 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Getting started with Lua on Nspire
« Reply #23 on: January 01, 2012, 03:19:41 am »
Umm, all files on the calc are .tns files :P they may not follow the .tns guideline, but even your gameboy roms from gbc4nspire are .tns files.

Argh page turn fail.

What I'd really love is mimas-style asm programming on-calc. that would totally rock, especially since a ram clear doesn't affect you in the slightest! A crashing program can have literally no effect on the others, since everything is basically in the archive!
« Last Edit: January 01, 2012, 03:22:02 am by willrandship »

Offline Ghezra

  • LV2 Member (Next: 40)
  • **
  • Posts: 30
  • Rating: +4/-0
    • View Profile
Re: Getting started with Lua on Nspire
« Reply #24 on: March 04, 2012, 12:17:13 pm »
At certain times I had large imgSRCs loading on the screen, what I found is that you can cut down the time it takes to refresh the screen dramatically if you have it to where it draws the image, and then only refresh sections of the screen that are changing with the functions.

Check out http://wiki.inspired-lua.org/platform.window:invalidate

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Getting started with Lua on Nspire
« Reply #25 on: March 04, 2012, 08:19:10 pm »
Wow great discussion here.
Yeah nspire BASIC is really limited, though you can make "menu" based games where you select particular commands/programs to run. Graphing stuff is limited though, but there are some things you can do with changing variables in programs.
« Last Edit: March 04, 2012, 08:19:32 pm by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)