• Jens' Script Editor - An on-calc lua editor 5 2
Currently:  

Author Topic: Jens' Script Editor - An on-calc lua editor  (Read 130181 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 #120 on: September 06, 2013, 08:18:53 am »
Indeed, I dont know where to get a list of all keywords to mark... If you find more I forgot please report it! Here are the lists of the keywords I got now:
Spoiler For Purple:
"'",'"',"[[","]]","nil","true","false"
Spoiler For Blue:
"function","return","end","for","in","do","if","then","else","elseif","while","and","or","not","local","repeat","break"
Spoiler For Pink:
"assert","collectgarbage","error","_G","getfenv","getmetatable","ipairs","load","loadstring","next","pairs","pcall","print","rawequal","rawget","rawset","select","setfenv","setmetatable","tonumber","tostring","type","unpack","_VERSION","xpcall","require","class"
« Last Edit: September 06, 2013, 08:19:52 am by Jens_K »
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 #121 on: September 26, 2013, 01:24:03 pm »
Would be super interesting to custom the color synthaxing, or simply improve it (like, puting number input in green)



My Lua projects :

Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #122 on: September 26, 2013, 04:03:51 pm »
Ah, good idea, I'll add that to the list. The most work will be developing a gui for that :P
Sorry for nonsense.

Projects:



Offline Roondak

  • LV3 Member (Next: 100)
  • ***
  • Posts: 54
  • Rating: +4/-3
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #123 on: September 28, 2013, 11:47:36 am »
I've been using this script editor, it's really good.

Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #124 on: September 29, 2013, 08:12:53 am »
Small Update: Version 1.0.1 is now attached to the first Post
It only contains some Bugfixes, missing syntax colorations and huge performance optimisations!
It now runs superfast on handheld device because of partially frame updates!
Sorry for nonsense.

Projects:



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 #125 on: September 29, 2013, 08:23:18 am »
Very nice :D

Not so much of a small update, then :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline AnToX98

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 107
  • Rating: +10/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #126 on: October 01, 2013, 10:29:27 am »
That's a very nice update (I tested it and it works fine) but there's some bugs :
- When you add a new line with enter, all the code dissapear
That's is an all versions bug, but it's very annoying :
- Running TI-images on code slow down very much the editor (If there's no way to correct this, maybe create a different editor page only for TI-images ?)



My Lua projects :

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Jens' Script Editor - An on-calc lua editor
« Reply #127 on: October 01, 2013, 09:23:04 pm »
I really like this program. The one issue is that long scripts cause the program to run slow, but there is not a whole lot that can be done about this. It is MUCH faster with the update though, Nice job!
« Last Edit: October 01, 2013, 09:24:05 pm by LDStudios »



Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #128 on: October 02, 2013, 07:27:32 am »
Thank you all for your nice feedback! :D

@AnToX98: Indeed, these are serious bugs which I have to fix soon, thanks for the report!
Sorry for nonsense.

Projects:



Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #129 on: October 09, 2013, 01:42:23 pm »
Another tiny Update: Version 1.0.2 is now attached to the first Post

Fixes:
- program won't crash now if you try to copy an empty line
- all lines will now be visible if you press enter on an indented line
- syntax colouring is now limited to 250 chars/line
- correct description of image:rotate in the Reference Guide

Very long lines of code will still vastly slow the editor down but not as much as before :P But I know what the problem is now and I'll try to solve it for v2.0!
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 #130 on: October 30, 2013, 06:04:54 am »
Working on insert function ? Because we really need that, coding oncalc is not very confonrtable with the non-azerty keyboard :3



My Lua projects :

Offline The_King

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 247
  • Rating: +6/-2
  • Ⓣⓗⓔ Ⓖⓐⓜⓔ ⓍⒹ
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #131 on: November 03, 2013, 02:02:53 pm »
jens
this is great
i am a beginner @ lua
yet this helping a lot
but i have a request
can u make separate document for lua directory with greater explanation


 

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Jens' Script Editor - An on-calc lua editor
« Reply #132 on: November 03, 2013, 02:06:29 pm »
:D Always nice to see another lua programmer



Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #133 on: November 03, 2013, 04:54:30 pm »
@hking1: Hi and welcome to omnimaga! Im glad to see that my program helps newcomer to get into nspire lua programming :) The included reference guide is the official scripting api guide. I think once you understood the basics it's enough information to use those functions properly. To get into nspire lua programming, here is a very useful wiki. To understand the structure of a nspire program just download a random program at ticalc.org and look through the code (That's how I learned lua programming ;)) I hope this helps a bit; I'm not that good at writing guides (in english)...

@AnToX98: Well, I'm very busy with Minecraft 2D and school right now, I don't know when I'll be able to come back to work on the script editor. But I promise to work on the insert function first ;)
Sorry for nonsense.

Projects:



Offline The_King

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 247
  • Rating: +6/-2
  • Ⓣⓗⓔ Ⓖⓐⓜⓔ ⓍⒹ
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #134 on: November 06, 2013, 10:00:20 pm »
i have a problem ??? ???
when you want to publish a program i can save the document as something else. but pressing the [EE] button just opens the code again.
hope someone will help
thanks in advance.