Jump to content




RedGates 1.2.1 - easy to make, compact redstone gates for you


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

#1 M4sh3dP0t4t03

  • Members
  • 255 posts
  • LocationGermany

Posted 14 April 2013 - 11:30 PM

I made a simple program for computers that is able to act like some kinds of redstone gates.

You can get it with:
pastebin get 2g4pAN2U RedGates

Features:
Spoiler
Screenshots(outdated):
Spoiler
changelog:
Spoiler

Upcoming features:
-more gates
-(maybe in the future) combine gates (not sure if i am good enough in lua to do that)
-possibility to add own gates in the program
-maybe synchronized clocks over rednet
-simulate inputs

If you find bugs or have tips for me to do this better feel free to comment :)

#2 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 15 April 2013 - 01:48 AM

There are 16 gates and you can edit it to work with redstone, top and bottom for the inputs and the others for a binary selector of what gate to use

#3 M4sh3dP0t4t03

  • Members
  • 255 posts
  • LocationGermany

Posted 15 April 2013 - 02:11 AM

View Posturielsalis, on 15 April 2013 - 01:48 AM, said:

There are 16 gates and you can edit it to work with redstone, top and bottom for the inputs and the others for a binary selector of what gate to use
and where should the outputs be?

#4 Symmetryc

  • Members
  • 434 posts

Posted 15 April 2013 - 02:32 AM

You might want to make it so that you can set where the inputs/outputs are, but overall, nice program!


#5 M4sh3dP0t4t03

  • Members
  • 255 posts
  • LocationGermany

Posted 15 April 2013 - 02:35 AM

View PostSymmetryc, on 15 April 2013 - 02:32 AM, said:

You might want to make it so that you can set where the inputs/outputs are, but overall, nice program!
i am working on that

Edit: impleted it in 1.01
Edit 2: does anyone know how to make the program quit if you press a key? i tried it with some of the code in the tutorials on the wiki, but then it did nothing anymore until i pressed a key

#6 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 15 April 2013 - 04:53 AM

View PostKingOfNoobs, on 15 April 2013 - 02:35 AM, said:

-snippy snip-
Edit 2: does anyone know how to make the program quit if you press a key? i tried it with some of the code in the tutorials on the wiki, but then it did nothing anymore until i pressed a key

You need to run your program in parallel (waitForAny) with key detection.

Example:

function f1()
  while true do
    print("Lol, i'm runnin\'")
    sleep(1)
  end
  return
end

function f2()
  e = nil
  while e ~= "key" do
    e = os.pullEvent("key")
  end
  return
end

parallel.waitForAny(f1, f2)
return


#7 M4sh3dP0t4t03

  • Members
  • 255 posts
  • LocationGermany

Posted 15 April 2013 - 05:02 AM

Thanks for the help! I will use that in a new version that I will make tomorrow if I have time for that

#8 M4sh3dP0t4t03

  • Members
  • 255 posts
  • LocationGermany

Posted 16 April 2013 - 05:23 AM

hello, i just made an update with wireless redstone, but its crashing every time i tried to use it. I dont know very much about rednet so could you help me out with this, please?
The code of the beta version:
Spoiler
edit : i have figured out what i did wrong and fixed it
edit 2: update 1.1 is out now, which contains this

#9 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 22 April 2013 - 03:53 PM

Seems cool

#10 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 11 May 2013 - 11:20 AM

with 16 options, you can use 4 wires for the options nad 2 for the redstone inputs and when the inputs are off, output the result





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users