- ComputerCraft | Programmable Computers for Minecraft
- → MineRobber___T's Content
MineRobber___T's Content
There have been 23 items by MineRobber___T (Search limited from 10-February 22)
#272156 magiczockerOS
Posted by
MineRobber___T
on 22 November 2017 - 08:05 PM
in
Operating Systems
#271756 [Extremely short] No multishell & TLCO -- Kills multishell, runs normal s...
Posted by
MineRobber___T
on 11 November 2017 - 08:51 AM
in
Programs
#269247 Dash - L2drive a manual car!
Posted by
MineRobber___T
on 26 August 2017 - 01:21 AM
in
Programs
Dave-ee Jones, on 25 August 2017 - 01:12 AM, said:
There's just..something..missing..It doesn't feel right..
I KNOW! NO SOUND!! UGHHHHHH! Driving me crazy!
-snip-
I suggest adding a condition where, if speakers are attached, you play a low note (like
speaker.playNote("guitar",100,0)) continuously. That way, you get the hum of the running car.
#268995 ChenThread Image Format - Quality images on 1.8 ComputerCraft!
Posted by
MineRobber___T
on 13 August 2017 - 11:40 PM
in
Programs
"ctif.lua:38:bad argument #1 (number expected, got table)"
I'm using the latest build.
#268575 Should the wiki be updated regarding Turtles?
Posted by
MineRobber___T
on 26 July 2017 - 06:04 AM
in
Wiki Discussion
#268571 pyedit - a Python editor for CC
Posted by
MineRobber___T
on 26 July 2017 - 01:46 AM
in
APIs and Utilities
Vert3x, on 16 July 2017 - 07:58 PM, said:
Issue is, Python isn't BASIC. (the programming language OR the adjective) There are many things in Python that are special use cases.
With all that Python requires, it would be easier to fork ComputerCraft and recode all Computers to use Python instead of Lua.
#268527 WoolPrint - Print your Pixelart!
Posted by
MineRobber___T
on 25 July 2017 - 03:42 AM
in
Turtle Programs
To get:
pastebin get QWJVjBDz woolprint.lua
To use: (with Paint image X.nfp)
woolprint X.nfp
The slots are the same as the Paint sidebar. (White->Black, i.e; White in slot 1, Orange in slot 2, etc.)
#268520 Port CC to MC Pocket Edition?
Posted by
MineRobber___T
on 25 July 2017 - 12:46 AM
in
General
#268492 Editable Textfield (Persistent Value)
Posted by
MineRobber___T
on 24 July 2017 - 04:06 AM
in
Tutorials
for string data, just do:
local result = read(nil,nil,nil,data)
See the code. (https://github.com/d...a/bios.lua#L286)
#268321 Twitch Plays ComputerCraft
Posted by
MineRobber___T
on 18 July 2017 - 05:32 AM
in
General
#268273 chpal -- Palette changer for ComputerCraft 1.8 and later
Posted by
MineRobber___T
on 15 July 2017 - 09:49 PM
in
Programs
Quote
-- oh god why local imgpath = "/tmpimg"..math.random(1, 9999) local handle = fs.open(imgpath, "w") handle.write(imgstr) handle.close() local img = paintutils.loadImage(imgpath) fs.delete(imgpath)
I've submitted a PR to ComputerCraft so that that could be simplified to:
local img = paintutils.loadImage(imgstr,true)
PR here (https://github.com/d...rCraft/pull/378)
#268055 pyedit - a Python editor for CC
Posted by
MineRobber___T
on 06 July 2017 - 10:59 AM
in
APIs and Utilities
#268050 Quartz OS. True sandboxed users.
Posted by
MineRobber___T
on 06 July 2017 - 06:05 AM
in
Operating Systems
Sxw, on 23 June 2014 - 09:07 PM, said:

Also, instead of disallowing read/write on files, simply use CC's inbuilt read-only files feature.
local oldIRO = fs.isReadOnly
function fs.isReadOnly(sPath)
if isProtected(sPath) then --not sure how you do this
return true
end
return oldIRO(sPath)
end
#268020 [CC1.64+] Wool Image Printer
Posted by
MineRobber___T
on 05 July 2017 - 02:30 AM
in
Turtle Programs
#268017 [CC1.64+] Wool Image Printer
Posted by
MineRobber___T
on 05 July 2017 - 01:46 AM
in
Turtle Programs
The turtle then just sat there. It didn't move, nothing appeared on the screen.
What have I done wrong? Using latest snapshot of CC.
#267979 pyedit - a Python editor for CC
Posted by
MineRobber___T
on 03 July 2017 - 02:44 AM
in
APIs and Utilities
Features:
- Syntax highlighting
- IDLE-esque color scheme
pastebin get 8BeE5UKa pyedit
Images:

#267970 CraftOS 1.8 better colors.
Posted by
MineRobber___T
on 02 July 2017 - 06:10 PM
in
APIs and Utilities
#267819 Printerm API - Use a printer as a terminal!
Posted by
MineRobber___T
on 25 June 2017 - 11:24 PM
in
APIs and Utilities
Printerm API
Have you ever wanted to have an easy interface to a printer? (pretend you have)
Is interacting with a printer confusing? (pretend it is)
Do you want to be able to term.redirect to a printer? (pretend you do)
In that case, this API is for you!
Wrapping all functions required of a terminal object, (down to British spellings) and creating an object you can use took a while but it works (to the best of my knowledge, haven't tested fringe cases) as good as I can get it.
Example (with Printerm):
os.loadAPI("printerm")
local paperTerm = printerm.getTerm(...)
local oldTerm = term.redirect(paperTerm)
print("Testing 1,2,3")
paperTerm.endPage()
term.redirect(oldTerm)
Example (without):
local printer = peripheral.wrap(...)
printer.newPage()
printer.write("Testing 1,2,3")
printer.endPage()
The benefits of this API don't become apparent in this example. Let's say you have a program that displays info to a screen. (Lots of info, like the status of all machines in your base.) Using printerm, you get the benefit of auto-word-wrap (print() and write()) as well as the convenience of a printout.
How to get the API (link):
pastebin get GzSunvu9 printerm
Documentation is here.
#267769 Packman - A package management tool
Posted by
MineRobber___T
on 23 June 2017 - 02:26 AM
in
Programs
#267763 [SHORT] How to get the latest and greatest in ComputerCraft!
Posted by
MineRobber___T
on 22 June 2017 - 07:48 PM
in
Tutorials
CrazedProgrammer has graciously provided an automatic build server for ComputerCraft at http://cc.crzd.me. To get the main build, pick the first option. If you wish to play on later versions (i.e; 1.11.2 and 1.12) pick their respective builds. ("Update to 1.11.2" and "[WIP] Update to 1.12") When you click on the big link, you will get a jar file. Put that jar file into your mods folder, start up Forge, and enjoy!
Note from SquidDev about reporting bugs:
Quote
#267499 How can I encrypt a string with a MD5 hash?
Posted by
MineRobber___T
on 09 June 2017 - 11:39 PM
in
Ask a Pro
Sewbacca, on 09 June 2017 - 10:18 PM, said:
KingofGamesYami, on 01 June 2017 - 03:33 PM, said:
2) MD5, as a hash, is irreversable
3) MD5 is considered insecure and can be broken in under a second.
I suggest you find an encryption algorithm such as AES or stick to sha256.
Brute-force attacks.
#267497 CCEmuRedux - ComputerCraft Emulator Redux
Posted by
MineRobber___T
on 09 June 2017 - 11:06 PM
in
General
#267229 The early stages of my Computercraft emulator
Posted by
MineRobber___T
on 26 May 2017 - 01:13 AM
in
Media
Admicos, on 18 May 2017 - 07:33 AM, said:

Now I need to do key combinations, but I think that will need seperate files for each keyboard layout unless I can find a way to do it easier.
If I'm not mistaken, you just need to keep track of keydown and keyup events. on a keydown event where a status key (shift,ctrl,alt,etc.) is pressed, set a corresponding bool and when they are released, set the bool to false. If I knew where input was being handled, I could probably submit a PR to do this myself.
EDIT: using a test program, I found the key events for modifier keys:
Control key = 29
Alt key = 56
Shift key = 42
if you queue said events, programs should run without a hitch.
- ComputerCraft | Programmable Computers for Minecraft
- → MineRobber___T's Content


