Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Implemented Additional CLI Arguments

Joined
Nov 9, 2013
Messages
16
Some useful arguments that I'd like to see added that would be useful:
  • Starting a script with the specified account/script
  • Starting the client with the specified world
  • Starting the client with the specified proxy information
@Cloud @Arbiter
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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 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. Thoughts?

@Arbiter @Aidden @Ian C
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,771
Some useful arguments that I'd like to see added that would be useful:
  • Starting a script with the specified account/script
  • Starting the client with the specified world
  • Starting the client with the specified proxy information
@Cloud @Arbiter
1. As in an account manager that logs in the specified account when the script 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 starts?
3. Doesn' the client already have proxy options before you log in to the client?
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 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. Thoughts?

@Arbiter @Aidden @Ian C
I don't fully understand the suggestion as his requested features seem to already be in the client :/ Any insight on this?

@erickho123 @Cloud
 
Last edited:
Mod Automation
Joined
Jul 26, 2013
Messages
3,044
They are referring to runtime arguments so that everything can be done from command line.
Code:
java -jar RuneMate.jar -u Arbiter -pCOOLPASSWORD -a RSUsername --script=ArbiFire
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,044
As much as I hate breaking all bots... if it's the cleanest way you can think of I support it.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
As much as I hate breaking all bots... if it's the cleanest way you can think of I support it.
I think we should do it, but I'm considering auto-converting all the scripts in the svn accounts to use the new onStart (And then I'll auto push them too)
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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 automatically start along with the client
Code:
java -jar runemate.jar -bot="Cloud's Woodcutter"
 
Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,771
They are referring to runtime arguments so that everything can be done from command line.
Code:
java -jar RuneMate.jar -u Arbiter -pCOOLPASSWORD -a RSUsername --script=ArbiFire
Oh well shit. I read the title as saying client, not cli. That makes more sense lol.

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 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. Thoughts?

@Arbiter @Aidden @Ian C
Yeah i agree that would be the best way. It's not like it'll be a hard fix for scripters either.
 
Top