Author Topic: Lua2TI  (Read 16002 times)

0 Members and 1 Guest are viewing this topic.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Lua2TI
« on: April 14, 2011, 09:36:49 pm »
Lua2TI



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=651

Lua2TI is a program to convert your Lua source files into TNS documents for use on the Nspire (v3.0).

You need to have .Net Framework 4.0 to use this program!

Directions:
1. Open program and browse for your *.lua source code.
2. Press "Convert to TNS!"
3. The output *.tns file should be called Document.tns, now load up the tns onto your calculator or Nspire Student Software and enjoy!

Please do not redistribute this, the only two places (for now) I want this is here at Omnimaga or on my website at http://www.kilmarentertainment.webege.com

For sources: http://www.kilmarentertainment.webege.com/apps/downloads/Lua2TI.tar.gz
« Last Edit: April 15, 2011, 03:55:13 pm by jkag »

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Lua2TI
« Reply #1 on: April 14, 2011, 09:43:26 pm »
Yes finally a Windows one!

Does this work with special chars?
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 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 #2 on: April 14, 2011, 09:44:32 pm »
Nice. I think I'll move this auto-post in the Lua section. Also I'm happy this one has a GUI. I kinda prefer that to having to go through command prompt. XD

This is definitively a must upload on Ticalc.org and TI-BANK too.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #3 on: April 14, 2011, 09:46:56 pm »
by special you mean: " < > '? Or others? If others specify and ill updated it,

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: Lua2TI
« Reply #4 on: April 14, 2011, 09:48:20 pm »
Don't forget &
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #5 on: April 14, 2011, 09:49:14 pm »
okay... Updating now...

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Lua2TI
« Reply #6 on: April 14, 2011, 10:05:23 pm »
Lua2TI



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=651

Lua2TI is a program to convert your Lua source files into TNS documents for use on the Nspire (v3.0).

Directions:
1. Open program and browse for your *.lua source code.
2. Press "Convert to TNS!"
3. The output *.tns file should be called Document.tns, now load up the tns onto your calculator or Nspire Student Software and enjoy!

Please do not redistribute this, the only two places (for now) I want this is here at Omnimaga or on my website at http://www.kilmarentertainment.webege.com

Updated with "&" as first character to replace due to special formatting for the XML

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Lua2TI
« Reply #7 on: April 15, 2011, 12:34:06 am »
Wow....This fast?! O.O
Sig wipe!

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Lua2TI Linux
« Reply #8 on: April 15, 2011, 01:10:40 am »
Lua2TI Linux



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=652

Convert your Lua sources to TNS files on Linux!

Requires the Mono Framework (v3.5)

1. Open file in Lua2TI
2. Press "Convert to TNS!"
3. Use the file (should be in the directory that the program is in!)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua2TI
« Reply #9 on: April 15, 2011, 02:55:06 am »
On *nix, you may want to delegate the processing to the bash or Python script, and make only the GUI front-end (for selecting input and output file names) in Mono :)
Likewise on Windows if someone made a PowerShell script.

That's how TILP, GFM and KTIGCC ought to work, in fact.
« Last Edit: April 15, 2011, 03:07:09 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 Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Lua2TI
« Reply #10 on: April 15, 2011, 07:43:16 am »
Can anyone share the algorithm for this? I'd like it :D

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Lua2TI
« Reply #11 on: April 15, 2011, 08:46:55 am »
They have a python version of it. That one if you look at the code shows pretty much everything about it
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 Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Lua2TI
« Reply #12 on: April 15, 2011, 08:53:42 am »
The shell script version shows it as well:
* add an XML header and an XML footer to the Lua code;
* ZIP the result;
* put the ZIP at the end of an empty TNS document (which is made of 368 bytes worth of data compressed with an unknown format)
« Last Edit: April 15, 2011, 09:19:14 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 #13 on: April 15, 2011, 02:20:34 pm »
@Debroux: I just compiled my C# source for Linux, it was much easier than reinventing the wheel :P

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Lua2TI
« Reply #14 on: April 15, 2011, 04:01:26 pm »
Link to sources added in first post, that is for both Windows and Linux... And Mac too I suppose.  Remember, you will need "7za" for the compression!
For Windows: http://downloads.sourceforge.net/sevenzip/7za920.zip
For Linux: http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/p7zip_9.20.1_x86_linux_bin.tar.bz2/download
For Mac: http://mac.softpedia.com/get/Compression-Tools/p7zip.shtml