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

gps tower

Started by rick3333, 23 December 2012 - 02:01 PM
rick3333 #1
Posted 23 December 2012 - 03:01 PM
hi I am new to the rednet API.
I am wondering how do you make a GPS tower?
please send and screenshots or a GPS code(remember to give credit to the owner of the code if you did not make the code)
OmegaVest #2
Posted 23 December 2012 - 03:36 PM
… Well, first things first, make sure you know about F3 coordinates.

Then, just load 4 computers (with modems, of course), with this program, and name said program startup.


pos = {
   x = ##,
   y = ##,
   z = ##
}   --  Where ## is the x, y and z coordinates of the computer terminal.

shell.run("gps", "host", pos.x, pos.y, pos.z)


Then, just make sure you have 3 unique Xs, Ys and Zs. If you want to see how it's done, go check out DireWolf20 on youtube. His second Server Play season makes use of it around episode 70, if I remember correctly. Other than that, just put it up REEEEEEAAAAAALLLLLYYYYY high. Sky limit works best, but however high you want it generally okay.




EDIT: ASCII art tower. # represents a computer.


   #
   |
#---|
  |---#
  |
  |
  |
  |
  |
  |
  |
___|___


EDIT2: Well, it was art. Apparently the forum hates spaces. . .
ChunLing #3
Posted 23 December 2012 - 04:47 PM
There's a nifty Satellite Builder by dustpuppy. Read the whole thread, there are a few different versions posted. I made a version but it's for rnhst (a program I posted somewhere) hosts rather than gps hosts. Leo Verto posted a LeoSat that uses turtles to serve GPS and relay rednet messages.
rick3333 #4
Posted 01 January 2013 - 06:02 PM
thanks everyone for your help.