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 2 [3] 4 5 ... 13
31
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 11, 2014, 03:34:08 pm »
That makes sense, but you should at least be able to minimize the header so that you don't have to scroll through it.
Yes, but work! I'll have to completely rewrite many functions to make it possible to collapse/expand parts of the code; that'll take some time. I'll first implement a faster method of scrolling (as you suggested months ago); I only have to find a event for that: I think I'm already using all available Buttons  :/


Anyways, I probably won't be downloading JSE updates for a while, my calculator is broken and its useless on Student Software. I might be able to get a new one at the start of the school year but I'm not sure yet.
That's bad news! I hope that won't keep you from developing!


- the autocomplete function will only find functions for gc if you have "gc" or "gc:". Any further character won't be seen as part of "gc:", so "gc:f" will result in autocomplete option "for" and "function"
- include the standard table library to the autocompleter (you could also search _G and its subtables for available functions and tables)
I think you don't have the newest version; I already fixed both ;)

- When I tried to execute a script rebinding functions of the event handler using "setmetatable(on)" I encountered the problem that your execution page did this too and overwrote my event handler
Yes, that part of the code had some mistakes; it was on my todo-list to rewrite it for a while... I'll fix it for the next alpha release!

- make the autocompleter recognize variables and user functions
That'll be work too because the editor deosn't understand anything of the written code yet, it only colors it correctly. But soon holidays begin and I'll have more time to work then!  :)

32
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 09, 2014, 03:47:27 pm »
Very nice :D
(I summed it up on tiplanet, btw)
Nice! I like that updates still get translated to ti-planet for the french community!  :)


Also, it crashed (line 2327 : attempt to index field '?' a nil value) when I tried to copy a part of the code I selected.
Thanks for the report, but I was not able to recreate the bug and I have no idea what could have caused it... But I made that part a bit safer to prevent a crash

Why don't you just enable the errorHandler, by the way, for "releases" ? :P
(I don't recommend enabling it while writing/debugging, though ^^)
Yes, you're right, I'll  do that  ;)




@LDStudios: First, thanks for all the good suggestions and reports!
-Custom Libraries, with Adriweb's Better Lua API as a built in library. Also the ability to add other libraries of your own.
Sorry, but I don't like the idea of a special environment. I want to keep the compatibility of the script as it is to any emulator. But you could pack the library into a library file and load it in your script! Another option would be, that I'll implement the option of setting a custom standard "Header" which is inserted in every new file you create. (Sorry, my english is bad today  :P )

-Ability to  click the X in the top right of the customize box
-Ability to mark check boxes with cursor as well as buttons
This is both already possible; it's just nearly impossible to aim correctly with the "text" cursor. But, as you mentioned, I'll change to the default cursor for dialogues in future ;)


-The application that runs the script didn't work for me until I clicked on the page, after the first time it worked fine
That's probably because the console application was focused. That's not really a bug, because the execution of the script in the user script page is triggered by the "on.activate" event, which is only triggered if it's application is focused.

-Ability to save custom themes
Indeed, it works fine on the emulator but doesn't on the handheld. The problem seems to be that var.recall apparently doesn't work in the first call of on.activate. I hate that TI doesn't mention such things in their guide and have such differences between emulator and handheld...  :(  I'll try to find an other suitable event for initialization that fits all needs then...  :/


Also, how did you use ctrl+M to select the line?
ctrl+M triggers the on.createMathBox event on OS>3.1

I added all the other things you wrote to my todo-list  ;)


33
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 08, 2014, 04:56:56 pm »

So, here is the 4. alpha release of v2.0!


New Features & Improvements:
- implemented gui engine ==> better dialogues
- fully functional "find" function
  - option to search only whole word
  - option to search from cursor or from script start
  - enable/disable case sensibility
- autocompletion: press the return(↵)-key to open the autocompletion menu (customizability planned)
- color of strings, comments, keywords and lua standardFunctions is now customizable (proper syntax marking options are planned)
- replaced the old "Load" menu by a new filemanager
  - function to rename files
  - saved files can now be seen by OS 3.1!
