- ComputerCraft | Programmable Computers for Minecraft
- → crazyguymgd's Content
crazyguymgd's Content
There have been 139 items by crazyguymgd (Search limited from 30-March 23)
#125551 Help with using a variable as a table key
Posted by crazyguymgd on 12 June 2013 - 12:33 AM in Ask a Pro
#125322 [miscPeripherals]help with the smart helmet
Posted by crazyguymgd on 10 June 2013 - 08:04 PM in Peripheral Help and Discussion
m = peripheral.wrap("side") m.send("smartHelmet","message")
#80990 Fs problems...
Posted by crazyguymgd on 27 January 2013 - 05:38 PM in Ask a Pro
#80977 Turtle program to assist hollowing out structures (specifically natural struc...
Posted by crazyguymgd on 27 January 2013 - 04:24 PM in Ask a Pro
xx t y1 == y2 z1 < z2 forward x x t y1 < y2 z1 < z2 forward, up tx x y1 > y2 z1 < z2 down, forward x xt y1 < y2 z1 == z2 up tx x y1 > y2 z1 == z2 down
If I think of any others, I'll add them and if I think of any mistakes, I'll fix them. But from what you say you've done so far, I think you might be able to figure out how to use these rules to get the turtle to traverse the inside of the shell. If not, I'm working on testing this right now because I think this is a pretty cool problem so I can help you out based on what I discover in my tests.
#80897 Fs problems...
Posted by crazyguymgd on 27 January 2013 - 11:05 AM in Ask a Pro
SethShadowrider, on 27 January 2013 - 10:48 AM, said:
local sName = fs.open("newAcc", "a") local spName = sNAme.readLine() sName.close() print("Welcome"..spName)is there any fix for this?
second line you have sNAme instead of sName
#80667 Read Certain File Areas?
Posted by crazyguymgd on 26 January 2013 - 04:09 PM in Ask a Pro
#80665 Read Certain File Areas?
Posted by crazyguymgd on 26 January 2013 - 04:05 PM in Ask a Pro
TheOriginalBIT, on 26 January 2013 - 03:12 PM, said:
local function readLine( path, line ) local handle = fs.open( path, "r" ) local line for i = 1, line do line = handle.readLine() end handle.close() return line endobviously this could be modified to ignore particular lines too. or you could modify it to read a subset of lines, but they would need to go into a table.
Although I would probably use two unique variable names instead of line twice
#80664 Then is there, but it still gives me errors
Posted by crazyguymgd on 26 January 2013 - 04:01 PM in Ask a Pro
TheOriginalBIT, on 26 January 2013 - 03:54 PM, said:
crazyguymgd, on 26 January 2013 - 03:44 PM, said:
if input == "home" do welcomeS() elseif input == "RA" do redstoneAct() elseif input == "exit" do exit() end
Same thing for all of your if's and the else's with a condition after them in the rest of your code.
if ... do ? o.O I think you mean if ... then
Dam thanks for the catch. My point still stands though, use ifelse!
#80663 Computer is displaying invalid thing.
Posted by crazyguymgd on 26 January 2013 - 03:59 PM in Ask a Pro
P4isHere., on 26 January 2013 - 03:45 PM, said:
It might seem a little too advanced but this is the direction you should be going. Learning to use tables will dramatically increase the quality of your programs.
And the missing top line is a typo, as TheOriginalBIT said
#80661 SelectOS v.1.4.4 Alpha [ Colours ] [ Programs ]
Posted by crazyguymgd on 26 January 2013 - 03:54 PM in Operating Systems
#80657 Then is there, but it still gives me errors
Posted by crazyguymgd on 26 January 2013 - 03:44 PM in Ask a Pro
if input == "home" then welcomeS() elseif input == "RA" then redstoneAct() elseif input == "exit" then exit() end
Same thing for all of your if's and the else's with a condition after them in the rest of your code.
--Edit fixed my own dam typos.
#77463 [1.3?][SMP]Turtle - turtle.drop() causes items to duplicate.
Posted by crazyguymgd on 20 January 2013 - 08:54 AM in Bugs
#77461 Selecting problem
Posted by crazyguymgd on 20 January 2013 - 08:48 AM in Ask a Pro
mibac138, on 20 January 2013 - 08:34 AM, said:
local function blockbelow() slot = 1 while turtle.getItemCount(slot) == 0 do slot = slot + 1 turtle.select(slot) end turtle.placeDown() end
@Edit Or no the best code :X
If the inventory is empty, slot will increase until it's 17, then you will try to select slot 17 and cause an error. So before selecting slot, check if it is 17 and call a go back and get items from chest function or something like that.
#77385 Rednet messenger
Posted by crazyguymgd on 20 January 2013 - 06:44 AM in Ask a Pro
#77194 Disks
Posted by crazyguymgd on 19 January 2013 - 11:55 PM in Ask a Pro
#77186 Disks
Posted by crazyguymgd on 19 January 2013 - 11:47 PM in Ask a Pro
TheOriginalBIT, on 19 January 2013 - 11:43 PM, said:
crazyguymgd, on 19 January 2013 - 11:36 PM, said:
#77180 Disks
Posted by crazyguymgd on 19 January 2013 - 11:36 PM in Ask a Pro
#77179 Error for print
Posted by crazyguymgd on 19 January 2013 - 11:31 PM in Ask a Pro
#77172 Disks
Posted by crazyguymgd on 19 January 2013 - 11:20 PM in Ask a Pro
TheOriginalBIT, on 19 January 2013 - 08:27 PM, said:
grand_mind1, on 19 January 2013 - 08:22 PM, said:
#76599 Minesweeper v1.7! (advanced computer/monitor only)
Posted by crazyguymgd on 18 January 2013 - 08:43 PM in Games
#76594 Your preferred server hosting solution (Non-minecraft)
Posted by crazyguymgd on 18 January 2013 - 08:39 PM in General
zekesonxx, on 18 January 2013 - 11:47 AM, said:
Should find out tomorrow what my sponsors choose.
TipTricky, on 18 January 2013 - 06:04 PM, said:
What would you like to know?
#75801 Your preferred server hosting solution (Non-minecraft)
Posted by crazyguymgd on 17 January 2013 - 12:15 PM in General
I also added RamNode to the list just a few hours before reading your response zekesonxx so it's nice to know there is support in that direction as well.
Once the decision is made on who we use, I will be doing most of the setup on my own but I'm sure there will be many questions, which I will post in this thread.
Thanks again guys.
#75546 [1.48] YellowSquare Game
Posted by crazyguymgd on 16 January 2013 - 10:40 PM in Programs
RunasSudo, on 16 January 2013 - 09:24 PM, said:
mrSLIMEguy, on 16 January 2013 - 09:11 PM, said:
table.insert(tableOfOldSquares, {newSquareX, newSquareY}) -- Later (in a generate-square-coordinate fuction) while true do -- Generate newSquareX, newSquareY for i = 1, #tableOfOldSquares do local oldPos = tableOfOldSquares[i] if oldPos[1] ~= newSquareX or oldPos[2] ~= newSquareY return newSquareX, newSquareY end end endIt just keeps generating squares until one of them is different. You might run into problems when the board is full though.
Exactly what I wanted. New pastebin to try that part out?
#75523 Your preferred server hosting solution (Non-minecraft)
Posted by crazyguymgd on 16 January 2013 - 08:58 PM in General
#74687 Create an OS tutorial
Posted by crazyguymgd on 15 January 2013 - 07:47 AM in Ask a Pro
It's a two part series, here's the first one.
- ComputerCraft | Programmable Computers for Minecraft
- → crazyguymgd's Content