Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
26 May, 2013, 02:13:48 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2   Go Down
  Print  
Author Topic: TI & Lua -  (Read 1112 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 23:59:07
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Topic starter
Total Post Ratings: +180

View Profile WWW
« on: 10 June, 2012, 13:04:47 »
0

TI updated their scripting page a bit a couple of days ago:
http://education.ti.com/educationportal/sites/US/nonProductSingle/nspire-scripting.html

Some interesting statements:
Quote
For programmers and the programming community
The wider programming community gains a potential programming and gaming platform that can well suit their needs. We look forward to seeing programmers band together through existing online communities to share their work and learn from one another.

At least they recognize that there is/was a need. And because several members of the community have close contact with TI, stuff will only get better Smiley
Also, they clearly don't mind games ..

Quote
Getting started with Lua scripting for TI-Nspire technology
Try a series of tutorials that will take you from getting started to creating TI-Nspire documents with the Script Editor. Learn more

These tutorials use OcLua (made by ExtendeD)  Grin

Both things show that they slowly start appreciating the community again. This is because it benefits them too. (So if they would open up to native programming, it would benefit them a great deal). If TI continues with this trend I think we will see some great stuff happening Smiley

Logged

adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 12:02:44
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1197


Total Post Ratings: +185

View Profile WWW
« Reply #1 on: 10 June, 2012, 13:13:25 »
0

This page should change again sometime soon ;-)
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:59:14
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1855

Total Post Ratings: +208

View Profile WWW
« Reply #2 on: 10 June, 2012, 14:14:14 »
0

Quote
If TI continues with this trend I think we will see some great stuff happening Smiley
Unlikely. Nobody should set any hopes on TI behaving as they did with the older series, and as they should have done for the Nspire series.
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 12:02:44
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1197


Total Post Ratings: +185

View Profile WWW
« Reply #3 on: 10 June, 2012, 16:44:59 »
0

Quote
If TI continues with this trend I think we will see some great stuff happening Smiley
Unlikely. Nobody should set any hopes on TI behaving as they did with the older series, and as they should have done for the Nspire series.
Well, beginning with Lua first, not talking about native for now.
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 15:20:51
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1179


Total Post Ratings: +158

View Profile WWW
« Reply #4 on: 10 June, 2012, 16:49:17 »
0

can't you somehow force TI to make it possible to read and write to files with lua? that would make the possiblities a lot bigger, since then extern levels etc could be added without having to update the game in total (just an example)

or with the physics engine it would be possible to make one general program that reads from files that contain a specific setup and runs them..
Logged

Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 23:59:07
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Topic starter
Total Post Ratings: +180

View Profile WWW
« Reply #5 on: 10 June, 2012, 16:52:25 »
0

I and Adrien have talked to TI regarding the matter, showing where it could be useful. TI might improve external reading/writing in the future.
(also, you can already read external files)
Logged

Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 15:20:51
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1179


Total Post Ratings: +158

View Profile WWW
« Reply #6 on: 10 June, 2012, 16:54:33 »
0

read external files??? how? i didn't know that ö
Logged

adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 12:02:44
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1197


Total Post Ratings: +185

View Profile WWW
« Reply #7 on: 10 June, 2012, 17:11:21 »
0

you can load stuff inside MyLib with some math.eval() calls I think, or directly var.recall
Here's what Levak does, in a version of Make3D :


1
2
3
4
5
_, err = pcall(function() loadstring(var.recall("make3d_lib\\s__importer__"))() end)
if not err then
--- some more init code --
end
« Last Edit: 10 June, 2012, 17:11:47 by adriweb » Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 23:59:07
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Topic starter
Total Post Ratings: +180

View Profile WWW
« Reply #8 on: 10 June, 2012, 17:26:56 »
0

Yup, you can get data from Library documents using math.eval or var.recall Smiley
The only annoying thing is that you will need to know the name of the external library.
Logged

Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:59:14
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1855

Total Post Ratings: +208

View Profile WWW
« Reply #9 on: 10 June, 2012, 17:42:06 »
0

By "reading from external files", I think that what he, and most of us, have in mind is not that kind of platform-specific, two-way-incompatible, watered-down file access Wink

