This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Jath's profile picture

Requesting Programs be made?

Started by Jath, 02 October 2015 - 12:43 PM
Jath #1
Posted 02 October 2015 - 02:43 PM
Hey guys,

Is there a spot to request a program be made?

I'm trying to get a program that utilizes a button API to display buttons on a monitor, and when pushing the buttons, will open or close a door.

I currently have 6 advanced monitors setup with two redstone lines coming out of the top on each corner. I want to be able to open two doors that are hooked up via redstone.

Any way to do this?

Thank you.
Lyqyd #2
Posted 02 October 2015 - 03:55 PM
Moved to General.

We encourage people to make their own programs, learning along the way, rather than simply having things made for them. Therefore, there is no area set aside for program requests.
Konlab #3
Posted 02 October 2015 - 06:02 PM
Not tested, but it should work:
local side = "left"
local mon = peripheral.find("monitor")
--#put the draw-button-things here:

while true do
local event = {os.pullEvent("monitor_touch")}
--# you can make also checks here:

rs.setOutput(side,true)
sleep(5)--#replace the '5' with any number, it will wait that many seconds before closing the door
rs.setOutput(side,false)
end
Edit: not sure how much lua or cc do you know:
replace the "left" with any side where you want redstone output
Valid sides are:
"left", "right", "top", "bottom", "front", "back"
Edited on 02 October 2015 - 04:04 PM
Jath #4
Posted 02 October 2015 - 07:19 PM
I don't know much lua, however I most likely will be learning it evidently.

So I tried using another program as a reference, however it doesn't want to work it seems. I see in the computer it outputting 1 and 2 for whatever button I push, however when I look at the top of the monitor, it doesn't actually output anything.

http://pastebin.com/VrxL5Sir
http://i.imgur.com/tzBOnQo.png

Also, I would Like to have it setup so that there could be two doors or one monitor out of the same side. Is that possible, or would it need to be different sides?

As you can see, I have two doors I want to close/open.

Thank you
TYKUHN2 #5
Posted 02 October 2015 - 09:05 PM
Really does need a spot to request programs.

While it is not recommended, it can be useful for people to make the programs, especially to learn from said programs.
Jath #6
Posted 02 October 2015 - 09:58 PM
Yeah, I learn best by examples of programs made. I completely understand the whole learn it yourself part, but sometimes seeing different ways people do things makes it go off in my head like "ah, so that's something/another way I can do it"
HPWebcamAble #7
Posted 03 October 2015 - 12:45 AM
I'm trying to get a program that utilizes a button API to display buttons on a monitor, and when pushing the buttons, will open or close a door.

Talk a look at my Advanced Redstone Control Program:
https://youtu.be/o_mzKx-7dS0
Jath #8
Posted 03 October 2015 - 03:40 AM
I'm trying to get a program that utilizes a button API to display buttons on a monitor, and when pushing the buttons, will open or close a door.

Talk a look at my Advanced Redstone Control Program:
https://youtu.be/o_mzKx-7dS0

So I love how you made this program. It's pretty darn awesome and I think you did a fantastic job.

Now I know in the video it seemed pretty easy to do but was made a little over a year ago. It seems there's some issues with it?

For example, it creates ARC and configeditor directories and you can't just run rc edit without being inside configeditor. When you go into that directory and do the config, then go to the ARC directory for the program to run, it seems to fail there mainly because of not having the config.

Should be fairly easy by moving the config file over, I just wanted to let you know.
Konlab #9
Posted 03 October 2015 - 08:48 AM
I'm trying to get a program that utilizes a button API to display buttons on a monitor, and when pushing the buttons, will open or close a door.

Talk a look at my Advanced Redstone Control Program:
https://youtu.be/o_mzKx-7dS0

So I love how you made this program. It's pretty darn awesome and I think you did a fantastic job.

Now I know in the video it seemed pretty easy to do but was made a little over a year ago. It seems there's some issues with it?

For example, it creates ARC and configeditor directories and you can't just run rc edit without being inside configeditor. When you go into that directory and do the config, then go to the ARC directory for the program to run, it seems to fail there mainly because of not having the config.

Should be fairly easy by moving the config file over, I just wanted to let you know.
It is writing 1s and 2s because there is a print(y) line
It will output at the COMPUTERS top not the monitors. You cannot access redstone signal at the monitor's top.
Edited on 03 October 2015 - 06:51 AM
Jath #10
Posted 03 October 2015 - 01:26 PM
Ah, okie dokie. That makes a ton more sense. Thank you sir.