Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog/snippets/other.6888.md
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
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.

15 changes: 14 additions & 1 deletion engine/User.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This type is like PlayerData[] except a stripped down version without the multiplayer-related data. Maybe something like EnginePlayerData should be created.

---@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
Expand Down Expand Up @@ -903,7 +916,7 @@ function LaunchReplaySession(filename)
end

--- Launch a new single player session
---@param sessionInfo UIScenarioInfo
---@param sessionInfo UISinglePlayerSessionConfiguration
function LaunchSinglePlayerSession(sessionInfo)
end

Expand Down
Loading