102 posts
Location
Alone in the dark, looking at the pretty lights with dreams of things I can not have.
Posted 13 March 2018 - 06:22 PM
Here is a simple question most of you have probably met and solved by now.
Most minecraft machines work even if the chunk they are in is unloaded. If I put fuel into an IC2 reactor or fish into a chest connected by pipes to an oven running off said reactor I can leave the chunk to be unloaded and know that the work will still be done. This is very handy because I can go off and do other things whilst my automated factory does its job.
CC Computers don't work like that. Instead they shut down when a chunk is unloaded and restart when it loads. So I can't use them or turtles in my automated complex. But at the very least I would like to use them as a toggle switch to turn the thing on and off.
So is there a way (maybe using a component from some other mod?) to allow CC computers to act like a lever that turns a redstone signal on or off and keeps it that way even if the chunk is unloaded? Basically act like a bog standard lever from the base game.
Edited on 13 March 2018 - 05:23 PM
477 posts
Location
Germany
Posted 13 March 2018 - 06:48 PM
My first Idea would be to use a CC Computer, put a sticky piston behind that which is pushing a redstone block.
Now when you want to switch you send out a short pulse from the Computer so that the block is pushed forward but not retracted.
If you want to switch back you need to send out a short pulse again so the block gets retracted.
102 posts
Location
Alone in the dark, looking at the pretty lights with dreams of things I can not have.
Posted 14 March 2018 - 08:26 AM
My first Idea would be to use a CC Computer, put a sticky piston behind that which is pushing a redstone block.
Now when you want to switch you send out a short pulse from the Computer so that the block is pushed forward but not retracted.
If you want to switch back you need to send out a short pulse again so the block gets retracted.
That might end up my only option. Luckily I have both ample redstone and slime balls in my storage.
Geothermal Power Complex - Hell is back on tracks.
7083 posts
Location
Tasmania (AU)
Posted 14 March 2018 - 08:28 AM
Most minecraft machines work even if the chunk they are in is unloaded.
Really? When did this all change? Pretty much the whole reason we have chunk loaders in various mods is because no, machines
don't run when unloaded. I suspect you've placed a loader without realising it (certain blocks from mods act as loaders despite the fact that they're not labelled as such).
That's my suggestion, by the way - just place a chunk loader from your mod of choice. What's available will depend upon the version of Minecraft you're playing with.
102 posts
Location
Alone in the dark, looking at the pretty lights with dreams of things I can not have.
Posted 14 March 2018 - 08:33 AM
Doubtful unless builcraft pipes keep the chunk loaded. What I think happens is basically that the mods figure out the result when you come back and just apply it or something like that. Do your own test. You can replicate my enviroment pretty easily. All you need is a buildcraft pump, some redstone engines and fluid pipes and a railcraft iron tank. Stick them in the Nether above the lava sea and leave. When you come back from wondering around random chunks in the overworld you will find lava in the tank as if you had been standing there.
Or hell, just get a regular oven from regular minecraft, stick some sticks in one end and fish in the other and leave to a distant chunk. When you're back the fish will be cooked.
Edited on 14 March 2018 - 07:33 AM
7083 posts
Location
Tasmania (AU)
Posted 14 March 2018 - 08:42 AM
Again, version matters here, because I've never encountered that behaviour - when chunks unload, most machines (certainly the regular Furnace and any Buildcraft stuff) have been suspended in time for me.
As mentioned, lots of things may act as chunk loaders. For example, the old Portal Gun mod basically lets you shoot chunk loaders at walls. I strongly suspect you've placed a loader you're not aware of.
Additionally, chunks around spawn (12x12) remain loaded at all times: that area doesn't need a loader.
25 posts
Posted 14 March 2018 - 10:59 AM
Bomb Bloke is right–machines don't run in unloaded chunks. There has to be a chunk loader or within the spawn chunks.
To answer your original question, you can set up your computer to run a program whenever it restarts by naming that program "startup". If you want a lever program, you can use a second file to store the state of your lever. To read and write to a file, here's the part of the fs API for it:
http://computercraft.info/wiki/Fs.open . Good luck!
102 posts
Location
Alone in the dark, looking at the pretty lights with dreams of things I can not have.
Posted 14 March 2018 - 11:29 AM
Again, version matters here, because I've never encountered that behaviour - when chunks unload, most machines (certainly the regular Furnace and any Buildcraft stuff) have been suspended in time for me.
As mentioned, lots of things may act as chunk loaders. For example, the old Portal Gun mod basically lets you shoot chunk loaders at walls. I strongly suspect you've placed a loader you're not aware of.
Additionally, chunks around spawn (12x12) remain loaded at all times: that area doesn't need a loader.
Version is 1.7.1
And unless the same chunk loading behavior around spawn translates to the nether I can find no explanation for what I am seeing. Because all I am using is:
Buildcraft:
- Redstone engine
- Fluid pipes
- Pump
Railcraft:
- Iron tank
Regular Minecraft:
- Lever
- Dirt block
- Stone brick
- Glass
- Stone slab
I can give you screenshots of my unfinished power plant to confirm.
7083 posts
Location
Tasmania (AU)
Posted 14 March 2018 - 12:35 PM
I guess you mean 1.7.10. Yeah, your machines are going to cut out if they aren't loaded there.
AFAIK the spawn chunk system only applies to the overworld. Apparently entities going through a nether portal can load the area for up to a minute, though: you could confirm how long the chunks stay active pretty easily with a computer set up to write time stamps to disk every few seconds.
2427 posts
Location
UK
Posted 14 March 2018 - 12:36 PM
I know buildcraft quarries chunk load, maybe their pump do too.
102 posts
Location
Alone in the dark, looking at the pretty lights with dreams of things I can not have.
Posted 14 March 2018 - 01:30 PM
I'll just do a simple test. I'll plop a computer next to y lava tank and run a program that counts up. See what happens after a while of mucking about in the overworld.
102 posts
Location
Alone in the dark, looking at the pretty lights with dreams of things I can not have.
Posted 14 March 2018 - 04:12 PM
Having done the test I have conclude that the chunk does indeed not stay loaded and machines indeed do stop, eventually.
I had based my previous observations on the fact that when I leave the nether and return there is slightly more lava in my tank than there used to be which indicated that something was working. But that was when I kept running back and forth as my generator was still in the overworld so I was bucketing lava around. And that would seem to confirm the hypothesis that it was indeed just the result of the nether chunk staying loaded for that extra minute after I left.
Am going to get a proper chunk loader now for infinite power. The "Workers and peasants revolutionary fervor geothermal electric plant" must work without pause!
Also, what is the latin word for hell? Geothermal just does not really fit when I am extracting lava from the nether.
3057 posts
Location
United States of America
Posted 14 March 2018 - 05:42 PM
Google translate says infernum or something similar.
102 posts
Location
Alone in the dark, looking at the pretty lights with dreams of things I can not have.
Posted 14 March 2018 - 08:39 PM
Infernothermal it is.
7083 posts
Location
Tasmania (AU)
Posted 15 March 2018 - 01:34 AM
That basically means "fire heat". How about "Infernalthermal"?