Author Topic: Transferring Lua Projects from Calc to Computer [Solved]  (Read 17974 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Transferring Lua Projects from Calc to Computer
« Reply #15 on: May 19, 2012, 01:32:59 pm »
The code is for *nix systems, and I don't think you run that.
I quickly coded a web based version of it:
http://bwns.be/jim/xml2lua.html

Paste the xml code in it, and press the convert button.
It *should* work, but I haven't tested it properly so there might be a little bug somewhere.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Transferring Lua Projects from Calc to Computer
« Reply #16 on: May 19, 2012, 02:49:15 pm »
Thanks, jim.  :D The only thing is that I have to add all the new lines, but that is much easier than eliminating everything else.
Btw, I dual-boot Ubuntu and Windows XP.

Current method to put Lua file from Calc to Comp.
1. Install ndless.
2. Use TNS2XML by excale to turn TI-Notepad document into two .xml files. http://tiplanet.org/forum/viewtopic.php?t=9295&p=124483
3. Send the problem.xml to your computer.
4. Use http://bwns.be/jim/xml2lua.html to delete extra stuff.
5. Add newlines and check for correct code
6. Done!  :D

Edit: A few < and > were dropped off. And the sprite had \\ instead of \ in many places.
« Last Edit: May 19, 2012, 03:03:24 pm by cyanophycean314 »

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Transferring Lua Projects from Calc to Computer
« Reply #17 on: May 19, 2012, 04:09:09 pm »
I'll see to improve it another time, need to study now :D

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Transferring Lua Projects from Calc to Computer
« Reply #18 on: May 19, 2012, 04:23:59 pm »
Thanks, jim.  :D The only thing is that I have to add all the new lines,

I think that something else that notepad.exe will display those lines since notepad.exe wants \r\n for line breaks instead of \n only.
« Last Edit: May 19, 2012, 04:24:29 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Transferring Lua Projects from Calc to Computer [Solved]
« Reply #19 on: July 04, 2012, 10:07:15 am »
I'm having some problems with the XML file. It won't even display as before in Internet Explorer. Now the XML2Lua thing doesn't give me any output either.

The XML is attached for possible debugging.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Transferring Lua Projects from Calc to Computer [Solved]
« Reply #20 on: July 04, 2012, 11:19:27 am »
Browsers display only valid XML files. Open it with any text editor.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Transferring Lua Projects from Calc to Computer [Solved]
« Reply #21 on: July 04, 2012, 05:16:39 pm »
Yes I have done that, but because Jim Bauwen's XML2Lua no longer will convert, I cannot get the source. I think the XML file is a bit weird because last time I could open the XML file with Internet Explorer and because it starts out with something weird.  ???

I have taken the time to hand type one of the sources into the computer, but for future contests and possibly bigger files, I'd still like a way to do it without TINCS.

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: Transferring Lua Projects from Calc to Computer [Solved]
« Reply #22 on: January 28, 2013, 10:07:32 pm »
Necropost :O
What is TINCS?
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 Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: Transferring Lua Projects from Calc to Computer [Solved]
« Reply #23 on: January 28, 2013, 10:09:14 pm »
Imma gonna guess ti nspire computer software

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: Transferring Lua Projects from Calc to Computer [Solved]
« Reply #24 on: January 28, 2013, 10:24:17 pm »
Oh of course, then I'm going to have to look at this TNS2XML thing.

EDIT: tried the http://bwns.be/jim/xml2lua.html . Looks broken. I'm not getting any output text.
« Last Edit: January 29, 2013, 02:24:47 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 SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: Transferring Lua Projects from Calc to Computer [Solved]
« Reply #25 on: January 28, 2013, 11:06:22 pm »
Oh of course, then I'm going to have to look at this TNS2XML thing.
You may as well have a look here: XML2TXT, XML2LUA, TXT2XML, LUA2XML and 2TNS
Something I did some months ago (12Sep12). ;)