Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jens_K

Pages: 1 ... 9 10 [11] 12 13
151
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 24, 2013, 11:04:18 am »
Ok, I see that; I'll go to work now to make it ultra compatible ;)
Btw. I just finished working (more copy/pasting) on the portable nspire scripting API reference guide and it's viewer (small and easy via RichTextBox) and I think it doesn't look that bad yet, but it is 11KB big because of all the text, should I integrate it anyways? (Of cause on page 1.2)

Edit: I always searched a way to finally delete variables and now I guessed: "If 'Delvar xxxx' works in the calculator, maybe math.eval('Delvar xxxx') works in the skript..." and I guessed right! Thank you very much for that hint, now the editor wont create random variables! (I tested if the entered name is a math variable via 'if not var.strore("test"..name,"") then...' and that produced many stored empty variables, now they'll get deleted right after saving!) And also deleted files will be really deleted (not just overwritten by var.store(name,""))

152
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 23, 2013, 06:18:48 pm »
@adriweb:
- Yes, cleaning up the code is one of the things I planned to do until the final release
- How to check and delete those variables?
- Yeah, I thought about mouse-based selection but then I thought: "Why would anyone use the ported Script Editor when he could just use the original one on the PC?!"
- Same as above
- The problem here is that when I reduce the space between the letters even one pixel, Upper-case characters like "W" or "G" or "M" would overlap each other and the code wouldn't be readable anymore...
   About the "S": I just forgot to call __mG.initialChrOff() after changing the font, I'll fix that ;)
- I've set apilevel='1.0' for compatibility reasons, the new withGC doesn't work here (?)... But maybe I'll make a 3.2 Version of the Editor some day...
- I like the Idea an autocompletion, but that is huge function and I think I actually used EVERY user-caused event :P

PS: I know the code is far from perfect, I am still new to lua (and even to programming in general) and I'm still far from knowing all opportunities of lua. You may like posting some improvement proposal on the code. Thanks for the feedback! :)

153
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 23, 2013, 12:51:12 pm »
UPDATE!!
Version 0.4 is now attached to the first post!

New features:
- Undo/Redo up to 10 actions
- Import code from a library
- Go to line...
And as always:
- Various bugfixes and improvements

As you can see, there's nothing left on my ToDo-list. That means the program is nearly finished :D
Feel free to post all bugs you can find and all suggestions you have! Thank you all for your support! ;)

154
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 22, 2013, 06:45:57 pm »
Ah, ok, thank you very much! That feature is very easy to implement then! I'll just make a dialogue to set file and variable to load and then I'll use the paste mechanics to insert it :D

155
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 22, 2013, 05:43:55 pm »
@jwalker: I like your idea of importing code from a library and I'll start working on it tomorrow.
@Levak & adriweb: Thank you both for the links, now I understood the concept.
Question:
- To make a library with sourcecode entirely loadable the whole code has to be saved as a string and saved in a variable? And then use var.recall("file\\var") to get the code as string?
- What happenes if the string is too large to load?

156
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 21, 2013, 04:06:22 pm »
@jwalker: Wow, didn't know that! I'll do some research about that. Is that function available in apilevel 1 and 2? That would be a nice option to kinda use the file system! :D

157
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 20, 2013, 04:18:13 pm »
UPDATE!!
Version 0.3 is now attached to the first post!

New features:
- Select code to copy, cut, etc.
- "Insert" menu added to insert useful functions
- Various bugfixes and improvements:
  - [[Strings]] are now marked correctly
  - Nau wis inglisch taitel (Skcript)
  - on.create()/on.construction and on.activate() are now fired right after running the main program
  - editor wont crash now if on.charIn is not defined and user presses a button
  - (hopefully) fixed the issue that the "Load" menu won't load correctly right after launch

