Author Topic: Lua print restored in OS 3.1  (Read 19308 times)

0 Members and 4 Guests are viewing this topic.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Lua print restored in OS 3.1
« on: March 24, 2012, 06:37:31 am »
Cross-posting from TI-Planet.

When Nspire OS 3.1.0.392 was released in september, we discovered that the  standard Lua print() function had been removed.

This function made it possible to output data to the RS232 port of the Nspire, thereby enabling control of external peripherals, sound output, or whatever you see fit. It was already used in the wild when TI removed it...






This mis-feature of TI-Nspire OS 3.1.0.392 can now be fixed, thanks to fixprint. Fixprint hot-patches the OS in RAM to restore the funtionnality which was removed by TI, and can be launched automatically on boot by Ndless 3.1 :)


This program is yet another compelling showcase of the endless possibilities offered by native code - including hotfixes to TI's OS (fixprint can be considered as such).
Sadly, TI is dead set on shutting the door to native code on the Nspire platform...



Download from the TI-Planet news:
http://tiplanet.org/forum/viewtopic.php?t=8931
« Last Edit: March 24, 2012, 06:38:08 am by critor »
TI-Planet co-admin.

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Lua print restored in OS 3.1
« Reply #1 on: March 24, 2012, 06:50:38 am »
Awesome! :D
Well done to the maker of that utitlity.


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua print restored in OS 3.1
« Reply #2 on: March 24, 2012, 06:52:33 am »
It's a team of makers, actually :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Lua print restored in OS 3.1
« Reply #3 on: March 24, 2012, 07:12:11 am »
Nice work !
The RS232 port is quite fun to play with :)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Lua print restored in OS 3.1
« Reply #4 on: March 24, 2012, 09:26:24 am »
Very nice ;D

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Lua print restored in OS 3.1
« Reply #5 on: March 24, 2012, 09:35:47 am »
do you just have to put fixprint.tns on your calc and nothing else? since i was that runprint.tns too, and i'm confused :)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua print restored in OS 3.1
« Reply #6 on: March 24, 2012, 10:15:51 am »
Oh yeah, I should have put a note about runprint :)
fixprint is the Ndless program, and runprint is the Lua testcase.

fixprint ought to be launched interactively, the first time, to check whether you have the appropriate version of Ndless 3.1 beta (SVN r568 and later). If you don't, the calculator will reboot, and you'll have to upgrade your Ndless version. In my testing with SVN r568, I hadn't noticed a problem.
« Last Edit: March 24, 2012, 11:08:15 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: Lua print restored in OS 3.1
« Reply #7 on: March 24, 2012, 11:32:40 am »
this is realy nice! In a month or so I'll start playing with it, I've got everything to start playing :D a nspire, an arduino, an rs232 usb adapter, wires, an LCD screen and imagination! this is gonna be great!

Good job, thanks to the team of makers! :D

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Lua print restored in OS 3.1
« Reply #8 on: March 24, 2012, 01:14:55 pm »
Yay cool serial stuff is back :D

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Dingus

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 129
  • Rating: +19/-6
    • View Profile
Re: Lua print restored in OS 3.1
« Reply #9 on: March 24, 2012, 01:25:24 pm »
Was eliminating this functionality another effort on ti's part to indicate clearly that they don't want our business?  Or just another one of their stupid mistakes. 

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Lua print restored in OS 3.1
« Reply #10 on: March 24, 2012, 01:33:29 pm »
Was eliminating this functionality another effort on ti's part to indicate clearly that they don't want our business?  Or just another one of their stupid mistakes. 

i guess the first. They really don't want to make us do things with it that don't fit with the needs for school and other "serious" stuff.
So everything that might be used to make it function more than it should gets removed

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua print restored in OS 3.1
« Reply #11 on: March 24, 2012, 02:07:40 pm »
And the problem is, serial communication definitely has valid uses for classrooms, so by crippling their Lua (intentionally or not) and by fighting native code, they're doubly hurting themselves...
See, for instance, two projects aimed at drawing curves for math functions:
* the ToyoBot, made by critor's students and himself: a TI-Robot controlled by a TI-Z80, http://tiplanet.org/forum/archives_voir.php?id=1859 ;
* TDF89, using a different drawing hardware controlled by a TI-68k: http://tiplanet.org/forum/viewtopic.php?p=102589#p102589 , http://www.dailymotion.com/swf/video/xgj6rx
Such projects are always great learning experiences for pupils...

Besides expanding functionality, patching the OS in RAM allows third parties to prevent TI's bugs from striking (I think that the boot2 reflashing code contained in OS 3.0.1.1753, which bricked thousands of calculators beyond repair with standard hardware and software last year, could be prevented from striking), or fix them (e.g. fixprint), without TI having to deploy new OS versions !
The possibilities are endless :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Lua print restored in OS 3.1
« Reply #12 on: March 24, 2012, 04:58:42 pm »
This is cool. A few weeks ago I remember people telling me they wished more sound games existed in Lua for OS 3.1, but I had to tell them that sound was no longer possible via Lua.

@Lionel, could they be preventing actual stuff such as TI-Robot from being done in order to prevent people from making money with such device? Not that this would affect them at all if people made money by creating a third-party add-in for the TI-Nspire, but we never know what TI thinks, sometimes. >.>

Offline Dingus

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 129
  • Rating: +19/-6
    • View Profile
Re: Lua print restored in OS 3.1
« Reply #13 on: March 24, 2012, 06:30:18 pm »
And the problem is, serial communication definitely has valid uses for classrooms, so by crippling their Lua (intentionally or not) and by fighting native code, they're doubly hurting themselves...

Why do I keep thinking that the only effective way to deal with TI is to hurt them financially such as a boycott on buying new nspires (used is ok because ti doesn't get that money) and pressure on teachers to put the toys away and go back to teaching/learning math again? 

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Lua print restored in OS 3.1
« Reply #14 on: March 24, 2012, 10:30:23 pm »
Great News! ;)