This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
rockymc's profile picture

Roc's Programs

Started by rockymc, 14 February 2012 - 07:59 PM
rockymc #1
Posted 14 February 2012 - 08:59 PM
Keycode - Version 0.1
SpoilerKeycode is a program that detects what keycode belongs to the key you pressed. e.g: I pressed 1 (not numpad) and it showed Keycode is: 2. Very useful for GUI stuff.
To install, simply put the file keycode on /.minecraft/mods/ComputerCraft/lua/rom/programs/ and you're good to go.

Download:


Slow Write - Version 0.1
SpoilerEver wanted to slow write something, and you couldn't? Well, now you can! With my new function in TextUtils API (thanks Kaleb702 for helping me!), you can write the lines like slow print does!
To install, put the file textutils on /.minecraft/mods/ComputerCraft/lua/rom/apis/ and it's done.

Usage: textutils.slowWrite( sText )


Download:


Roc Install - Version 0.2
SpoilerRoc Install is just like cc-get. It needs HTTP API enabled to work.

Download:

WiTur - Version 0.1
SpoilerWiTur stands for Wireless Turtle. You can control them with the computer. It commands all Turtles.
Instructions are on README file.

[media]http://www.youtube.com/watch?v=C01d1YU4zT8[/media]

Download:

If you have any questions or feedback, comment on
It's my blog.
FuzzyPurp #2
Posted 14 February 2012 - 09:08 PM
..if you have redworks, you don't need this :)/>/>
baseball435 #3
Posted 14 February 2012 - 09:47 PM
Or you can just use this picture ;P

http://img87.imageshack.us/img87/5476/keyboardt.png
Espen #4
Posted 14 February 2012 - 09:52 PM
Or you can just use this picture ;P

http://img87.imagesh...6/keyboardt.png
It's missing quite a few key codes.
This here is an exhaustive list and even includes the mouse button codes: http://www.minecraft.../wiki/Key_Codes
I don't know if the mouse buttons are supported by computercraft, though.
Nope, just made a quick test. The mouse buttons are not throwing any measurable events.
Edited on 14 February 2012 - 08:54 PM
FuzzyPurp #5
Posted 15 February 2012 - 05:17 AM
Or you can just use this picture ;P

http://img87.imagesh...6/keyboardt.png

Yea i noted in IRC these don't have all the commands they getkeycode would actually return values for which are useable in LUA/CC such as the arrows keys 211 or something off the top of my head.
rockymc #6
Posted 15 February 2012 - 04:01 PM
As soon as I have time, I'll edit it and publish the other program.
rockymc #7
Posted 16 February 2012 - 08:00 PM
New programs!
rockymc #8
Posted 19 February 2012 - 08:31 PM
Took off from adf.ly.
luza #9
Posted 19 February 2012 - 08:38 PM
Why did u put local tArgs = { … } in your code?
Is it even possible to load an API with arguments?
rockymc #10
Posted 19 February 2012 - 08:40 PM
Why did u put local tArgs = { … } in your code?
Is it even possible to load an API with arguments?

It's the original TextUtils API. It was there.
rockymc #11
Posted 19 February 2012 - 09:27 PM
Now using bit.ly links.
EDIT: More programs!
rockymc #12
Posted 25 February 2012 - 11:50 PM
Updated to work on 1.3.
rockymc #13
Posted 28 February 2012 - 04:51 PM
Added Wireless Remote Control Turtle via Wi-Fi.
Liraal #14
Posted 28 February 2012 - 05:45 PM
does it work in the background?
rockymc #15
Posted 28 February 2012 - 05:53 PM
does it work in the background?
What?
Liraal #16
Posted 28 February 2012 - 06:01 PM
rednet control. can you do other things with the turtle and control it wireless regardless of that?
trepnick #17
Posted 20 April 2012 - 07:45 AM
just wondering… would it be ok if i fork this on github and post it on cc-get? i'd like to do some customization for online multiplayer, as well as finer control over the turtles, and possibly a feedback system where turtles scan the blocks around them. First thing is setting them up to only respond to a specific computer, though.
Wolvan #18
Posted 20 April 2012 - 12:02 PM
I made a keycode program and a wireless controlled turtle program to! Nice work though. Simple compact code :)/>/>
fmra #19
Posted 11 June 2012 - 06:14 PM
Dropbox - 404 for Keycode and Slow write. Didn't try the other ones. Are these no longer posted?