Hi all
I've read the other posts on this forum about people having similar issues with the gps host startup script. The proposed solutions however, aren't working for me for some reason.
I'm using the current SolitaryCraft build, which has Computercraft v1.481
My startup script contains:
shell.run("gps", "host", -334, 252, 216)
After I reboot, I'm getting:
=======================
CraftOS 1.4
Usages:
gps host
gps host <x> <y> <z>
gps locate
>
=======================
So it seems to me that shell.run isn't properly passing the arguments to the gps program.
I've also tried all the other variations I've found in posts on this forum, to no avail. I always end up with the same result.
Can anyone help out?
Cheers
GPS host startup script not working
Started by stefan, Jan 20 2013 03:11 AM
3 replies to this topic
#1
Posted 20 January 2013 - 03:11 AM
#2
Posted 20 January 2013 - 03:13 AM
Pass the arguments as strings.
#3
Posted 20 January 2013 - 03:14 AM
Umm...
I think you have to do the " " like this
I think you have to do the " " like this
shell.run("gps", "host", "-334", "252", "216")
#4
Posted 20 January 2013 - 03:16 AM
Hellkid98, on 20 January 2013 - 03:14 AM, said:
Umm...
I think you have to do the " " like this
I think you have to do the " " like this
[color=#282828][font=helvetica, arial, sans-serif]shell.run("gps", "host", "-334", "252", "216")[/font][/color]
shell.run( "gps", "host", "-334", "252", "216" )
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











