Implemented Additional CLI Arguments

Discussion in 'Client & Site Suggestions' started by erickho123, Oct 14, 2014.

  1. erickho123

    Joined:
    Nov 9, 2013
    Messages:
    16
    Likes Received:
    4
    Some useful arguments that I'd like to see added that would be useful:
    • Starting a script bot with the specified account/script bot
    • Starting the client with the specified world
    • Starting the client with the specified proxy information
    @Cloud @Arbiter
     
  2. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,521
    Likes Received:
    893
    I agree, let's make it happen.

    The easiest way I can see to make this a reality is by passing the arguments to the script bot so it can use those instead of the GUI. I could do this by changing the signature of onStart() to onStart(String... args), however it would break all existing scripts bots. Thoughts?

    @Arbiter @Aidden @Ian C
     
    erickho123 likes this.
  3. Aidden

    Aidden The better executive ;)

    Joined:
    Dec 3, 2013
    Messages:
    3,464
    Likes Received:
    712
    1. As in an account manager that logs in the specified account when the script bot is started or during runtime when it gets logged out? If so we already have that.
    2. You mean make the client log you in to that specific world before the script bot starts?
    3. Doesn' the client already have proxy options before you log in to the client?
    I don't fully understand the suggestion as his requested features seem to already be in the client :/ Any insight on this?

    @erickho123 @Cloud
     
    #3 Aidden, Oct 14, 2014
    Last edited: Oct 14, 2014
  4. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,549
    Likes Received:
    1,067
    They are referring to runtime arguments so that everything can be done from command line.
    Code (Text):
    1.  
    2. java -jar RuneMate.jar -u Arbiter -pCOOLPASSWORD -a RSUsername --script=ArbiFire
    3.  
     
  5. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,549
    Likes Received:
    1,067
    As much as I hate breaking all bots... if it's the cleanest way you can think of I support it.
     
  6. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,521
    Likes Received:
    893
    I think we should do it, but I'm considering auto-converting all the scripts bots in the svn accounts to use the new onStart (And then I'll auto push them too)
     
  7. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,521
    Likes Received:
    893
    So far the following changes have been made for the next release:
    1. onStart() is now onStart(String... args) although args are currently not being passed along
    2. a new CLI argument "bot" has been added that allows you to have a script bot automatically start along with the client
    Code (Text):
    1.  
    2. java -jar runemate.jar -bot="Cloud's Woodcutter"
    3.  
     
  8. erickho123

    Joined:
    Nov 9, 2013
    Messages:
    16
    Likes Received:
    4
    Will there be a way to select the account we'd like to use with the script bot?
     
  9. Aidden

    Aidden The better executive ;)

    Joined:
    Dec 3, 2013
    Messages:
    3,464
    Likes Received:
    712
    Oh well shit. I read the title as saying client, not cli. That makes more sense lol.

    Yeah i agree that would be the best way. It's not like it'll be a hard fix for scripters either.
     
  10. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,521
    Likes Received:
    893
    The -bot="" and -account="" are both now available in the current release.
     
    Hakuna Matata likes this.

Share This Page

Loading...