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

0 Members and 2 Guests are viewing this topic.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #45 on: March 21, 2012, 04:44:01 pm »
Wow!  This is great, I don't know how I missed it before now! :)


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 #46 on: March 22, 2012, 07:05:20 am »
Nick, I know I can do it that way, but I was looking for a more native approach. But thanks anyway :)

@apcalc, also thanks :)

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 #47 on: April 17, 2012, 02:08:29 pm »
Topic split.

Well honestly we should all donate just a bit to pay jim a Prizm.
Seriously, he could make something up :)
:D

(On a little side note: http://bwns.be/jim/WEBspire/JSspire.html . Still many bugs and no user input, but you should get the idea)
(Also, sorry for going off topic :P )

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 #48 on: April 17, 2012, 02:10:24 pm »
Also congratz for that JSspire, it's ridiculously awesome o_O
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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 #49 on: April 17, 2012, 02:46:23 pm »
Awesome Jim. And I assume JSpire is for those who wants to try games directly into their browser? I wonder if in the future, an user could just upload a TI-Nspire file in the emulator and emulate it that way? Even better: a script to allow the emu to read Omni archives zip files and play tns files from there. (providing they're in Lua)

How is screen resolution handled by the way? Some Lua games might not look very great at resolutions other than 320x240.
« Last Edit: April 17, 2012, 02:47:32 pm by DJ_O »

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 #50 on: April 17, 2012, 02:49:43 pm »
Yeah we plan to  fully integrate it within TI-Planet when it's done, I guess Omni can do that too !
Also PCSpire handles weel all kind of resolutions so that won't be a problem
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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 #51 on: April 17, 2012, 02:55:24 pm »
Yeah. I assume it would require heavy PHP work from Omni staff part and modifying the download pages, which, sadly, would require a lot of time, which they lack.

Btw I notice the kubefield file is a js file. Does it means the games are ran through a Lua->Javascript converter prior launch?
« Last Edit: April 17, 2012, 03:00:35 pm by DJ_O »

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 #52 on: April 17, 2012, 03:03:43 pm »
Wow, this is just awesome.
It would be also a good idea to add a "menu" key, since a lot of lua programs need it...

Really, congrats!

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 #53 on: April 17, 2012, 03:05:54 pm »
There's a keypad? ???

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 #54 on: April 17, 2012, 03:08:21 pm »
There's no keypad in PCspire/JSspire, it only reacts to mouse/keybord input. (I think)
But there's no "menu" key on a keyboard, so no way to get the menu.

I thought it would be nice to add a "menu" button in the top right corner.
« Last Edit: April 17, 2012, 03:08:34 pm by Chockosta »

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 #55 on: April 17, 2012, 03:09:23 pm »
Oh ok, I thought you had a keypad showing up and on my side none did.

But no other key actually works for now anyway, even arrows and enter, so maybe controls are not implemented at all yet.
« Last Edit: April 17, 2012, 03:10:00 pm by DJ_O »

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 #56 on: April 17, 2012, 04:19:09 pm »
There isn't any key input support here yet.
It's just a PoC, when it's done it will have much more stuff.

The screen resolution will be 212*318 default, with options to change it.
Kubefield is a js file, and indeed I converted it in the beginning. But the end user will not notice anything about it (They will not need to convert lua files).

Currently it's a bit hard to open TNS files (lua files are no problem). This is because of the encryption, legal issues, and other stuff. But I'll look into it.
 
Now, eventually I'm planning to merge WEBspire, PCspire, nCreator and some other stuff together to form openSpire. openSpire will be an open source TI-Nspire software clone with aim on as much compatibility. There will be a PC version and a web version (and possibly mobile).
I have the knowledge to make it, just need the time. But it's a serious plan. 

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 #57 on: April 17, 2012, 04:30:11 pm »
Nice. I hope there's a Windows version eventually too, or at least a downloadable version of the HTML/JS one, for those with limited internet access or behind filters.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: PCspire, run Nspire lua programs nativly on your pc
« Reply #58 on: April 17, 2012, 05:07:32 pm »
Brilliant, once again :)
Ndless.me with the finest TI-Nspire programs

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 #59 on: April 17, 2012, 05:30:02 pm »
DJ, I will try to make versions for all OS :)
The biggest issue is time :/

Thanks ExtendeD!