Jump to content


NIN3's Content

There have been 55 items by NIN3 (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#42664 Error: index.lua :58: 'end' expected (to close 'if' at line 30)

Posted by NIN3 on 21 October 2012 - 02:27 AM in Ask a Pro

Best I can say is that this line
if menustatus == 1 then
if pad:cross() then
dofile("Game.lua")

Is missing 2 ends



#38864 My First Airship [WIP]

Posted by NIN3 on 10 October 2012 - 10:57 PM in Programs

Neat, cant wait to see it when its all built.



#38055 Im in too Deep! Wireless client(s), Wireless input/ bundled output server

Posted by NIN3 on 08 October 2012 - 03:39 PM in Ask a Pro

Dont forget, you can always use wirless chicken bones. Its a mightly big easyer to set up, but lacks the password protection....



#37035 ComputerCraft 1.43 has been released!

Posted by NIN3 on 05 October 2012 - 01:16 AM in General

yay, cant wait to try it!



#35790 Password Lock Code: What's wrong with THIS one?

Posted by NIN3 on 30 September 2012 - 02:59 PM in Ask a Pro

Is there a space bettween print and the ("words")? In your orriginal code there is. You cant do that(last time I cheaked). remove the space.



#35789 The computer have a black screen

Posted by NIN3 on 30 September 2012 - 02:57 PM in Bugs

Bonjor, can you give us a wee bit more information? Are you running a program? Or just opening up the computer terminal?



#35339 Password door help!

Posted by NIN3 on 29 September 2012 - 01:08 PM in Ask a Pro

Well, As far as I know, there can be no space bettween print and the ()
print ('PASSWORD REQUIRED') is wrong
print('PASSWORD REQUIRED') is right

Also, doesnt it have to be "lol" instead of 'lol'?



#35197 How to add up BundleCable outs on one side?

Posted by NIN3 on 28 September 2012 - 11:53 PM in Ask a Pro

Its rather easy, atually.
redstone.setBundledOutput("epic side goes here", colors.blue+colors.red)

I think you can replace the colors.stuff+colors.morestuff
with variables if you do please.



#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

View Postdimitriye98, 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.
Ok, im sorry here, but I have to get my 2 bits in.

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

View PostHa1luciNate, 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:

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]



#34368 How to register >Ctrl T< unusable.

Posted by NIN3 on 25 September 2012 - 10:36 PM in Ask a Pro

You can also use pcall(), but thats harder to set up and use. I like it better myself.



#33076 redstone counter Made andcoded by mysticT

Posted by NIN3 on 21 September 2012 - 01:41 AM in Programs

You really didnt need to post this, nor did you need to double post it. The script is not really spectacular, and its really misticTs to post; not to mention that most of the coders who are good at lua can replicate this.



#32499 How to Create Real-Time Reactor Values

Posted by NIN3 on 18 September 2012 - 03:28 AM in Ask a Pro

We would love to see your code, it helps alot.

May I segest puting
sleep(o.5)
Into your while true do loop?



#32243 Change command Ctrl+T

Posted by NIN3 on 16 September 2012 - 07:29 PM in Ask a Pro

View Posthego555, 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!
Not everyone googles "password door" and copy pastes it into there computers. I did this on my first door too, not realizing there was no other way to open it.



#31609 Rednet Send Turtle Data [Error]

Posted by NIN3 on 13 September 2012 - 03:22 AM in Ask a Pro

Can you give us the exact code then? It would appear as if you have other parts...
Also, do you have a error code with a line number?



#31602 Rednet Send Turtle Data [Error]

Posted by NIN3 on 13 September 2012 - 02:37 AM in Ask a Pro

If your using
turtle.getItemCode(1)= slot1
Then you need to turn it around to
slot1 = turtle.getItemCode(1)

Hope it works :)/>
EDIT: fixed crap color codes.....



#31434 lua into non lua program

Posted by NIN3 on 12 September 2012 - 02:30 AM in Ask a Pro

My best guess of translation:
"Can someone please tell me how to use 2 programs that are part of the programs list, that I have written?"
Enter the name of the program you made, and it will run.

Sorry if my translation is wrong.



#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.



#31209 REDNET ICBM LAUNCHER NOT FUNCTIONING

Posted by NIN3 on 11 September 2012 - 02:24 AM in Ask a Pro

So I ask, how far from the sending computer, to the obsidian tower? If you move closer does it work?



#31202 REDNET ICBM LAUNCHER NOT FUNCTIONING

Posted by NIN3 on 11 September 2012 - 01:01 AM in Ask a Pro

So can you break it down any? can you make the towner save an out put (like, output redstone should it get the message)
and see if that makes it work?



#31195 [Question] detect a redstone input

Posted by NIN3 on 11 September 2012 - 12:15 AM in Ask a Pro

Erm, thats testBundledImput..... I think your confused, testBundledOutput() does not exsist.



#31194 Can't terminate programs [solved]

Posted by NIN3 on 11 September 2012 - 12:09 AM in General

View PostLettuce, on 11 September 2012 - 12:01 AM, said:

Did you hold it down for a few seconds? You don't just tap them.

*edit:
NIN3 and I posted at the same time. :D/>
:D/> Thats where the NIN in NIN3 comes from, NINja's...... :)/>

(off topic post is off topic, but least the problem should be solved....)



#31192 REDNET ICBM LAUNCHER NOT FUNCTIONING

Posted by NIN3 on 11 September 2012 - 12:08 AM in Ask a Pro

Can you make the programs run on each computer? Do they have motums? We need more info, and we need more error codes.