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

0 Members and 1 Guest are viewing this topic.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Transferring Lua Projects from Calc to Computer [Solved]
« on: May 14, 2012, 09:31:03 pm »
I've kinda asked about this before, but I never really found an easy way that works right now (notepad is in the future  :().

So what would be the easiest way to transfer a Lua project started on the Nspire to the computer?

P.S. I have TiLP and nspire_emu, no Student Software.

Edit: Solved! :D
Spoiler For "My (long) method":
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! 
« Last Edit: May 21, 2012, 06:50:00 pm by cyanophycean314 »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Transferring Lua Projects from Calc to Computer
« Reply #1 on: May 15, 2012, 01:09:21 am »
What you'd like to do is to retrieve the Lua source for a TNS, right ?
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

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 #2 on: May 15, 2012, 03:18:44 am »
It's not the most easy thing to do if you don't have the student software. You need TI's code (for now) to unencrypt the document.
This can be in nspire_emu, the student software, or the online document player. If you are on windows/mac, try to see if you can copy your source with the online document player.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Transferring Lua Projects from Calc to Computer
« Reply #3 on: May 15, 2012, 07:08:54 am »
I think he meant from ocLua to a proper .lua file on the computer ?

Then just save the source inside a Notes app for example and grab the .tns from your computer.

Then you have several choices :
- simply use TINCS (which you don't have so I'm not gonna explain)
- load it onto nspire_emu and dump the memory
- post the .tns here so we can extract it for you :P
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Sebasu

  • LV2 Member (Next: 40)
  • **
  • Posts: 31
  • Rating: +0/-0
    • View Profile
Re: Transferring Lua Projects from Calc to Computer
« Reply #4 on: May 15, 2012, 02:14:30 pm »
if you don't have the ti-software, you can download the trial here:
http://education.ti.com/html/nspire/te.html
as you can see it is the teacher edition, it has 90 days trial, while the student soft has 30 days trial
a plus time to experiment
I hope this can help you

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 #5 on: May 15, 2012, 05:14:38 pm »
What you'd like to do is to retrieve the Lua source for a TNS, right ?

I have it typed up in a notes file on the calculator, which I can send around as a tns. I just want to get the source out of there.

It's not the most easy thing to do if you don't have the student software. You need TI's code (for now) to unencrypt the document.
This can be in nspire_emu, the student software, or the online document player. If you are on windows/mac, try to see if you can copy your source with the online document player.
The online document player is pretty cool! Except I still can't copy code out of there...

I think he meant from ocLua to a proper .lua file on the computer ?

Then just save the source inside a Notes app for example and grab the .tns from your computer.

Then you have several choices :
- simply use TINCS (which you don't have so I'm not gonna explain)
- load it onto nspire_emu and dump the memory
- post the .tns here so we can extract it for you :P
- :P
- How would you do that?
- That's a little inconvenient...

if you don't have the ti-software, you can download the trial here:
http://education.ti.com/html/nspire/te.html
as you can see it is the teacher edition, it has 90 days trial, while the student soft has 30 days trial
a plus time to experiment
I hope this can help you
I've already used that for a while, so I can't get trial software back again. I actually have the disk that came with the Nspire, but it's refusing to work.

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 #6 on: May 17, 2012, 09:19:02 pm »
*Bump*
Could somebody explain how to dump the nspire_emu memory?

Thanks

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Transferring Lua Projects from Calc to Computer
« Reply #7 on: May 18, 2012, 07:31:28 am »
It's possible within the debug commands I think, but people like Lionel/goplat/Excale/Levak etc. could tell you more.
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Transferring Lua Projects from Calc to Computer
« Reply #8 on: May 18, 2012, 09:44:16 am »
Here is the working scripted dumper for TI-Nspire basic 3.0.1
You'll need to wait a bit so  that I'll search for the other addresses (OS dependant)
http://ourl.ca/12404/246559
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Transferring Lua Projects from Calc to Computer
« Reply #9 on: May 18, 2012, 09:45:23 am »
Well, what about TNS2XML

(oops I just leaked some info :P)

It should be posted soon tho



Edit : I don't know when, it's not fully ready.
(but I dont know since I'm not the author :P)
« Last Edit: May 18, 2012, 03:01:28 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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 #10 on: May 19, 2012, 09:45:53 am »
Here is the working scripted dumper for TI-Nspire basic 3.0.1
You'll need to wait a bit so  that I'll search for the other addresses (OS dependant)
http://ourl.ca/12404/246559

Ok Thanks. So basically, all I do is put it in a bash file and then run it after I launch my document in nspire_emu?

Well, what about TNS2XML

(oops I just leaked some info :P)

It should be posted soon tho

Edit : I don't know when, it's not fully ready.
(but I dont know since I'm not the author :P)

Um ok. TNS2XML sounds interesting.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Transferring Lua Projects from Calc to Computer
« Reply #11 on: May 19, 2012, 10:23:49 am »
Here :)

http://tiplanet.org/forum/viewtopic.php?t=9295&p=124483


(You can follow the link at the bottom of the post)
« Last Edit: May 19, 2012, 10:24:03 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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 #12 on: May 19, 2012, 10:59:18 am »
Thanks! That's pretty cool. So now I have the XML file on my computer, but the source is caught up in all sorts of nodes, leafs, words, and whatnot. Is there any easy way to clean up the XML just to get the source?

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Transferring Lua Projects from Calc to Computer
« Reply #13 on: May 19, 2012, 11:24:34 am »
Thanks! That's pretty cool. So now I have the XML file on my computer, but the source is caught up in all sorts of nodes, leafs, words, and whatnot. Is there any easy way to clean up the XML just to get the source?
The link I gave talked about that two posts after :
http://ourl.ca/12404/246580

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
« Reply #14 on: May 19, 2012, 12:04:47 pm »
Thanks! That's pretty cool. So now I have the XML file on my computer, but the source is caught up in all sorts of nodes, leafs, words, and whatnot. Is there any easy way to clean up the XML just to get the source?
The link I gave talked about that two posts after :
http://ourl.ca/12404/246580

How exactly do you use that script then? Drag and drop? Terminal?