Jump to content




Mougli123's Programs


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

#1 mougli123

  • New Members
  • 6 posts

Posted 12 February 2012 - 09:05 PM

Here are the programs I've coded so far.

Master Control Terminal
Spoiler
The variable "x" is colors.[COLOR] ; to make this work, all colors are set to black, you should change this to suit your setup.
The variable "y" is [Machine] ; Replace [Machine] with the name of the machine.
The variable "z" is the side the bundled cable is on in quotes.
This code is able to control up to 30 machines at once. Referring to any machine that can be affected by a redstone current (industrialcraft, buildcraft, redpower, etc.)

Floppy Disk Lock
Spoiler
This is a simple-ish program to lock a door using the label on a floppy disk.

#2 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 13 February 2012 - 11:58 PM

What machines do you talk of?

#3 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 15 February 2012 - 05:25 PM

hey, i've been using your floppy disk lock program, and editting it a bit so that it has 2 different key cards to do two different things this is my completed code:
Spoiler
2nd code: Master computer code/admin code (credit to espen for fixing it for meh :D/>)
Spoiler
thank you espen, i will be editing my codes now so i can make a area where i have 1 master computer hidden away, and that computer can put the code on the disk :D/> prob will EVENTUALLY make a video using the codes to make them work, now to polish it more up and make messages appear when the disk it written on and such :D/>

Will be posting more things using your codes here whenever you come out with them :D/>


also, just because i wanna say it, i added a CREDITS to the keydisk lock :D/>

#4 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 15 February 2012 - 06:27 PM

@Dragon53535:
os.shutdown is a function, i.e. you need to put square brackets at the end to call it, like so:
os.shutdown()
Try to change that and see if the error still persists.

Edit: Also you have an 'end' before your 'elseif', which means the 'elseif' doesn't have a beginning.
Elseif can only be the continuation of an IF-Block.
Just remove the 'end' before the 'if' and it should be fine.

Edited by Espen, 15 February 2012 - 06:29 PM.


#5 Shade25

  • Members
  • 7 posts

Posted 20 February 2012 - 08:10 PM

There is also a comma instead of a period on line 34:
if disk,isPresent("left") == false then main1()

needs to be:
if disk.isPresent("left") == false then main1()





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users