Author Topic: First non-TI-BASIC game on TI-Nspire OS 3.0  (Read 26814 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
First non-TI-BASIC game on TI-Nspire OS 3.0
« on: April 13, 2011, 03:27:57 am »
Although ARM9 assembly and C language files are still not possible on them, the new TI-Nspire OS'es definitively have support for an extra programming language with more possibilities than the crippled TI-Nspire BASIC. As reported in our previous news, it seemed that OS 3.0 also included Lua interpreted language or a similar form of it. Now Goplat has made the following Wacky Fun Ran... er... I mean 15 Puzzle clone:



http://www.omnimaga.org/index.php?action=dlattach;topic=7770.0;attach=7305
A better quality preview of it is also available in AVI format. The game can be downloaded here.

Although this is not Crysis nor nDoom, once Goplat or somebody else will make it possible for other people to develop documents written in this language, it will be possible for them to develop TI-Nspire OS 3.0 games written in Lua, featuring support for interactive key input like we have on Z80 and 68K TI-BASIC languages and as you can see, it doesn't seem very slow like the display commands on the Casio Prizm OS.

UPDATE (15:48): This is how Goplat created the document!
Here's how I made the .tns file:

  • Create a blank document
  • Create a Problem1.xml file, containing the following (without any line breaks, except in the script itself):
    <?xml version="1.0" encoding="UTF-8" ?><prob xmlns="urn:TI.Problem" ver="1.0" pbname=""><sym></sym><card clay="0" h1="10000" h2="10000" w1="10000" w2="10000"><isDummyCard>0</isDummyCard><flag>0</flag><wdgt xmlns:sc="urn:TI.ScriptApp" type="TI.ScriptApp" ver="1.0"><sc:mFlags>0</sc:mFlags><sc:value>-1</sc:value><sc:script>Lua script goes here (with appropriate character entities replacing the four characters < > " ')</sc:script></wdgt></card></prob>
  • Use 7-zip to create a zip file containing Problem1.xml
  • Concatenate the beginning of the blank document, up to the end of Document.xml (at offset 0x170), with the zip file. (OS 3.0 requires Document.xml to be encrypted, but thankfully Problem*.xml can still be unencrypted.)
Source: this post
« Last Edit: April 18, 2011, 05:36:39 pm by DJ_O »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #1 on: April 13, 2011, 03:40:16 am »
Getkey command? Yeah!


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

Interview with me

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #2 on: April 13, 2011, 04:18:11 am »
This looks very nice, but I can't get, by reading the article, what language was used to do this, Lua?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #3 on: April 13, 2011, 04:19:03 am »
Yup, it's Lua.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #4 on: April 13, 2011, 04:20:05 am »
Its Ti-Lua !

Does this mean that Ti is adding more programming capabilities to their nSpires?
Wow, never expected that!

Edit:
100st post!
« Last Edit: April 13, 2011, 04:21:46 am by jimbauwens »

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #5 on: April 13, 2011, 05:52:48 am »
I hope that Lua isn't a hard programming language :P


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

Interview with me

Ashbad

  • Guest
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #6 on: April 13, 2011, 06:22:52 am »
I hope that Lua isn't a hard programming language :P

Don't worry, it's a step down from Axe in difficulty ;)

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #7 on: April 13, 2011, 07:07:05 am »
Getkey and drawing functions... awesome. O.O
I like Lua, it's very simple to learn.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #8 on: April 13, 2011, 07:46:13 am »
I hope that Lua isn't a hard programming language :P

Don't worry, it's a step down from Axe in difficulty ;)

I like Lua, it's code is sexy, but not as sexy as Python.

When I learnt it a few months ago though, I had no idea that there would ever be a TI-Lua.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #9 on: April 13, 2011, 08:17:48 am »
I'm astounded that TI actually added more programmability to the Nspire line. For me though, it's too little too late. I've given up on the Nspire in light of the Prizm.
« Last Edit: April 13, 2011, 08:19:23 am by Art_of_camelot »

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #10 on: April 13, 2011, 08:21:21 am »
w00t! finally a getkey on nspire XD
Now all it need is downgrade support
Sig wipe!

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #11 on: April 13, 2011, 08:27:18 am »
Remember that for now, TI don't let officially the public to program in this language. It is for now a private language and we need to hack the *.tns to extract Problem1.xml from it as we can make for OS 1.1.
For now, no one knows if TI will diffuse freely the SDK, will sell it, or keep it for its developpers.
« Last Edit: April 13, 2011, 08:27:43 am by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #12 on: April 13, 2011, 08:28:45 am »
If they sell it, i'm sure somebody will probably make a better one for free.
Sig wipe!

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #13 on: April 13, 2011, 09:45:11 am »
WOW!

So seeing as Goplat has to make this "available," will it be easier than hacking the Nspire from the beginning?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: First non-TI-BASIC game on TI-Nspire OS 3.0
« Reply #14 on: April 13, 2011, 10:23:21 am »
WOW!

So seeing as Goplat has to make this "available," will it be easier than hacking the Nspire from the beginning?

It seems it's just extracting some file :P So yeah, it looks easier.

I'm afraid TI won't make a SDK, since we have behaved badly, we hacked their new calculator in just a few hours and are already making games (I give critor and all the other guys the merit for this though, while saying 'we').