Main Menu

GPS program troubles

Started by Bartandroid123, Feb 28, 2022, 02:31 PM

Previous topic - Next topic

Bartandroid123

So, I host a small server with computercraft and some more mods but the problem is that with every restart, the gps host program running on computer scattered around the base (all chunks are always loaded) just resets itself, forcing me to enter the coordinates and command again 4 times. Is there any way to fix this?

Erb3

Yes, you place the command inside of startup.lua.
You can read more about GPS in CC here: computercraft.info.
But basicly you make a file called "startup.lua". Inside of the file you put shell.run("gps","host",x,y,z), where you replace x,y,z with the x y z coordinates.

shell.run("gps", "host", x, y, z)
What this will do is that when the computer turn on it will run the startup.lua, then startup.lua will run the gps program with the arguments.

Hope this helps!
It's not a data breach, it's a surprise backup.