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 - ExtendeD

Pages: 1 ... 27 28 [29] 30 31 ... 55
421
Lua / Re: Loading Lua code dynamically for fun and profit
« on: June 26, 2011, 03:02:44 am »
Nice :)

422
Lua / Re: Loading Lua code dynamically for fun and profit
« on: June 25, 2011, 06:09:56 am »
jimbauwens, ephan pointed me to this. Does the console really read files, bypassing TI's filters?

423
It appears that during its function cleanup of the TI-Nspire implementation, TI fortunately kept the standard Lua function loadstring() that allows dynamic loading of Lua code snippets.

Here is a quick and dirty example of a command prompt to execute Lua on-liners:
Code: [Select]
function on.create()
editor = D2Editor.newRichText()
editor:move(0,150)
editor:resize(250,50)
end

function on.charIn(char)
editor:setText(editor:getText() .. char)
end
 
function on.enterKey()
local chunk, errc = loadstring(editor:getText())
if (not chunk) then
print(errc)
else
local status, err = pcall(chunk)
if (not status) then
print(err)
end
end
editor:setText("")
end

function on.backspaceKey()
editor:setText(editor:getText():sub(1, editor:getText():len() - 1))
end

Now imagine this combined with calls to var.store() and var.recall(), and you have a on-calc Lua code compiler :)
Unfortunately I have too many simultaneous projects to invest more on this, but I'm sure some of you will be able to build interesting tools from this.

424
News / Re: Bobby Carrot released
« on: June 23, 2011, 07:08:00 am »
Nice :) Where did you get the graphics? Or did you make them yourself?

425
Lua / Re: Smooth Key Input
« on: June 14, 2011, 05:37:04 pm »
Unfortunately no. The TI-Nspire Lua API is limited, and not game-oriented :(

426
News / Re: Ndless 2.0 released
« on: June 11, 2011, 05:26:05 am »
So this is the stable version? Great job! I have to update my beta one.

There's not difference with the latest beta. The release is just to make this version more accessible.

427
News / Ndless v2.0 for TI-Nspire
« on: June 11, 2011, 05:18:20 am »
Ndless v2.0 for TI-Nspire



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=598

Ndless combines a resident program and utilities to open the TI-Nspire to third-party C and assembly development. The installation of Ndless on a TI-Nspire is required to be able to run assembly programs.

This version is compatible with most OS versions until v2.1.0. Ndless is distributed under the Open Source Mozilla Public License.

428
Ndless / Re: ndless 2.0 download help
« on: June 11, 2011, 04:01:47 am »
gbcinspire: Ndless v2.0 is now available for download as a final version: http://ourl.ca/9367/218312

429
Ndless / Re: Ndless 2.0 for TI-Nspire enters beta stage
« on: June 11, 2011, 04:01:03 am »
Ndless v2.0 is now available in the Omnimaga download section. It should also soon appear in the ticalc.org archives.

430
TI-Nspire / Re: nTris - Tetris for nSpire -
« on: June 07, 2011, 04:47:48 am »
Did anyone try TI's version of the game in Lua (not officially released)? Is nTris much better?

431
Ndless / Re: ndless 2.0 download help
« on: June 07, 2011, 04:46:34 am »
Holiday time for everyone I guess. So I'll upload it here on thursday.

432
TI-Nspire / Re: Nspire Blackjack
« on: June 07, 2011, 04:42:11 am »
This info should be added somewhere to the nspired-lua.org wiki if it's correct.

433
Ndless / Re: ndless 2.0 download help
« on: June 07, 2011, 04:35:09 am »
Welcome gbcnspire.

Since version 2.0 is now very stable and I probably won't work on this version anymore, I will upload it on ticalc.org. I'm unfortunately currently on holiday and can't help you much. You will have to wait for a few days or for broooom to restore the server. I'm sorry for the inconvenience.

434
Lua / Re: Will Lua erase the need for Ndless?
« on: June 06, 2011, 04:04:05 am »
<< That would be pretty cool, but probably a significant amount of work >>

Probably not so difficult: Lua is designed to be embeddable and extendable. Finding out the Lua entry points in the OS is quite easy.

435
Ndless / Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« on: June 06, 2011, 02:56:07 am »
Can you make sure your PATH variable doesn't contain the bin/ directory of a previous version of Ndless? Ndless 2.0 should be built with itself.

Pages: 1 ... 27 28 [29] 30 31 ... 55