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 ... 7 8 [9] 10 11 ... 13
121
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: September 05, 2013, 04:06:43 pm »
@ElementCoder: That's the purpose I made it for, I'm glad that it's useful for you :) And yes, class() is not highlighted yet, I forgot that because it was not listed under the basic functions... thanks for the report, I'll fix that for the next update!

122
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: September 04, 2013, 09:48:25 am »
That's very strange, I copied the code and it works perfectly when I run it in my Editor. Mybe it's because of the line platform.apilevel = "2.0", that doesn't have any effect in the Editor because it's not on the first line on the whole program and it can cause errors if you do it anyways. Are you sure that you are using the file "Jens' Script Editor apilevel2+"? What error does it output?

123
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: September 03, 2013, 09:52:06 am »
The physics engine should work on the apilevel2+ version and yes, there seems to be a bug at undoing an insertion, I'll fix that for v2.0 or maybe on an earlier version (possibly v1.0.1) thanks for the report!
Edit: I tested
Code: [Select]
require "color"
function on.paint(gc)
    gc:setColorRGB(color.red)
    gc:drawString("Red",10,30)
end
and it worked. That proves that loading libraries works!

124
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: August 30, 2013, 10:41:26 am »
@AnToX98: Yeah, I had the same idea when I made that insert function, but I forgot it later, thank you very much for this suggestion, I'll add it to the list! :D

125
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: August 27, 2013, 08:38:22 am »
Yes, that would be cool, but unfortunately it is not possible to detect the shift or ctrl key :-\ ctrl+click is an exception because it triggeres the "grab" function

126
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: August 26, 2013, 02:11:04 pm »
I just started to work on version 2.0 and those are the features/changes I want to include:
- full console to see output of the print function
- User Skript runs on its own page to switch to the editor/console screen for debugging
- console runs on its own frame so that you can copy it and attach it to the running skript screen
- (as suggested by adriweb) an autocompletion popup
- (as suggested by AnToX98) a customizable "insert" function and customizable syntax colouring
- faster rendering (I'll have to do some research there, maybe if I'd use textures for letters or render them with gc:drawPolyLine(...))

Please tell me what you think of those features and feel free to make proposals if you have any suggestions for the new version!

PS: The development of this version 2.0 will be much slower! (school started again and I continued working on Minecraft 2D...)

127
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: August 25, 2013, 05:11:55 pm »
This Script Editor doesn't include any textures, the font and the menu is from the OS and everything else is generated with the graphic engine

128
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: August 25, 2013, 04:16:20 pm »
!!!Update!!!
Version 0.8 is now attached to first post

New features:
- mobs:
  - passive animals: pigs, cows, sheep and chicken:
    - they only spawn on grass at daytime
    - they move around randomly
  - aggressive zombies:
    - they spawn at night and in shadow but not in the range of a torch
    - they will run towards you and attack you (if you aren't too far away)
    - they burn in the sun
  - they can swim, drown, and take damage from falling and lava
  - click on mobs to attack them and they'll give you items
  - they despawn if you are too far away
  - they won't be saved yet
- doors:
  - click with [(-)] on them to open/close them
- beds:
  - click with [(-)] on them to sleep
  - it must be at night and the bed must be in the range of a torch to sleep
- weapons:
  - use them to effectively attack mobs
- worldsize selection:
  - you can now select small(100x100), normal(200x100) or large(400x100)

Improvements:
- you can now select blocks via the numpad (for clickpad models)
- you can now control nearly everything with a clickpad nspire
- extremely fast blockselection in fast graphic mode (toggle with [v]) via partially frame updates
- rendering nights is now much faster
- improved graphics
- various bugfixes

Please read the controls.txt, the ingame help is not complete yet!

PS: I don't know if there are still problems on greyscale models, I changed very much on the game and the textures!

129
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« 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

130
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« 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?

131
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: August 18, 2013, 12:12:38 pm »
There's no difference between the different nspire models yet.

132
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: August 17, 2013, 06:31:35 pm »
Thanks, I see, the most is ok, but the shadow texture doesn't look right, but I have no idea why... Does anyone have an idea? Shadow texture attached.

133
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: August 16, 2013, 03:50:21 pm »
Hay, I just finished a big part of the next updates: The basic npc "engine" is finished now :D
It includes sheeps, pigs, cows, chicken and zombies and this is how it looks right now:

But I still have some feature left I want to include in this update, so it may takes some days until I upload it, I just wanted to show that I'm still working on it ::)

@Jonius7: Unfortunately it's not possible to detect if a button is pressed or not, there are only functions which are fired when a button is pressed down, but there's not even a function like this for the ctrl/shift keys. I think the numpad is still the best option for clickpad models. About the item selection: you can switch the selected item via the +/- keys, but I noticed that is impractical for clickpad models so I could add the same functions to other keys (maybe the w/, keys ?).

@AlexisVieira: Could you possibly send a screenshot so that I can see what I have to improve?

134
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« 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

135
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« 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

Pages: 1 ... 7 8 [9] 10 11 ... 13