-
-
Notifications
You must be signed in to change notification settings - Fork 136
autostart (client and clientless mode) #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Added command-line argument handling for 'startcl' and 'startcls' commands to set the start mode.
|
|
||
| [Option('p', "profile", Required = false, HelpText = "Set the profile name to use.")] | ||
| public string Profile { get; set; } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hocam buraya seçenek olarak ekleyeydin ya :D
[Option("start-client", Required = false, HelpText = "Start with client")]
public bool StartClient { get; set; }
[Option("start-clientless", Required = false, HelpText = "Start clientless")]
public bool StartClientless { get; set; }| } | ||
|
|
||
| private static void RunOptions(CommandLineOptions options) | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (options.StartClient)
{
Kernel.StartMode = "client";
Log.Debug("Start mode set to: client");
}
else if (options.StartClientless)
{
Kernel.StartMode = "clientless";
Log.Debug("Start mode set to: clientless");
}| { | ||
| DisplayHelp(parserResult); | ||
| Environment.Exit(1); | ||
| // Only display help if there are actual parsing errors and no start commands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dediğim değişiklerle böyle bir kontrole gerek kalmıyor
|
@Egezenn pull-request'i devr alıp gereken değişiklikleri yap istersen ben onaylayayım. |
Revise of PR SDClowen#950
RSBot.exe -p profile startcl (client mode)
RSBot.exe -p profile startcls (clientless mode)
after bot opens it starts games.
Works with RSBotManager too. (Beta4.1 be coming)