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 - Jim Bauwens

Pages: 1 ... 83 84 [85] 86 87 ... 125
1261
Lua / Re: Add function to the gc class
« 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
Lua / Re: Add function to the gc class
« 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
Lua / Re: Add function to the gc class
« 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
Lua / Re: Add function to the gc class
« 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
Lua / Re: Add function to the gc class
« 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:
Code: (Lua) [Select]
window = getmetatable(platform.window)
window.screen = 123
platform.window.screen will then have the value 123.

1266
News / Re: Doing too much with the TI-Nspire dock connectors?
« 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
News / Re: Doing too much with the TI-Nspire dock connectors?
« 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
News / Re: ASM to arrive on TI-80 ROM 4.0 soon?
« 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
TI-Nspire / Re: [Lua] Image Editor
« on: September 08, 2011, 03:42:23 pm »
Hmm, don't really understand, but here is one thing you should know:
Code: [Select]
"\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
Lua / Re: Add function to the gc class
« on: September 08, 2011, 03:38:32 pm »
Hmm, it works for me the same way.
Here is an examle:
Code: (Lua) [Select]
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
Lua / Re: Lua problems and bugs
« on: September 08, 2011, 03:30:25 pm »
"..." is already unpacked.
So it would just be in your case
Code: (Lua) [Select]
function foo(...)
  return ...
end

If you want to put "..." in a table just do "{...}".

1272
News / Re: TI-Nspire OS 3.1.0 released
« on: September 08, 2011, 03:22:17 pm »
Hmmm, very very interesting! It might help me understand the Lab protocol :D
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
News / Re: TI-Nspire OS 3.1.0 released
« 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
News / Re: TI-Nspire OS 3.1.0 released
« 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
News / Re: TI-Nspire OS 3.1.0 released
« 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