Automatically Turning off/on Machines When loggin in/out

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Trainguyrom

New Member
Jul 29, 2019
19
0
0
Alright, I run an FTB Unleashed server, and my computer isn't the best. In order to reduce lag (client-side) I'm thinking I need something to change the state of many machines. For example, when I log in, I'd like my non-essential farms to automatically turn off, and my ME system to turn on, since I don't need to waste power with features that are only used by players when nobody is online to use them, and farms tend to generate lag with constant block updates and changes.

One thought I've had is to use a Chatbox, I think its called, from Misc. Peripherals, although I don't know if there is a range limit for that to work (for example, if i'm thousands of blocks away, or in a different dimension) Another thought is to detect if I'm within a certain radius to turn them off, using OpenPeriheral, although again, I have no idea what the range limit is.

At this point, I'm a beginner in Computercraft, but I'm working on getting better. I would prefer not to have a pressure plate or switch, or anything like that to activate/deactivate stuff, since then its very easy to forget to turn a system on/off. If doing this system calls for a new mod, that actually isn't much of a problem, since we're already running and edited version of Unleashed.

Any input would be greatly appreciated.

-Train
 

angelnc

New Member
Jul 29, 2019
232
0
0
I'm not sure if the Chatbox emits an event, when a player logs on. The CC forum thread doesn't say it does.

You could try the Player Detector from GregTech or the Proximity Sensor from Open CC Sensors. They both detect players in a 16 block radius.
 

draeath

New Member
Jul 29, 2019
456
0
0
I generally put a switch on my final power output so I can simply turn everything off with one go. If forgetting is an issue, you're probably the kind of person who leaves the lights on all the time? :p
 

Siro

New Member
Jul 29, 2019
638
0
0
If sensors/computercraft/etc prove too complicated, there's always the brute force method of making ALL your floors out of rednet cable with pressure plates on them.
 

Trainguyrom

New Member
Jul 29, 2019
19
0
0
I'm not sure if the Chatbox emits an event, when a player logs on. The CC forum thread doesn't say it does.

You could try the Player Detector from GregTech or the Proximity Sensor from Open CC Sensors. They both detect players in a 16 block radius.


Well, we don't have Gregtech, and I doubt anyone would be happy about adding it, myself included, but the Proximity Sensor should work, although it isn't terribly optimal with the 16 block radius. I might be able to do something with MFFS, or just have my farms in a different area where it won't be rendered from my client, and chunkload them. oh well, thanks for the input.
 

angelnc

New Member
Jul 29, 2019
232
0
0
You can use multiple Proximity Sensors to increase the area.

Or you could give the Chatbox a try and see if it reacts to players logging on.
I can't test it at the moment, because I have no friends online on my server.
 

pctechmatt

New Member
Jul 29, 2019
1
0
0
Something you could do is set up a railcraft personal anchor with a timer in it that sends out occasional pulses to a normal chunkloaded section. The normal chunkloader section could have some basic redstone logic that says: "If pulses don't happen for a period of time, turn farms on." That way, if you log off, the farms will turn on. If you want, I could put together an example of what I am saying.

-First Post!
 

KingTriaxx

Forum Addict
Jul 27, 2013
4,266
1,333
184
Michigan
Unless you can set up a computer to read the list of who's currently connected and turn off the farms if the answer is Anyone, I'm not sure if there's a good way.
 

budge

New Member
Jul 29, 2019
273
0
0
If you can install Immibis' Tubestuff, there's a block called Online Player Detector which emits a redstone signal when you're online.