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

GPS Locate on Startup of Game

Started by DARKHAWX, 21 December 2012 - 04:18 PM
DARKHAWX #1
Posted 21 December 2012 - 05:18 PM
AS most people know, when you re-log with some computers acting as GPS Hosts you have to restart them for it to work again. My question is: Is there way so that when I log in, all of my GPS Hosts start working again, or do I have to start them manually? I really hope there is a way.

Any help appreciated.

- DARKHAWX
Luanub #2
Posted 21 December 2012 - 05:23 PM
Just make a startup file on the computer and put this in it.


shell.run("gps","host","x","y","z">

Replace x y z with the comupters coordinates
DARKHAWX #3
Posted 21 December 2012 - 05:32 PM
Just make a startup file on the computer and put this in it.


shell.run("gps","host","x","y","z">

Replace x y z with the computers coordinates

I know how to do that, what I'm saying is that every time you reload the world, its shuts down all of the computers in that world. So I'm asking is there a way to boot the computer whenever you load up the world. For example: I step on a pressure plate connect to the computer and it activates the startup script in the computer.
Lyqyd #4
Posted 21 December 2012 - 06:03 PM
If the computer is on when the chunk is unloaded, it'll reboot when the chunk is loaded.