Skip to content

Conversation

@warofmine
Copy link

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)

Added auto-start functionality based on command line arguments and adjusted UI feedback for missing media file.
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; }

Copy link
Contributor

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)
{
Copy link
Contributor

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
Copy link
Contributor

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

@SDClowen
Copy link
Owner

@Egezenn pull-request'i devr alıp gereken değişiklikleri yap istersen ben onaylayayım.

Egezenn added a commit to Egezenn/RSBot that referenced this pull request Nov 29, 2025
SDClowen pushed a commit that referenced this pull request Dec 1, 2025
* feat: Specify launch mode via CLI options
Revise of PR #950

* fix

* fix2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants