Jump to content




Refinery Control problem


  • You cannot reply to this topic
23 replies to this topic

#21 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 28 September 2012 - 11:44 PM

Instead of having several if statements, you can use one if, as many elseif's as you want, and only one end. This is much easier for coding.
As for the power, you can only output a maximum of six sides. If you have RedPower installed(another mod), you can use bundled cable to output up to 16 different signals on each side.

#22 NIN3

  • New Members
  • 57 posts
  • LocationEverywhere.

Posted 28 September 2012 - 11:46 PM

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.

#23 mttasch1

  • Members
  • 10 posts

Posted 28 September 2012 - 11:50 PM

Well, I definitely have a better understanding of Computercraft now :P/>. This was my first big project, so thank you guys for your help!

#24 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 28 September 2012 - 11:52 PM

Always glad to help. Feel free to ask any questions here. There are no stupid questions, unless you didn't search for the answer first.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users