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

Implement adding exe as argument to launch script #6550

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
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
10 changes: 8 additions & 2 deletions scripts/LaunchFAInstances.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
[int]$players = 2, # Default to 2 instances (1 host, 1 client)
[string]$map = "/maps/scmp_009/SCMP_009_scenario.lua", # Default map: Seton's Clutch
[int]$port = 15000, # Default port for hosting the game
[int]$teams = 2 # Default to two teams, 0 for FFA
[int]$teams = 2, # Default to two teams, 0 for FFA
[string]$exe = "ForgedAlliance.exe" # exe filepath string, can be relative or exact
)

# Base path to the bin directory
Expand Down Expand Up @@ -58,7 +59,12 @@ function Launch-GameInstance {
[string]$arguments
)

# Add window position and size arguments
# Add exe argument used by debugger
if ($gameExecutable -eq $debuggerExecutable) {
$arguments = "$exe $arguments"
}

# Add window position and size arguments
$arguments += " /position $xPos $yPos /size $windowWidth $windowHeight"

try {
Expand Down