UPDATE! Version 0.1.1 now attached on the first post
New features: - math button input get converted to lua code (like the root or the pi button) - better visuals on greyscale displays - support for clickpad layout (switch in the menu) explanation in the "Controls" spoiler of the first post - settings will be saved now
@lkj: Thanks for the link! I'll test now what I just updated on the emulator
@Jonius7: nspire 1.) Thanks for your the hint for the emulator, but I don't get it to work: everytime I try to start "nspire_emu.exe" a black window flashes once and nothing else happenes 2.) I haven't made an update yet, because I don't get the emulator to work But those button rebinds are already in the current version. 3.) BIG thanks for that reference to nSpaint!!! Now I don't have to do that; Chockosta wrote ~2200 lines of code for that! I'll ask him for permission for integration or I'll just put a note somewhere...
@Jonius7: 1.) No, I didn't know that... LuaCS looks better than mine, but there's no actual error handling and oclua keeps crashing as it has always done. Also you only can save 1 program. Also characters like [] and {} and : are as tedious to type as they were in the "Notes" App. 2.) The image is edited; there aren't really "[]" and "{}" Buttons, I redefined following buttons: "e^x"==>"["; "10^x"==>"]"; "ln("==>"{"; "log("==>"}"; "(-)"==>":" It's very handy like this on the touchpad layout. I'll implement a feature to swap the layout, maybe the "cos" and "tan" buttons for "[" and "]" and the "^-1" versions for "{" and "}"? Unfortunately I don't know anyone with a clickpad nspire to try it out
Hi, sorry, that there was no update lately... I've been busy with my latest project, a on-calc skript editor: http://ourl.ca/19194 I'll upload a smaller update with bugfixes, improvements'n'stuff soon. Stay tuned!
Hi, Inspired by "oclua" I started to make an own on-calc lua editor and finished the first version of it in summer 2013. It had many flaws and lacked some important features, so I decided to make a second, vastly improved version of it:
Features: - Fully functioning code editor on page 1.1 - Monospaced characters - Syntax highlighting (customizable) - Autocompletion menu: basic lua functions, nspire api function, global script variables, custom items - Undo/redo actions - Select code to copy, cut, paste, etc. - Find function - Save & load infinite amount of scripts with length each up to 1.7 million characters - Hotkeys for special characters - Full support for UTF8-encoded unicode characters - Import code from librarys and saved scripts - Autosave function - Customizable color-set - Customizable font
- Entirely crash protected live testing on page 1.2 - Nearly no restrictions - Full support of event handlers using "on"s metatable - Resets global environment after each build - Pause/Unpause scripts - Full module (physics & colors) support - Calls all initialization event handlers - Full support of 2DEditors
- Console - Logs "print" outputs, errors and status logs of the editor - Can be deleted, copy&pasted and resized with Nspires layout options - Commands can be entered to execute them during live-testing a script
- Shortened portable version of the Nspire api reference guide on page 2.1 - Shortened portable version of the lua reference manual & chipmunk physics api guide on page 2.2
- Compatible to: - OS 3.1 and OS>3.1 - Greyscale models - Clickpad models - Desktop - iPad
Current Version: 2.2.1 Current Size: 73KB
The attached zip file contains the editor files for OS 3.1 and OS>3.1, controls pictures of both Nspire layouts and a readme.txt
Bug reports are welcome!
Spoiler For old post:
Hi, I recently found oclua.tns and I liked the idea of an on-calc skript editor but I didn't like to write code in the "Notes" app. Therefore I started to make a fully functioning on-calc skript editor based on the idea of how oclua works. I also managed to prevent crashes of the editor because of a crash in the written code! I've been working on it several weeks now and I think it's time to show you the progress:
Main features: - fully functioning code editor - run your code without any limitations - stop it - it wont crash (except for infinite loops) - Syntax is colored - Save infinite amount of skripts - Select code to copy, cut, etc. - undo/redo actions - Import code from librarys - shortened portable version of the nspire api reference guide on page 1.2 - Most math buttons get converted to valid lua code - compatible to: - OS 3.x - Greyscale models - Clickpad models - Desktop - iPad
Planned Features: - Undo/redo actionsDone in 0.4 - Select/Mark code to copy/paste etc.Done in 0.3 - Make things safer to use, like "File"==>"New"Done in 0.2 - mark operators'n'stuff correctlyDone in 0.2 - help and instructionsDone in 0.2 - support for the clickpad layoutDone in 0.1.1 - better visuals for greyscale displaysDone in 0.1.1
Eventually future features: - shortened portable version of the nspire api reference guideDone in 0.4.2 - paint a picture, convert it and put it into your code on-calcUse nSpaint!
Controls:
Spoiler For Controls:
nspire touchpad:
nspire clickpad:
Screenshots:
Spoiler For Screenshots:
API Reference Guide:
By now the file is 28KB in size and it has about 1400 lines of code (without the API Reference Guide).
@annoyingcalc and @DJ Omnimaga: Thanks, right now I'm fixing bugs (there was a severe bug in the save function) and I'm making good progress with the Import/Export functions Maybe I can finish and upload it before a 1 week trip to hamburg next week... @Keoni29: I'll make a video when it's finished, maybe someone else makes a video by then.
@adriweb: I started programming ~3 years ago and this is one of my first LUA projects ever, it's probably the biggest project I started yet. I still have much to learn so thank you for the links. As I said I'll clean up the code someday and I'll take your tipp into account!
@Augs: Whoops, forgot that... Of course you'll start with nothing, those items were only for debugging! Sorry for that! @AlexisVieira: Well thats a shame, have you tried switching the graphics mode with [V]? What device do you use? On my CX with OS 3.2 there's nearly no delay on processing of a keystroke.
WOOOOOHOOOOOOO!!!!!!!! I'M FINISHED!!! Everything works fine now! I am sure there are several bugs but idc, i just want to upload it NOW! But where can I upload it? Does ticalc.org accept frequent updates?
Thank you all for your encouragement, that really supports me and makes me confident to complete this huge project! I'm making great progress with the saving system and I'm sure, I can upload the current version soon. I like the idea of a non CX version, but I don't think both have to be in 1 file to change them while playing... maybe 2 files with diffenrent tile set? @DJ Omnimaga: Sure, I think I'll do it like in the Alpha versions of Minecraft: you can choose different world sizes. How many Blocks do you think a Nspire could keep in the RAM if every block is saved as a Integer between 0 and 300 in a 2 dimensional table? Don't worry about the performance, by now, only the visible blocks get updated (except furnaces).
@adriweb: 1) Yes, I think the problem is at enable/disable elements on-the-fly, I use that function to sort out items, that needs a crafting table. 2) I'm using this tool: http://hoffa.zzl.org/index.php and it looks like this compresses the images as much as possible 3) Without any saves the .tns is 29KB. Every save takes about 1-2KB. Btw every world is 200x100 Blocks large (but the code supports larger).
@ben_g: Yes I used the original textures and for the other questions just look at the first post