Skip to content
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

Make forfeit command to easily create forfeits for a bot that doesn't work #20

Open
NicEastvillage opened this issue Sep 30, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@NicEastvillage
Copy link
Collaborator

NicEastvillage commented Sep 30, 2019

Sometimes a bot doesn't work, and to make ALP skip the matches containing the bot, it would be nice if we could just call a command that constructed the necessary result files.

Example; SpeedBot does not work and is supposed to play against Levi, Beetle, and Beast from the East. The command autoleagueplay forfeit "SpeedBot(The Bot)" Levi Beetle "Best from the East" would create results where SpeedBot loses to those bots. Like:

SpeedBot(The Bot)_vs_Levi.json:

{
    "blue": "SpeedBot(The Bot)",
    "orange": "Levi",
    "blue_goals": 0,
    "orange_goals": 0,
    "blue_shots": 0,
    "orange_shots": 0,
    "blue_saves": 0,
    "orange_saves": 0,
    "blue_points": 0,
    "orange_points": 0,
    "forfeit": true,            <------- maybe a value to indicate forfeit
    "winner": "Levi",
    "loser": "SpeedBot(The Bot)",
}

The hard part is knowing which team the bots are on, which is important since ALP names files as blue_vs_orange. The underdog is typically blue though, maybe that can be used. We could also generate files for both combinations to solve that issue or make the user in control by using another command syntax than the one I suggested above.

@tarehart
Copy link
Contributor

Good idea! Another related issue is that it seems necessary at the moment to kill the ALP process to facilitate a FF. We should make sure that the solution doesn't require a hard kill, since that kills RLBot.exe, which tends to break the obs overlay, leave rendering junk on the screen, or crash rocket league.

@NicEastvillage NicEastvillage added the enhancement New feature or request label Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants