-
Notifications
You must be signed in to change notification settings - Fork 247
Extend command line single player launch capabilities #6888
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
Open
Garanas
wants to merge
18
commits into
FAForever:develop
Choose a base branch
from
Garanas:feature/single-player-launch
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d73afd3
Add annotations
Garanas ab6c36b
Remove logging
Garanas c981143
Add annotations
Garanas 10e8871
Dynamically compute default options
Garanas cfec787
Annotate and adjust location of utility functions
Garanas 3e4263d
Add annotations
Garanas 3a29fbb
Add utility function to support the `/gameptions` argument
Garanas 0d69d75
Add utility function to get mods from command line
Garanas 37407d2
Fix incorrect type of mod
Garanas c78b03d
Add support for mod selection via arguments for bot session
Garanas 254d799
Add annotations
Garanas 25244c4
Add support for bot assignment
Garanas 1abb863
Fix not being able to default all game options
Garanas cb6e11c
Add command line to run the game as fast as possible
Garanas 97f24f5
Make game speed adjustable by default
Garanas 341ce5b
Add license and introduction comments
Garanas 1a19dca
Add a changelog snippet
Garanas 13d2a65
Add support for custom armies
Garanas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| - (#6888) Make it more convenient to launch a (bot) session through the command line | ||
|
|
||
| With these changes we shorten the workflow to test (sim) mods and in particular AI mods. There is an example PowerShell script file in the `scripts` folder to help you get started. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,6 +124,19 @@ | |
| --- | 'NUMPAD_DECIMAL' | ||
| --- | 'NUMPAD_DIVIDE' | ||
|
|
||
| ---@class UISinglePlayerArmy | ||
| ---@field PlayerName string | ||
| ---@field Faction number | ||
| ---@field Human boolean | ||
|
|
||
| ---@class UISinglePlayerSessionConfiguration | ||
| ---@field scenarioInfo UILobbyScenarioInfo | ||
| ---@field scenarioMods ModInfo[] | ||
| ---@field teamInfo table | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This type is like |
||
| ---@field RandomSeed number | ||
| ---@field createReplay boolean | ||
| ---@field playerName string | ||
|
|
||
| --- Repeatedly the selection box of the unit to the hovered-over state to create a blinking effect | ||
| ---@param entityId EntityId | ||
| ---@param onTime number | ||
|
|
@@ -903,7 +916,7 @@ function LaunchReplaySession(filename) | |
| end | ||
|
|
||
| --- Launch a new single player session | ||
| ---@param sessionInfo UIScenarioInfo | ||
| ---@param sessionInfo UISinglePlayerSessionConfiguration | ||
| function LaunchSinglePlayerSession(sessionInfo) | ||
| end | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.