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

Better Long Distance Rednet

Started by Jackel98, 02 April 2013 - 12:54 AM
Jackel98 #1
Posted 02 April 2013 - 02:54 AM
A problem that I have noticed is that if a computer is in an unloaded chunk, then it forgets that it was running a program. I don't know if this happens to everyone, or just to me. This is a hassle if I want to use rednet repeaters, because if one isn't loaded, then none of them will work because the chain is broken.
A solution to this would be to put a file into the computer's folder that contains its position, the last program it was running, and the line it was on in the code. File shouldn't be allowed to be used by the computer, because then GPS wouldn't be of any help. Instead, when a computer sends a rednet message, it would check each computer's file to see if it is in range. Then, it would load the chunk the computer is in, or just the computer if that is possible. After that, it would have the computer continue to run its program from where it left off.
I do not know if this is a viable solution to the problem that I face, considering that by sending a rednet message, you could possibly be loading a lot of chunks. It could be a toggle-able option in the configuration.
Cranium #2
Posted 02 April 2013 - 06:23 AM
From reading this, it sounds more like you are wanting an improvement of the computers resuming, rather than an improvement to the rednet system.
I do know that Dan and Cloudy are currently working on something for resuming computers from their last state. Unfortunately, it doesn't look like it's anytime soon, but I hope it really is.
SuicidalSTDz #3
Posted 02 April 2013 - 06:26 AM
I do know that Dan and Cloudy are currently working on something for resuming computers from their last state. Unfortunately, it doesn't look like it's anytime soon, but I hope it really is.
That would be very nice.. ^_^/>
Jackel98 #4
Posted 02 April 2013 - 10:27 AM
From reading this, it sounds more like you are wanting an improvement of the computers resuming, rather than an improvement to the rednet system.
I do know that Dan and Cloudy are currently working on something for resuming computers from their last state. Unfortunately, it doesn't look like it's anytime soon, but I hope it really is.
Yes, I suppose it does look like more of a computer resuming improvement. That would be a great thing. I meant for this to be so that when you use rednet, unloaded computers would respond.
Lyqyd #5
Posted 02 April 2013 - 10:52 AM
This has been denied before, as it essentially turns each computer into a chunk loader. It is more expensive to load and unload chunks all the time than it is to keep them loaded. If this is something you need, try using a chunk loader from another mod to keep the relevant computers loaded.

Separately, seamless resumes on chunk reload are in the works, but they may be a ways off yet.
SuicidalSTDz #6
Posted 02 April 2013 - 11:12 AM
Separately, seamless resumes on chunk reload are in the works, but they may be a ways off yet.
EDIT: Hmm, thought this was a different thread.. Wouldn't be the first time :P/>

On topic: Would the resume on reloads make the mining program more reliable then?
JJRcop #7
Posted 02 April 2013 - 07:15 PM
Maybe ComputerCraft could emulate the computer being loaded but it really isn't. (Executing the programs in it even if the block isn't loaded, possibly with a value telling programs if the computer is loaded or if it is being emulated)