Auto-Restart computers after a Server restart?
#1
Posted 18 January 2016 - 07:56 PM
I own a server which is Highly reliant on computercraft. And if a chunk unloads, the computer get's unloaded aswell. However, in my custom modpack I have
Railcraft which provides World anchors so that's not a problem.
But I still have one Problem:
If i restart the Minecraft Server, all chunks get forcidly unloaded. Meaning all PC's turn off.
That wouldn't be too much of a problem if the PC's would turn on as soon as a chunk loads. But that's not tha case, so here is my question:
Is it possible to turn on computers as soon as a chunk gets loaded? Otherwise I could scrap the Internet I am working on since I would have to
open up the streets everytime to restart all routers etc.
Greetings
Obby
#2
Posted 18 January 2016 - 08:06 PM
#3
Posted 18 January 2016 - 08:06 PM
#4
Posted 18 January 2016 - 08:13 PM
EDIT: I am using CC 1.75. Forgot to put that in so here ya go.
@KingodGamesYami just using the normal "stop" command. (I host the server on my own PC/Server but IDK what IIRC is/means.)
Edited by MrObsidy, 18 January 2016 - 08:18 PM.
#5
Posted 18 January 2016 - 08:28 PM
You can use an autonomous activator if you have thermal expansion installed
(I'd use both, they you only have to make one auto-activator)
Edited by Lupus590, 18 January 2016 - 08:28 PM.
#6
Posted 18 January 2016 - 08:31 PM
EDIT: Semi-Worked. So it did turn all computers, but only under these Circumstances:
1. They had to be connected as a Peripheral,
2. They could only fire up one "Wire-Tree."
Solve:1: Oh well, turn everything to Peripheral Mode.
Solve:2: Well, See, My network has routers and repeaters, so unfortiounately no fix for that!
EDIT #2:
A "wake on lan that supports routers inbetween two trees" would work just fine as well, so I just set up a pc at my base, boot it up and done.
But Like I said there is no WoL out there that fits my requirements :/. Any Ideas?
EDIT #3 (I overedited this post, ikr):
Edited by MrObsidy, 18 January 2016 - 09:03 PM.
#7
Posted 18 January 2016 - 09:32 PM
--#startup file
shell.run("on")
shell.run("repeat")
Edited by Lupus590, 18 January 2016 - 09:34 PM.
#8
Posted 19 January 2016 - 05:56 AM
#9
Posted 19 January 2016 - 08:48 AM
or look into the parallel api
Edited by Lupus590, 19 January 2016 - 08:49 AM.
#10
Posted 19 January 2016 - 12:01 PM
Not a bad Idea. I will probably just take "on" and take the GUI bits out so it starts every avaiable computer and thats it!EDIT:I have an Idea. On top of every normal router, I put a reguar pc solely for turning on the other pcs!
Edited by MrObsidy, 19 January 2016 - 12:02 PM.
#11
Posted 19 January 2016 - 01:59 PM
LDDestroier, on 19 January 2016 - 01:50 PM, said:
Lupus590, on 19 January 2016 - 08:52 AM, said:
Done. It's in the config (which I should make more obvious in the menu).
To have a program run on startup, set 'startupProg' to the path of the file (with arguments like "less -d butt -u http://pastebin.com/R4DKXbzm") in the config file ('/.on_conf').
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