"Reading from external files" means being able to rely on standard Lua functions from the "io" family, in order to read and write arbitrary data from the filesystem. Access to the filesystem is a basic capability provided by dozens of thousands sane programming environments; sadly, five years after its introduction on the market, the Nspire still is not one of them (when it's restricted to what TI feels like providing to users, that is).
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 23:59:07
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Topic starter
Total Post Ratings: +180

View Profile WWW
« Reply #10 on: 10 June, 2012, 17:43:44 »
0

I know it is restricted. And that is why we asked TI to improve it Smiley
They understood that the functionality could have good use. However I do not know if/when/how it will be done.
Logged

Nick
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 15:20:51
Date Registered: 05 June, 2011, 20:01:07
Location: 51° 12′ 34″ N, 3° 13′ 31″ E
Posts: 1179


Total Post Ratings: +158

View Profile WWW
« Reply #11 on: 10 June, 2012, 17:47:35 »
0

thanks lionel for explaining them xp

and thanks jim & adriweb &whoever else for asking, i hope they include it in the next versions..
Logged

aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Yesterday at 23:13:58
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3121


Total Post Ratings: +120

View Profile
« Reply #12 on: 13 June, 2012, 13:59:33 »
0

I know it is restricted. And that is why we asked TI to improve it Smiley
They understood that the functionality could have good use. However I do not know if/when/how it will be done.
I hope they stop restricting and make the systems more open, maybe even support ASM/C. If they do that, I am really going to send them a "thanks" mail xD
Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
blue_bear_94
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:00
Date Registered: 09 May, 2012, 02:45:26
Location: Earth
Posts: 586


Total Post Ratings: +3

View Profile
« Reply #13 on: 16 June, 2012, 23:34:02 »
0

It took TI 4 years to give into supporting assembly since the time a hack was discovered. 2014.
Logged


Kraphyko (TI-89 Image Editor) 80%
Starvak 2 1%
TI-84+SE User (2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User (1.02)
Spoiler for Programming Languages:
TI-83+ Basic - 4
TI-83+ Asm - 1
TI-89 Basic - 2
TI-89 C - 2.5
Computer C - 2
GameMaker - 3
Java - 1.5
Racket - 3
Scala - 1
Le jeu.
Spoiler for Ultimate Internet Meme:
<a href="http://www.youtube.com/watch?v=zOMvDCRWBLI" target="_blank">http://www.youtube.com/watch?v=zOMvDCRWBLI</a>
Spoiler for Banner:


This server is always updated to the newest snapshot. Please don't try to join it on 1.4.7.
Sunrise 3 will have to wait till about a week later.
Spoiler for hellowld.radiation:
<< stdradiation

I must have had too much radiation for breakfast...I must have had too much radiation for breakfast...I must have had too much radiation for breakfast...I must have had too much radiation for breakfast... XDXD[I must have had too much radiation for breakfast...I must have had too much radiation for breakfast...I must have had too much radiation for breakfast...I must have had too much radiation for breakfast... Crazy, I must have had too much radiation for breakfast... Evil Laugh CrazyBig smile]
 Cheesy({ MadSmileySmileySadSmileySadSadSad, MadSmileySmileySadSadSmileySadSmiley,
 MadSmileySmileySadSmileySmileySadSad, MadSmileySmileySadSmileySmileySadSad,
 MadSmileySmileySadSmileySmileySmileySmiley, MadSmileySadSadSadSadSad,
 MadSmileySmileySmileySadSmileySmileySmiley, MadSmileySmileySadSmileySmileySmileySmiley,
 MadSmileySmileySmileySadSadSmileySmiley, MadSmileySmileySadSmileySmileySadSad,
 MadSmileySmileySadSadSmileySadSad, MadSad});
Spoiler for Give Internet!:
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 23:34:24
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50238


Total Post Ratings: +2615

View Profile WWW
« Reply #14 on: 17 June, 2012, 01:27:27 »
0

I made a news about this. Still not as great as stopping blocking Ndless, but still good nonetheless. Hopefully they spend less energy into blocking Ndless and more into fixing bugs before release and improving Lua speed and commands. Still hoping, for example, that Lua eventually adds direct input controls, so movement can occur every frame rather than every 6 frame or so and allow multiple keypresses. More speed would be nice too for 3D stuff and tilemapping.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.519 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.