158
TI-Nspire / Re: Jens' Skript Editor - An on-calc lua editor
« on: July 20, 2013, 02:50:11 pm »
@imath: maybe you mean the "require" function? Unfortunately this function was introduced in platform.apiLevel='2.0' (=OS 3.2) but I set platform.apiLevel='1.0' (=OS 3.0) in the editor to make it backward compatible, so you couldn't use those 3.2 functions. (There are only 2 not thaat useful modules anyways)

@jwalker: I think this is not possible as long as TI blocked all functions to use the file system. Also user-defined libraries are not supported.

PS: Expect Version 0.3 later today!

159
TI-Nspire / Re: Jens' Skript Editor - An on-calc lua editor
« on: July 19, 2013, 07:13:05 pm »
@AnToX98: Wow, thanks and congrats to you! My french is very poor but I understood the most, really nice review! Maybe I'll add french translations for the great french community!

PS: Just noticed that "Skript" is actually german... I meant "Script"...  Now I can replace that dang letter everywhere!  :banghead:

160
TI-Nspire / Re: Jens' Skript Editor - An on-calc lua editor
« on: July 19, 2013, 11:23:03 am »
@imath: I think there are many ways to interprete that question (or my english is not good enough...):
- The number of lines of a code doesn't impact the performance because the code is saved in the RAM as a table with one line per index and only the visible lines get rendered.
- The number of visible characters on the screen does impact the performance because rendering a string/char is relatively slow.
- The number of characters in a visible line does impact the performance because every character of the visible lines does impact the syntax colouring and have to be processed.
- Moving around in large codes is also easy with the clickable scrollbar on the right.(Have anyone notice it yet?!) But i think I'll add a "jump to line..."option.

@mdr1:
- I'm working on copy/paste functions (just finished paste function)

Thanks to everybody for the nice feedback! I think the editor is finished soon! :D

161
TI-Nspire / Re: Jens' Skript Editor - a on-calc lua editor
« on: July 16, 2013, 08:52:33 pm »
UPDATE!!
Version 0.2 is now attached to the first post!

New features:
- Syntax colouring
- Help and instructions
- Support for non-ASCII-characters (use might be a bit confusing)
- Message boxes for safety
- Various bugfixes and improvements

162
TI-Nspire / Re: Jens' Skript Editor - a on-calc lua editor
« on: July 15, 2013, 01:27:06 pm »
@Jonius7: Finally someone gets back to topic :)
- When the program doesn't load on the display? Right at the launch? I think I already fixed that in my current state of development...
- I'll block the opportunity to move around while save dialogue. And you're right, I forgot to update the screen after the save dialogue, I'll fix that.
- The load function works fine with my CX... When you save a "file", loading right after that doesn't work? What exactly? Does the menu not update after saving?
- syntax colouring is planned for future versions

Thank you very much for the feedback!

163
TI-Nspire / Re: Jens' Skript Editor - a on-calc lua editor
« on: July 14, 2013, 05:18:11 am »
Sorry, but I'm busy next 2 days... I'll do another try with the emulators then. I don't know why anyone would give a -1 to those posts so I gave +1 to make that up.

164
TI-Nspire / Re: Jens' Skript Editor - a on-calc lua editor
« on: July 13, 2013, 10:51:07 am »
Yes, I only used the gtk to extract boot2.img to boot2.raw but apparently that doesn't work anymore with 3.x
The recommended tool of TI-Planet "imgmanip" I can't use because I don't know how to C++  :-\


165
TI-Nspire / Re: Jens' Skript Editor - a on-calc lua editor
« on: July 13, 2013, 10:12:32 am »
I spent 1 morning now to set up the nspire_emu and nspire_emu_gtk, I got OS 2.x to work on the nspire_emu but that sais I must update to 3.x to open my skript editor (even without platform.apilevel='1.0') but when I try to run 3.x the nspire_emu sais "Invalid Image"... Either the nspire_emu_gtk doesn't extract 3.x images right or the nspire_emu is not able to run them...
Anyways, does everything in the update work as intended?

Pages: 1 ... 9 10 [11] 12 13