Author Topic: Lua on calc guide  (Read 5484 times)

0 Members and 1 Guest are viewing this topic.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Lua on calc guide
« 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
  • clipboard (all functions)
  • toolpalette (not register)
  • D2editor (all functions)

 
« Last Edit: December 08, 2011, 06:42:25 pm by Nick »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Lua on calc guide
« Reply #1 on: December 08, 2011, 06:44:29 pm »
IN LUA, FOR LUA.
* epic7 wants to get cx

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Lua on calc guide
« Reply #2 on: December 09, 2011, 05:05:26 pm »
This will be very helpful! Good job.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Lua on calc guide
« Reply #3 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.
« Last Edit: December 10, 2011, 01:22:45 pm by Chockosta »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Lua on calc guide
« Reply #4 on: December 10, 2011, 02:57:05 pm »
So.... Inspired-Lua-Wiki 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 :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Lua on calc guide
« Reply #5 on: December 10, 2011, 08:11:41 pm »
Are you batch-exporting the documentation from the wiki?
Ndless.me with the finest TI-Nspire programs

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Lua on calc guide
« Reply #6 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?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Lua on calc guide
« Reply #7 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.
Ndless.me with the finest TI-Nspire programs

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Lua on calc guide
« Reply #8 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

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Lua on calc guide
« Reply #9 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.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Lua on calc guide
« Reply #10 on: December 11, 2011, 05:23:24 am »
hmm, sounds a lot more simple indeed, how could you convert them to readable pages?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Lua on calc guide
« Reply #11 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
« Last Edit: December 11, 2011, 06:03:39 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Lua on calc guide
« Reply #12 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.
Ndless.me with the finest TI-Nspire programs

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Lua on calc guide
« Reply #13 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

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Lua on calc guide
« Reply #14 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)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation