- ComputerCraft | Programmable Computers for Minecraft
- → NIN3's Content
NIN3's Content
There have been 55 items by NIN3 (Search limited from 10-February 22)
#35193 need a pasword/keycard program
Posted by
NIN3
on 28 September 2012 - 11:48 PM
in
APIs and Utilities
Move this too http://www.computerc...m/14-ask-a-pro/ And then we can all add our ideas to the pot for you.
#35191 Refinery Control problem
Posted by
NIN3
on 28 September 2012 - 11:46 PM
in
Ask a Pro
dimitriye98, on 28 September 2012 - 11:16 PM, said:
I'm not making up the no break thing. That's what they teach you in programming class in school. GOTO, break, and continue make code difficult to read and become huge problems if you ever work in a collaborative project.
Why are you so anti-break? I've tryed it, ive never really liked it, but I wouldent run around the forums nay saying it. Your teacher may have told you that its non proper coding, but then when your learning some times the easyest way is the best. Just like protecting from from Control+T. Everyone puts pull.event = pullevent raw (not quite how its written) But no one uses pcall(), which is in my opinion, a better and more controlled alternitive.
(Im not saying pcall() is the be all end all eather)
On topic, it seams im late to the show and have nothing really to add.
#34945 Fill program (measures a space and fills it in)
Posted by
NIN3
on 28 September 2012 - 01:29 AM
in
Ask a Pro
Ha1luciNate, on 28 September 2012 - 12:14 AM, said:
I have the program done, the issue that I am having is getting the turtle oriented before it starts measuring...
I want to make it foolproof so that no matter what corner you put it in, facing the wall, not facing the wall, it will turn until it is in the correct position and start measuring the room (clockwise)
The turtle should be facing forward, with the wall on its left.
I have been trying this:
Let me illustrate:
-insert pictures NIN3 cant see-
I want to make it foolproof so that no matter what corner you put it in, facing the wall, not facing the wall, it will turn until it is in the correct position and start measuring the room (clockwise)
The turtle should be facing forward, with the wall on its left.
I have been trying this:
function whereami() while turtle.notdetect() do ?? end while turtle.detect() do turtle.turnLeft() end whereami()
Let me illustrate:
-insert pictures NIN3 cant see-
Ok, so assuming that your turtle is in the middle of a perfectly square room, why not just make sure its in the corner? oh well...
terriblevari = 1 function findCorner() turtle.turnLeft() while terriblevari==2 do wallfound2 = turtle.detect() if wallfound2 == true then do terriblevari = 3 turtle.turnLeft() else turtle.forward() end --Im not sure if this is enough ends, you would have to check to make sure.... function findWall() while terriblevari==1 do wallfound = turtle.detect() if wallfound == true then do terriblevari = 2 findCorner() else turtle.forward() end --The inverse is true to, this could be to many.... end
I hope this is right, Im not on a computer with computercraft on it atm...
#34729 Password stealing program
Posted by
NIN3
on 27 September 2012 - 02:24 AM
in
Programs
"Please give me credit and let me know if you are using this for anything major."
What in the world could I use this for that could really be "major"? I rather dislike this program, since all it really apears to be is a malious attempt to steal others passwords on a minecraft server. I would call that a breach of trust. Not that I would be dumb enough to enter my pass word in the first place
[/rant]
What in the world could I use this for that could really be "major"? I rather dislike this program, since all it really apears to be is a malious attempt to steal others passwords on a minecraft server. I would call that a breach of trust. Not that I would be dumb enough to enter my pass word in the first place
[/rant]
#32243 Change command Ctrl+T
Posted by
NIN3
on 16 September 2012 - 07:29 PM
in
Ask a Pro
hego555, on 16 September 2012 - 07:04 PM, said:
I am guessing you just copied someones code and didnt bother to really understand it!
Take smaller steps and learn the language a little better!
Take smaller steps and learn the language a little better!
#31406 [first] basic turtle door
Posted by
NIN3
on 11 September 2012 - 10:53 PM
in
Turtle Programs
Um, Did you atually try this code? I see it sets 3 functions, but never calls any of them......
Just saying, dont listen to my rambling.
Just saying, dont listen to my rambling.
- ComputerCraft | Programmable Computers for Minecraft
- → NIN3's Content


