Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: Nick on December 08, 2011, 06:40:07 pm

Title: Lua on calc guide
Post by: Nick on December 08, 2011, 06:40:07 pm
I'm making a guide with all the lua commands for the nspire. If you have some comments, advices or whatever, tell me..
Maybe make a graphical interface, with more 'effects', i don't know, share your ideas, or you can help me finding an example or function for the commands below

(http://img.removedfromgame.com/imgs/LuaGuide.gif)  (http://img.removedfromgame.com/imgs/LuaGuide2.gif)
Title: Re: Lua on calc guide
Post by: epic7 on December 08, 2011, 06:44:29 pm
IN LUA, FOR LUA.
/me wants to get cx
Title: Re: Lua on calc guide
Post by: cyanophycean314 on December 09, 2011, 05:05:26 pm
This will be very helpful! Good job.
Title: Re: Lua on calc guide
Post by: Chockosta on December 10, 2011, 01:21:55 pm
This will be really, really, really useful to me.
And your interface looks good. I'd just like a convenient documentation.

When I program with OCLua (really often), sometimes I just can't remember some functions.
Title: Re: Lua on calc guide
Post by: Adriweb on December 10, 2011, 02:57:05 pm
So.... Inspired-Lua-Wiki (http://wiki.inspired-lua.org) in the pocket ? :D

Very nice, really :)

Will be a nice thing to program on OcLua when you have that along :)


I'll have to translate that into french, too :)
Title: Re: Lua on calc guide
Post by: ExtendeD on December 10, 2011, 08:11:41 pm
Are you batch-exporting the documentation from the wiki?
Title: Re: Lua on calc guide
Post by: Nick on December 11, 2011, 03:10:34 am
what is batch-exporting? i'm just rewriting it, so it all fits on the screen, that's it :)

UPATE:
i'm also adding the mathematical functions/comparisons, table operations, string operations etc, so all the most important elements are present
i only need some help for the toolpalette.enable and the D2Editor, does anyone have some experience with those?
Title: Re: Lua on calc guide
Post by: ExtendeD on December 11, 2011, 03:20:33 am
I mean since there's already online doc, you could just download the content and reformat it.
Title: Re: Lua on calc guide
Post by: Nick on December 11, 2011, 03:52:14 am
yep, for those who like programming on calc with oclua for example, or maybe a real on-calc program will appear that saves it directly to a .tns so this might be usefull when no pc is available
Title: Re: Lua on calc guide
Post by: Jim Bauwens on December 11, 2011, 05:11:47 am
Well, means making basically something to read the original wiki pages (you can easily export (download them).
This way you could always keep it up to date with almost no work.
Title: Re: Lua on calc guide
Post by: Nick on December 11, 2011, 05:23:24 am
hmm, sounds a lot more simple indeed, how could you convert them to readable pages?
Title: Re: Lua on calc guide
Post by: Adriweb on December 11, 2011, 06:01:41 am
You could first download all the pages you want to be in your app, then make some kind of script (in whatever language you want) that reads the html output (or the wiki source directly...) and formats everything the way you want for your guide.

If everything is all correctly setup, it would really be easy to get new updates on your guide when they get avilable on the wiki ;)

A while ago, I asked TI if they could provide some xml formatted API documentation, with everything in a known format. It would be used in their Lua SDK but could be a great help for the wiki too and your program, for example.

I dont know if they did it or plan to do so.... I'll ask them again :P
Title: Re: Lua on calc guide
Post by: ExtendeD on December 11, 2011, 06:07:36 am
ON the computer side, maybe wget in recursive mode + HtmlUnit to extract the interesting parts + some formatting.
Title: Re: Lua on calc guide
Post by: Nick on December 11, 2011, 06:08:50 am
are they planning to make a real lua sdk? nice :) well, tbh, i don't know any language except lua, so that would be hard to make xs but that doc would certainly be usefull
Title: Re: Lua on calc guide
Post by: Adriweb on December 11, 2011, 07:58:59 am
Yes, TI plans to have a Lua SDK in 2012, as announced on their site ;)
(which some of us here -levak, critor, jimbauwens and myself) are alpha/beta-testing, but here we can't talk about it, really :P)