Plan for Ian Hardingham
by Ian Omroth Hardingham · 01/10/2002 (4:39 pm) · 6 comments
Well, after struggling with the implementation of arrays I've finally finished my first torque mini-project with Zames.
Snap is a little script which uses a two stage encoding process (huffman weighted then bit to char) to save your most useful keybinds in a small string. You can then write this string down, take it to your friend's house, and type it in and voila: no more uninverted mouse.
Not only is this a useful app, it's taught me a lot about the language: and my conclusion is that something needs to be done about the abject lack of array options.
Snap is a little script which uses a two stage encoding process (huffman weighted then bit to char) to save your most useful keybinds in a small string. You can then write this string down, take it to your friend's house, and type it in and voila: no more uninverted mouse.
Not only is this a useful app, it's taught me a lot about the language: and my conclusion is that something needs to be done about the abject lack of array options.
#2
01/11/2002 (11:16 am)
wow...that's an awesome idea. will you be putting up a tutorial on this? i really like that idea. how long is the string?
#3
01/12/2002 (7:26 am)
well, between 15 and 25 charachters usually. I was really hoping for one you could remember (the string only uses alpha numerics and + and - (to get it up to a power of two)) but considering I'm encoding 20 key actions and each action can be mapped to one of 219 different keys thats already quite good compression. The huffman encoding is done in c++ but everything else is in Torque script.
#4
03/13/2004 (6:44 pm)
#5
03/13/2004 (6:45 pm)
something intelligent about arrays
#6
03/13/2004 (6:47 pm)
blah
Torque Owner Tim "Zear" Hammock
Don't get me wrong tho - anything done with this engine and shared will improve the engine overall, if for no other reason than you are now one of those versed in the details of scripted arrays and can offer advice to others. It's the community. :)