Author Topic: Lua's compatibility with future versions of the Nspire  (Read 1884 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • If you can't find a cat, look for its tail.
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2966
  • Rating: +445/-10
    • View Profile
Lua's compatibility with future versions of the Nspire
« on: December 19, 2011, 06:36:56 pm »
Lua has become quite a valuable and popular programming language for the Nspire series of calculators.  Since Lua is used for a lot of games, it would be awful if a promising game could only work on some OSes of the Nspire and not others.  As such, we are thankful to Critor for the following topic:

Basically, if your Lua game includes only functions that TI documents and gives instructions for, your game is almost 100% guranteed to work on future Operating Systems of the Nspire.  However, there are some functions that TI did not mention, hidden functions that were discovered through the work of others.  Sometimes these functions are changed or removed in future versions of the Nspire, and your game will not work on those particular calculators. 

What we're saying is if you would like to create a Nspire game that everyone can use, be careful using undocumented instructions.  There's no promise that the functions will remain.  You should be safe sticking with the functions that TI talks about.

On another note, here's an official TI operating system that critor found, but TI hasn't made available for download:
There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Lua's compatibility with future versions of the Nspire
« Reply #1 on: December 20, 2011, 02:23:51 am »
Nice and clear :)

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
Re: Lua's compatibility with future versions of the Nspire
« Reply #2 on: December 20, 2011, 06:36:02 am »
Just wanted to add something :

For people using Inspired-Lua (the wiki, at least),
we're now marking the unofficial/undocumented functions, so you can see it clearly.

Example :
« Last Edit: December 20, 2011, 06:36:08 am by adriweb »
My calculator programs co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Loulou 54

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 165
  • Rating: +39/-0
    • View Profile
    • Mes programmes sur TI bank.
Re: Lua's compatibility with future versions of the Nspire
« Reply #3 on: December 20, 2011, 09:48:26 am »
Oh.. I use gc:setAlpha in ABA Logique..

Beside I noted it doesn't work very well on the calculator.
Indeed, on the device, there aren't 255 levels of transparency but two :
* If you set gc:setAlpha(255) what's displayed is opaque.
* If you set something between 0 and 254, it's the same and the thing displayed is half transparent..
That's weird. On the software it works well and that's proportionnal.

So if you want the same level of transparency on the software and the calculator, you have to set gc:setAlpha(128).

Then, if you want to make a gradient or other levels you can superimpose things with this transparency.

(That's what I made in ABA Logique under the titles)
Some of my program available here.. :)