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

[LUA][GPS] Command for gps host?

Started by TenchiRyokoMuyo, 23 July 2012 - 03:47 PM
TenchiRyokoMuyo #1
Posted 23 July 2012 - 05:47 PM
Hello there,

I'm running a private hamachi server for my friends and myself. I run it off my laptop, which means, the server can't be 24/7. I want to set up a startup floppy disk, that will cause the computer to startup, activate the rednet (rednet.open("left") in my case), and then use the command gps host x y z, depending on which computer is where, that way, each time I start up the server, the computers automatically create a gps network, for my turtles. However, I can't figure out how to make the lua code for gps host. Can someone help me out?
Kolpa #2
Posted 23 July 2012 - 06:06 PM
create the file startup with this content

rednet.open("left")
shell.run("gps","host",x,y,z)
KaoS #3
Posted 24 July 2012 - 07:24 AM
you don't actually have to open a modem, the gps command detects them and opens them automatically
Kolpa #4
Posted 24 July 2012 - 12:54 PM
true that i wasnt realy thinking abou that when i was posting this because he said he wanted to open a modem i thought u had to :)/>/>