Author Topic: Lua/HTML5 Web Interpreter  (Read 23607 times)

0 Members and 1 Guest are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Lua/HTML5 Web Interpreter
« Reply #15 on: February 25, 2013, 09:49:40 pm »
wait, could you put reubenquest on it? (so does it have löve)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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/HTML5 Web Interpreter
« Reply #16 on: February 25, 2013, 09:50:50 pm »
Might be possible, but not planned. Another project already does this, actually.

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 Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Lua/HTML5 Web Interpreter
« Reply #17 on: February 25, 2013, 09:56:14 pm »
DERPY!!!!!!!!!!!
And with parenthesis highlighting: i wouldn't only put a box around the other parenthesis but also around the current one.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: Lua/HTML5 Web Interpreter
« Reply #18 on: February 25, 2013, 10:18:41 pm »
How long will it take you to do the keys for LuaZM? So far it looks great. :D
I like milk.

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/HTML5 Web Interpreter
« Reply #19 on: February 27, 2013, 03:40:03 pm »
The best thing will be if we can upload LuaZM files and Nspire Lua documents so we can quickly test games. :P

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/HTML5 Web Interpreter
« Reply #20 on: February 27, 2013, 03:54:26 pm »
The best thing will be if we can upload LuaZM files and Nspire Lua documents so we can quickly test games. :P
I'm planning a save/load feature :P

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 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/HTML5 Web Interpreter
« Reply #21 on: February 27, 2013, 03:59:37 pm »
Cool to hear :). I thought it would be nice that we don't have to copy the code by hand, which is hard with Lua tns files that lacks the source if you don't know what tool to use to extract it.

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/HTML5 Web Interpreter
« Reply #22 on: February 27, 2013, 07:12:25 pm »
UPDATE :o

- loadfile(url) - Loads a remote file in the editor
- New open file dialog! (Doesn't work yet! Might support tns files! If possible!) EDIT: It works!
« Last Edit: February 27, 2013, 08:53:15 pm by Juju »

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 Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Lua/HTML5 Web Interpreter
« Reply #23 on: February 28, 2013, 04:53:42 am »
It looks even more awesome now :D

(How do you load a .tns file btw? When I try, it just show the content (compressed, encoded) of the .tns file itself and not the script within the document, if that's what to be expected)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Lua/HTML5 Web Interpreter
« Reply #24 on: February 28, 2013, 11:47:04 am »
could you make the error messages include a line number? :)



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

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/HTML5 Web Interpreter
« Reply #25 on: February 28, 2013, 12:20:40 pm »
(How do you load a .tns file btw? When I try, it just show the content (compressed, encoded) of the .tns file itself and not the script within the document, if that's what to be expected)
It doesn't work yet. Ideally it should detect if it's a tns or not, if it is, extract the xml file inside and parse it.

could you make the error messages include a line number? :)
This is definitely something I should look at. (The change would be made upstream in the lua.js code though.)
« Last Edit: February 28, 2013, 12:22:03 pm by Juju »

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 Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Lua/HTML5 Web Interpreter
« Reply #26 on: February 28, 2013, 01:22:01 pm »
Ideally it should detect if it's a tns or not, if it is, extract the xml file inside and parse it.

Good luck :D
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: Lua/HTML5 Web Interpreter
« Reply #27 on: March 02, 2013, 02:00:04 am »
I tried opening Aspirin for the PRIZM and nothing would happen, then I tried Run in case it actually loaded without notifying me, but it made my browser go incredibly slow until I close the tab 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/HTML5 Web Interpreter
« Reply #28 on: March 02, 2013, 10:13:30 am »
That probably worked. File>Open loads a file inside the editor (Window>Editor) (maybe I should open the windows by default? What do you think?) and while loops still crashes the browser.

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 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/HTML5 Web Interpreter
« Reply #29 on: March 04, 2013, 04:09:11 am »
Yeah I think it should open the window by default, like most Windows programs. And I see, thanks for the info. :P