Author Topic: Jens' Script Editor - An on-calc lua editor  (Read 143956 times)

0 Members and 1 Guest are viewing this topic.

Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #90 on: July 30, 2013, 03:35:54 pm »
And finally (after 2 days) it's up on ticalc.org here:
http://www.ticalc.org/archives/files/fileinfo/454/45484.html
Sorry for nonsense.

Projects:



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: Jens' Script Editor - An on-calc lua editor
« Reply #91 on: July 31, 2013, 06:16:01 am »
Wow in the last few days, progress went from fast to supersonic!
Only one little thing, when you indent your code, and then backspace it, it comes out as backspacing spaces instead of an indent.
Also, how do you scroll down the info in the API guide?
« Last Edit: July 31, 2013, 06:25:37 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 Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #92 on: July 31, 2013, 06:41:35 am »
@Jonius7: Nice to see you back here :)
-About the indent: an indent is 4 spaces. Backspace removes only 1 character (=1 space) to remove the indent/the 4 spaces press shift+tab
-About the scrolling: for some reason you first have to click on the text and then you have a cursor to move around. But thats TI's Textbox, I think I can't do anything about it...

And as I said earlier to AnToX98:
6 weeks holiday + Jens + Music = great programming progress :D
« Last Edit: July 31, 2013, 06:49:39 am by Jens_K »
Sorry for nonsense.

Projects:



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: Jens' Script Editor - An on-calc lua editor
« Reply #93 on: August 04, 2013, 10:17:10 am »
And as I said earlier to AnToX98:
6 weeks holiday + Jens + Music = great programming progress :D
Yeah I wish I could do that, I probably could, but I get lazy and instead play too much games during my breaks.
Also, great effort making it iPad compatible. That must not have been easy.
« Last Edit: August 04, 2013, 10:20:05 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 Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #94 on: August 07, 2013, 11:42:13 am »
Looks great! :)
Is there a way to extract saved lua code into a plain text file on a computer, to run with luna later?

Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #95 on: August 07, 2013, 12:14:37 pm »
@Legimet: Yes, do this:
1) Copy the script editor tns to a pc and run it with the student software/emulator
2) Load your file
3) menu==>code==>select all
4) press ctrl+c
then you can paste it anywhere as plain text and it is compatible to every text/script editor
Sorry for nonsense.

Projects:



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: Jens' Script Editor - An on-calc lua editor
« Reply #96 on: August 12, 2013, 10:14:55 am »
Hmm I wish I had a valid license for TI Student Software.
Since I don't have it, I have heard of another way that may be possible with TNS2XML or something similar, but I haven't tried such stuff yet.
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 Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Jens' Script Editor - An on-calc lua editor
« Reply #97 on: August 12, 2013, 12:52:21 pm »
You have tried the 2 demos ? (1 month + 3 months of trial in total)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #98 on: August 18, 2013, 06:45:01 am »
I use Linux, so that's not a solution for me.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Jens' Script Editor - An on-calc lua editor
« Reply #99 on: August 18, 2013, 07:01:38 am »
I use Linux, so that's not a solution for me.
I use linux too and wine is my friend. I can even reinstall multiple trials by completly unintalling wine.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #100 on: August 18, 2013, 07:03:55 am »
If it works in Linux, that's fine, but I'll probably just use TNS2XML.

Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #101 on: August 18, 2013, 01:13:50 pm »
Maybe it's possible to extract stored variables out of .tns files? The code is saved as plain text in "jsefYOUR_NAME" (If you named your file "omnimaga" then it's stored in "jsefomnimaga")
I should include those tips in future versions in the redme.txt

PS: I have a completely unrelated idea: How about an "empy tns file" where you can paste your code and then it will forever execute the pasted code?
Sorry for nonsense.

Projects:



Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #102 on: August 18, 2013, 01:16:23 pm »
PS: I have a completely unrelated idea: How about an "empy tns file" where you can paste your code and then it will forever execute the pasted code?
That's what oclua does (or at least the version I still have around) you write your script in a notepad or another thing, then copy/paste it in the lua script and it will execute your code.

Some people need a high five in the face... with a chair.
~EC

Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #103 on: August 18, 2013, 03:04:33 pm »
Yes, but everytime you want to execute your program, you have to select the code, copy it, switch page and paste. I'd make a tns, which ,once pasted code, forever starts up with your program, it would then be like a seperate program to use and broadcast (The sourcecode would only be <50 lines long). Btw oclua doesn't fire all those initialisation functions like on.activate
Sorry for nonsense.

Projects:



Offline AnToX98

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 107
  • Rating: +10/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #104 on: August 25, 2013, 01:14:34 pm »
I was wondering how do you compress your images in Lua ? Because 27 ko with all those textures :p



My Lua projects :