- polished look of user script page


Fixes:
- moved menu initialization into on.activate ==> menu shows up on all OS again (sorry, forgot to fix it earlier :P )
- removal of "carriage return" characters of pasted texts


PS: I wrote the gui engine from scratch and didn't do thaat much testing, so some features might be a bit buggy! Feel free to report all bugs you find!  ;)

34
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: June 27, 2014, 09:49:09 am »

Hi, sorry for this late update, but I didn't have much time lately...
Anyways here's the 3. alpha release of v2.0!


New Features/Improvements:
- change fontsize with "shift" & "+" and "shift" & "-"
- global environment now resets for each new build
- ctrl+M selects the current line and moves the cursor to its end
- rudimentary "find" function (menu=>"View"=>"Find")
- 90% faster and more accurate syntax colouring algorithm  (image code is defenitely no problem anymore!  :) )
- EE key now inserts a "#"
- improved file name format (longer names and less bugs)
- button rebindings now also works for dialogue inputs


Bugfixes:
- fixed a crash after undoing (still many bugs to fix with undoing...)


I also started working on a gui engine for better dialogues and easier and faster development of the guis for customnizations and other advanced functions!  :)

35
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: June 10, 2014, 01:07:20 pm »
3.1! Great! I found a bug: when I launch the script and I modify it by removing a character, the application makes an error:
991: attempt to index field '?' (a nil value)
Oh, yes, thank you for the report! I forgot some handlers for the new dialogue... Just don't try to modify your code while the script is running for now  ::)


LDStudios: Those libraries are in the guide in the editor.
LDStudios ment the standard libraries explained here: http://www.lua.org/manual/5.0/manual.html#5.1. I now plan to make an addable library file that includes the extended guide data  :)

36
TI-Nspire / Re: [lua] fractal zoomer
« on: June 10, 2014, 12:50:58 pm »
Do you support other fractals? It seems there is a lot of formulas that can yields pretty resutls. Here is a non exhaustive list without illustrations : http://www.lifesmith.com/formulas.html
No, not yet... But I could give the user the ability to insert an own formula, let the math.eval function simplifyand then parse it to lua code! I'll try that when I have some spare time  :)


Great that it runs on 3.1. :)
How to draw with the program the fractals in your post?
I attached a screenshot where I marked the positions of the first 5 Screenshots. Then 6th is a mandelbrot set with Z0=0.1+0.7i; The 8th is in a Julia set with C=0.7+0.3i. The other two I can't remember or find :P
Oh and in case you missed it: I continue to support OS 3.1 in the latest alpha release of my script editor! :)
edit: Sorry, only just saw that you've already posted there...

37
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: June 09, 2014, 04:50:31 pm »

Hello!
After wasting a bit of time with fractals I finished the second v2.0 alpha release today :) I also tried to use the "callStack" and "locals" information of the registered error handler but unfortunately those are not available for code loaded with the loadstring function, so this feature will not be possible to implement.  Anyways, here's what's new:


New features:
- the whole color-set can be customized now (menu => Style => Customize) (no custom syntax coloring yet!)
- added menu to the console application: choose which logs you want to get displayed! (The small squares in the upper right corner are indicators: black=print; red=errors; blue=status)
- now use of platform.registerErrorHandler ==> no crash possible anymore (on apilevel>1.0)
- use of custom error handler is still possible
- safe use of 2DEditors: they get removed as soon as you stop the script


Improvements/Changes:
- various fixes
- slightly optimized and improved syntax colouring
- now all dialogues are centered
- switched back to rendering only ascii characters because of performance; they still work but in the editor they are representated by their UTF-8 code
- added dialogue for stopping the user script


I also noticed that I have fallbacks for all apilevel 2.0 features, so I can continue the support for OS3.1 for now :)

38
TI-Nspire / Re: [lua] fractal zoomer
« on: June 09, 2014, 11:34:55 am »
Now, Jens K -> back to the editor :D
Aye-aye, sir! :w00t:

