Jump to content




GPS host startup script not working


  • You cannot reply to this topic
3 replies to this topic

#1 stefan

  • Members
  • 1 posts

Posted 20 January 2013 - 03:11 AM

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

#2 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 20 January 2013 - 03:13 AM

Pass the arguments as strings.

#3 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 20 January 2013 - 03:14 AM

Umm...
I think you have to do the " " like this
shell.run("gps", "host", "-334", "252", "216")


#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 January 2013 - 03:16 AM

View PostHellkid98, on 20 January 2013 - 03:14 AM, said:

Umm...
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]
Without all the color and font tags of course it would look something a little more like this
shell.run( "gps", "host", "-334", "252", "216" )






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users