Author Topic: PCspire, run Nspire lua programs nativly on your pc  (Read 31953 times)

0 Members and 1 Guest are viewing this topic.

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: PCspire, run Nspire lua programs nativly on your pc
« Reply #60 on: April 17, 2012, 05:35:45 pm »
Well the thing is if you don't make a PC version but make an browser version like above, then that solves the lack of a PC version problem anyway, saving you time early on :P

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #61 on: April 19, 2012, 05:29:39 am »
Ah, I see :)

Here is an updated version:
http://bwns.be/jim/WEBspire/JSspire.html

Key inputs work now so you can play the game. However, there is sometimes a little graphical glitch. The cause of this is the HTML5 canvas tag that sometimes glitches when drawing off the screen. Looking into that to fix it.
(Thank you shmibs for finding it)

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: PCspire, run Nspire lua programs nativly on your pc
« Reply #62 on: April 19, 2012, 05:32:01 am »
Noice, though I think that is an old version of Chockosta's Cubefield Lua game :D
And interesting developments for a browser version, as I was limited by your Linux scripts (I don't have Ubuntu installed atm as I did in the past)
« Last Edit: April 19, 2012, 05:38:48 am 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)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #63 on: April 19, 2012, 05:33:49 am »
old version?
It's the latest one IIRC.
The text isn't yet drown properly because I did not implement everything yet.

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: PCspire, run Nspire lua programs nativly on your pc
« Reply #64 on: April 19, 2012, 05:37:56 am »
old version?
It's the latest one IIRC.
The text isn't yet drown properly because I did not implement everything yet.

Sorry I got it partially wrong. It just looked old because an old version I had had the player control as a square sprite whereas on the latest version it is an arrow sprite. I also forgot to account for later features such as Speed up every 1000 points and change it colour.
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)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #65 on: April 19, 2012, 05:40:01 am »
Ah yes.
I currently draw a box instead of an image because I did not implement image stuff yet :P
But that shouldn't be too hard since I already made the image lib.

Edit
Should-->Shouldn't
« Last Edit: April 19, 2012, 08:48:13 am by jimbauwens »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #66 on: April 19, 2012, 08:00:25 am »
shouldn't *

Also, gg for arrows support :D
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #67 on: April 19, 2012, 08:08:06 am »
This is awesome !
Cubefield is much more fluid with JSspire than with TINCS...
Really, this is amazing.

This will be great when it will be possible to play Lua games trough our browser... No more need to have a TI-Nspire!

And I have an idea to add math.eval()... The open-source CAS giac (AKA Xcas) can be used with the TI-Nspire/TI-68k syntax. Moreover, it is possible to use it through a web browser. (Demo (in french))
But this would require a lot of work...

Anyway, keep up the great work!

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #68 on: April 19, 2012, 08:10:53 am »
Thanks for that online CAS, it maybe be used indeed, it's a good idea :)
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: PCspire, run Nspire lua programs nativly on your pc
« Reply #69 on: April 19, 2012, 08:54:57 am »
Thanks :)

Chockosta, thanks a lot for that CAS! Was looking for something like that :)

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: PCspire, run Nspire lua programs nativly on your pc
« Reply #70 on: September 23, 2012, 01:03:57 am »
This just doesn't seem to be working in LOVE 0.8. I've tried a lot of stuff, using both the zipped and installer versions of LOVE, and I've dragged the folder of PCSpire (from the zip file) onto Lua to run it.

It shows up with a flashing alternating white and black screen, stops responding and crashes.
« Last Edit: September 23, 2012, 01:05:34 am 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)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #71 on: September 23, 2012, 12:08:45 pm »
0.8 wasn't out yet when I made PCspire, I made it for 0.7.2.
Love devs probably broke some compatibility.

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: PCspire, run Nspire lua programs nativly on your pc
« Reply #72 on: September 24, 2012, 02:21:49 am »
Hmm Ok. I'll see if I can make it work in 0.7.2. And see what you can do with the changes in v0.8
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)

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: PCspire, run Nspire lua programs nativly on your pc
« Reply #73 on: October 13, 2012, 08:30:23 pm »
W8 this is still Linux only if I remember correctly? Then I've wasted my time using LOVE 0.7.2 and 0.8 trying to run it as it's still not working for me :(

The best result I can get is a flashing white and black window that's giving me epilepsy (jokes, no offence to anyone). The window is titled PCspire though.
« Last Edit: October 13, 2012, 08:35:03 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)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #74 on: October 14, 2012, 02:34:26 am »
PCspire was never Linux-only ;)
Very strange issue, I've tested it in all three major platforms.
Do you get any information if you run it from cmd ?