39
TI-Nspire / Re: [lua] fractal zoomer
« on: June 09, 2014, 10:15:59 am »
@LDStudios: Yes I'm still working on the update, I was just too excited about fractals :P

40
TI-Nspire / Re: [lua] fractal zoomer
« on: June 09, 2014, 09:53:27 am »
Thanks for the nice feedback!  :)


@adriweb: I think mine is very optimized too; at least it seems to be not much slower as Levaks version: The same sector at 100 iterations on full resolution takes about 47.5 seconds which is only 1.5 seconds longer than levaks. Plus mine seems to render more accurate (borders seem to be more smooth on my version). I tested it with the attached "high res" version which renders at full resolution right away. Mine is also platform independent; the absolute coordinates are only for initialization; they get overwritten in the on.resize event ;)
But I have a question about coroutines: Do they actually give advantages in speed? I mean the Nspire has only 1 core anyways...


THis looks very nice! I wonder how long does it take to render at decent resolution? It would be interesting to see such fractals animated and zooming in, although I doubt it could be done at full res.
Thanks! On average, 1/4 resolution takes about 5s; 1/2 takes about another 17s; full res takes about another 45s. So I think even on 1/4 resolution it would be too slow... But maybe it would be possible to calculate the indidual frames  and afterwards display them fast enough...

41
TI-Nspire / [lua] fractal zoomer
« on: June 08, 2014, 10:46:04 am »
Hello!
During the development of my script editor I started a new project, which turned out pretty nice: A fractal zoomer for the Nspire!  :D  I love fractals so I started reading a bit about them and finally had the urge to make a fractal renderer myself on the Nspire. I don't know if there are already fractal renderers for the Nspire, but it wouldn't bother me much because I primarily made it just for fun. Here's the result:

Features:
- Rendering of the mandelbrot set and julia sets
- It first renders at low resolution but the longer you wait, the higher gets the resolution ==> Very fast display
- Zoom in and out by clicking with the mouse
- Free adjustment of calculation depth and constants
- 7 color modes


Information:
- This program is optimized for the handheld; I don't recommend using it on the student software emulator because the emulator doesn't support partial frame updates so that it has to repaint every single pixel on every frame update, which is very slow!
- The menu sometimes doesn't work on the emulator for some reason
- I also included a feature which I haven't seen on any fractal zoomer yet: The possibility to set the values of the first segment Z0 of the sequenze of the mandelbrot set. I'm not familiar enough with fractals to say which exact mathematical meaning this has for the set, but it produces interesting "crippled" shapes (e.g. the middle-right screenshot)

Edit: This program has been revised!

I attached some awesome screenshots of both fractals in different color modes

This project is completed for me, but if you find a serious bug (on the handheld) or have a special request I'm willing to make an update. :)

42
Art / Re: RPG for Nspire: Sprites
« on: May 28, 2014, 04:42:31 am »
Uh, that looks very nice! :D I was thinking about making a RGP too, but more like a roguelike game... So if you need any support in programming feel free to ask, I'd love to see a RPG on the nspire!
Btw: You get better Screenshot quality if you save them in .png format ;)

43
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: May 27, 2014, 06:15:57 pm »
Ok, thank you! Supporting 3.1 would be much more work (as I mentioned earlier). So I'll develop for OS3.2+ for now and maybe do a 3.1 version later :)

44
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: May 27, 2014, 06:07:30 pm »
Ok I understand that you don't upgrade to 3.6 (I haven't upgraded yet too) but whats the problem with 3.2?

45
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: May 27, 2014, 04:59:32 pm »
No I'm 100% on the editor and I can't open menu :(


EDIT : I deleted "platform.apilevel = 1.0" and replaced create by on.construction and it works :D
Hm.. I couldn't recreate the problem, probably because you have 3.6 and I have 3.2... Thanks for the report, I'll fix it!


It doesn't work on 3.1. :(
Yes, this prerelease works only on OS>=3.2! I didn't think anybody still uses OS 3.1. Is there a special reason that you still use it? Because I'm not sure if I should still support OS3.1

Pages: 1 2 [3] 4 5 ... 13