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

A lil need to know question.

Started by IndustrialLemon, 18 March 2013 - 09:17 AM
IndustrialLemon #1
Posted 18 March 2013 - 10:17 AM
Hey everyone. Im playing on CC v1.51 and I noticed that you can turn the new wired modems on and off by clicking them. Now this is nice and all but in my situation I cant have random people on my upcoming server just turning them on and off as they please.

I was wondering if anyone new if there was a way to keep them on, in code?

Any questions you have i'll be glad to answer.
Kingdaro #2
Posted 18 March 2013 - 10:51 AM
I'm pretty sure there's no way to open or close a peripheral connection from a console. That'd be like magically moving a monitor next to a computer in prior versions.

The best way to go about this would be to simply hide your wires behind walls or under the floor.
IndustrialLemon #3
Posted 18 March 2013 - 11:03 AM
Well this is nearly impossible for my situation. See I'm making crosswalk lights for traffic, and the top on has to be low enough to see. So raising it wont fix the problem. Also if I new how to add pictures to these posts besides through url I'd give you a screenshot.
Kingdaro #4
Posted 18 March 2013 - 11:13 AM
To insert pictures, click the little button, then just paste the link to your image in the URL box.

For hosting, I recommend imgur.
IndustrialLemon #5
Posted 18 March 2013 - 11:23 AM
Eh. It's giving me issues. Anyone else got any information for me?
theoriginalbit #6
Posted 18 March 2013 - 11:58 AM
Put the modem up higher than the bottom monitor… Or is it already on that one?

As Kingdaro said there is no way to stop them right clicking it.
IndustrialLemon #7
Posted 18 March 2013 - 12:23 PM
Nah thats not gonna help. Well maybe an administrator will notice this post and give dan a heads up on some new quick additions for keeping them on in code. Although isn't there some place where I can post suggestions?
oeed #8
Posted 19 March 2013 - 12:43 PM
If I understand this correctly, I would just but the modem where the user can't interact with it. Here is the suggestions forum.
Cloudy #9
Posted 19 March 2013 - 01:03 PM
Surely if it is in range where someone could turn it off, it is in range where someone could destroy it, meaning any such protection would be useless?
LuaEclipser #10
Posted 19 March 2013 - 01:38 PM
i think a while true do could solve the problem it continual checks the modem if its off, it turns on. maybe?
IndustrialLemon #11
Posted 20 March 2013 - 11:25 AM
Well my real big question is, is that is there a command to turn it on? If so this solves my problem.
Kingdaro #12
Posted 20 March 2013 - 11:49 AM
There are no commands to enable or disable peripheral connections.
IndustrialLemon #13
Posted 20 March 2013 - 11:59 AM
Alright then. Thanks everyone.