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 - Jim Bauwens
Pages: 1 ... 83 84 [85] 86 87 ... 125
1261
« on: September 09, 2011, 02:01:07 pm »
With 3.01 and 3.02, print outputted to the computer console with the computer software, and to the serial port with the calculator. However the day before yesterday TI released a new OS, and they made that print() isn't functional anymore. This is probably because they didn't like thing that we did with it (controlling external hardware, outputting sound) Anyway, what we did was make a fake print function that puts everything in a string, and then we put it in the clipboard using clipboard.addText. Then we pasted it, and we got the dump
1262
« on: September 09, 2011, 01:49:24 pm »
_G is a table and contains everything. We just loop through the table recursively and check the types of stuff. Here is an example of a dump: http://paste.bwns.be/p/m22cc805b.
1263
« on: September 09, 2011, 01:41:11 pm »
I didn't look at the os files I just scan, search and poke through the Lua environment because I love to do that so much
1264
« on: September 09, 2011, 01:26:28 pm »
platform.window itself is not a table, but userdata. userdata is controlled from C, and we can't touch it. Thats why we use the metatable of it
1265
« on: September 09, 2011, 01:21:29 pm »
The metatable is not the same like the object itself, but you can use it in this case. I tried this, and it works:
window = getmetatable(platform.window) window.screen = 123
platform.window.screen will then have the value 123.
1266
« on: September 09, 2011, 12:50:10 pm »
Well, I guess you can do more complex stuff, but the quality will be better on the 84 because you have more control over the output. And with the latest update you can't have any sound anyway :p
1267
« on: September 09, 2011, 07:03:07 am »
I actually use frequencies in this program. There are some programs available to the conversion. Or if you know the notes you can use this list: http://www.phy.mtu.edu/~suits/notefreqs.html to do the conversion manually.
1268
« on: September 08, 2011, 03:44:28 pm »
I've got an old cd laying around of TI that contains multiple graphlinks. I'll look for it tomorrow, and maybe it has the one for the TI-80 x)
1269
« on: September 08, 2011, 03:42:23 pm »
Hmm, don't really understand, but here is one thing you should know: "\123" == string.char(123)
\ codes are just ways to represent ascii chars I should modify the wiki page, it isn't so clear now.
1270
« on: September 08, 2011, 03:38:32 pm »
Hmm, it works for me the same way. Here is an examle:
window = getmetatable(platform.window)
function window:pixels() return self:height()*self:width() end
function on.paint(gc) gc:drawString(tostring(platform.window:pixels()),10,10,"top") end
1271
« on: September 08, 2011, 03:30:25 pm »
"..." is already unpacked. So it would just be in your case
function foo(...) return ... end
If you want to put "..." in a table just do "{...}".
1272
« on: September 08, 2011, 03:22:17 pm »
Hmmm, very very interesting! It might help me understand the Lab protocol Thanks again for the info! Edit: and thanks Juju, didn't think that it would be the garbage collect info, because "gc" stands for graphical context in nspire lua
1273
« on: September 08, 2011, 05:33:17 am »
According to someone on Ti-planet some things went faster.
There is still a new Lua function name gcinfo, but I doubt that that function will be something wow.
1274
« on: September 08, 2011, 04:54:03 am »
That's a bit weird, a CAS CM... I thought the CM was intended to be a budget calculator. Well, doesn't matter, more fun for us And thanks for reporting Critor
1275
« on: September 08, 2011, 04:32:27 am »
Interesting, maybe it means that the cm was already planned long ago. Now I just need to upgrade my calc, and do some tests.
Pages: 1 ... 83 84 [85] 86 87 ... 125
|