Posted 16 September 2012 - 11:14 PM
Hi
Im new to computercraft side of programming, and ive spent years trying to learn to program (irl) but its just something i cant seem to comprehend… ontop of that i cant get my head around the in game gui for writing a program… so im asking one of you smart people that can do the programming for help :P/>/>
basically, im running in tekkit (latest recomended build) and i want to make myself a gateway. i have the wiring sorted out, its bundled cable from the back of the computer and that then splits off into red and blue (colours dont matter) the red cable opens my gate and the blue cable closes the gate. the gate is planned to be 3 blocks wide and is a 2 part gate with each side only needing to open 2 blocks away from eachother. i would like to enter a code to open the gate, and not need a code to close the gate, kind of like a menu that asks if i want to open or close the gate, when close is selected, it forgoes the password screen and closes the gate. when opening the gate it asks for a password. it needs to pulse twice and there be aproximately a 7 tick delay between the pulses. is this doable? :/ i just can't get my head around the coding :)/>/> i think its a case of i dont know where to start, and i dont understand the functions… i couldnt even make a hello world program earlier…
many thanks in advance
edit. i also couldnt see anything that was quite what i was after, i didnt want to throw something in thats written for a slightly different role that would just end up throwing a spanner into the works if i came to finally get my head around coding in the future and expand on stuff…
Im new to computercraft side of programming, and ive spent years trying to learn to program (irl) but its just something i cant seem to comprehend… ontop of that i cant get my head around the in game gui for writing a program… so im asking one of you smart people that can do the programming for help :P/>/>
basically, im running in tekkit (latest recomended build) and i want to make myself a gateway. i have the wiring sorted out, its bundled cable from the back of the computer and that then splits off into red and blue (colours dont matter) the red cable opens my gate and the blue cable closes the gate. the gate is planned to be 3 blocks wide and is a 2 part gate with each side only needing to open 2 blocks away from eachother. i would like to enter a code to open the gate, and not need a code to close the gate, kind of like a menu that asks if i want to open or close the gate, when close is selected, it forgoes the password screen and closes the gate. when opening the gate it asks for a password. it needs to pulse twice and there be aproximately a 7 tick delay between the pulses. is this doable? :/ i just can't get my head around the coding :)/>/> i think its a case of i dont know where to start, and i dont understand the functions… i couldnt even make a hello world program earlier…
many thanks in advance
edit. i also couldnt see anything that was quite what i was after, i didnt want to throw something in thats written for a slightly different role that would just end up throwing a spanner into the works if i came to finally get my head around coding in the future and expand on stuff…