Author Topic: Lua2TI  (Read 16145 times)

0 Members and 6 Guests are viewing this topic.

Ashbad

  • Guest
Re: Lua2TI
« Reply #15 on: April 15, 2011, 05:03:59 pm »
Sorry if this is the wrong place but...

where can you get all of the libraries for Lua development?

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #16 on: April 15, 2011, 06:10:45 pm »
I don't know really... They are built into the parser, its an interpreted language much like BASIC, the funtions that we know work are located here : https://docs.google.com/document/d/1qsExH5xZKx73mShdI8B8eA1ZCcmmZZnJ9TzrLwvKKFM/edit?hl=fr&authkey=CIGfyZQN#

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: Lua2TI
« Reply #17 on: April 16, 2011, 12:44:27 am »
Cool! Hopefully if someone wants to add more features later he can continue it. :D

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #18 on: April 16, 2011, 09:49:24 pm »
:D Right now I'm working on making a TNS (that was created with Lua2TI or the likes) to a Lua source file.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Lua2TI
« Reply #19 on: April 16, 2011, 10:16:14 pm »
:D Right now I'm working on making a TNS (that was created with Lua2TI or the likes) to a Lua source file.

Sounds good!  This might really come in handy, as I can't seem to be able to extract the code from the Periodic Table (although others, like 15 Puzzle, will work). :(


Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #20 on: April 16, 2011, 10:18:09 pm »
I believe Goplat said something about the compression being different than normal about it being a few bytes off.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua2TI
« Reply #21 on: April 17, 2011, 01:37:33 am »
As posted elsewhere, TI's file for periodic table is entirely compressed with the unspecified 0D compression method, instead of the standard 08 DEFLATE method.
However, files created by the various Lua to TNS incarnations have a part compressed with the 0D compression method, which we're putting at the beginning of the file, and a part (made of three sub-parts) compressed with the standard 08 method. Any well-behaved program or library with ZIP opening capability can perform the TNS to Lua conversion :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #22 on: April 17, 2011, 11:02:59 am »
Lua2TI has been uploaded to TI-Bank. I'm working on getting a Mac version up

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua2TI
« Reply #23 on: April 17, 2011, 11:12:56 am »
Go ahead, but FYI, AdRiWeB has already made a native Mac executable, which has the significant advantage (from a user's POV) of not requiring the dependency on the non-native Mono stuff ;)
« Last Edit: April 17, 2011, 11:14: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 XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #24 on: April 17, 2011, 04:58:58 pm »
I actually think that my new linux executable might not need mono, it has it everything it needs packaged up

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: Lua2TI
« Reply #25 on: April 17, 2011, 09:42:16 pm »
Sounds nice Jkag. By the way if http://ourl.ca/10458.new#new ever got finished, do you think in the future conversion between OS 1.x/2.0 Ndless Lua files and 3.0 Lua TNS files would be possible? It would be nice to run Lua games on older OSes, but of course Lua for Ndless would have to be finished by someone else, first.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #26 on: April 18, 2011, 12:23:09 am »
It may be very possible, I'd have to see format difference, all that the Lua to TNS converters to is make the source into XML, so if that is about what has to be done, it would be very possible.  I'd really have to see the format though

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Lua2TI
« Reply #27 on: April 18, 2011, 07:05:56 pm »
I used the windows version of this to convert this code to .tns and I am getting an error when opening it on my Nspire

Code:
Code: [Select]
c = “”
function on.charIn(ch)
    c = ch
    platform.window:invalidate()
end

function on.paint(gc)
    gc:setFont(“sansserif”, “r”, 10)
    gc:drawString(c, 0, 0, “top”)
end

Error:
Code: [Select]
unexpected symbol near 'char(239)'
Is it just bad code or what
« Last Edit: April 18, 2011, 07:20:29 pm by ruler501 »
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #28 on: April 19, 2011, 10:03:43 am »
I really don't know lol. I don't know Lua very well, but did you check the syntax (I think there is a syntax checker built into Lua) before you converted it?

And TNS -> Lua is amost done.  Some reason I'm having trouble with changing the "&" (etc) back to their normal counterparts.

Offline pianoman

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 426
  • Rating: +24/-0
  • ♪♫ ♪♫ ♪♫ ♪♫ ♪♫ ♪♫ ♪♫
    • View Profile
Re: Lua2TI
« Reply #29 on: June 05, 2011, 01:09:10 pm »
I'm having some trouble with this for Windows... everytime i load the document.tns onto the calc, it just gives me a message about the file format not being supported.
Any thoughts?