Mobile Forces: Difference between revisions

From LANCommander
No edit summary
No edit summary
 
Line 14: Line 14:
{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\System/MobileForces.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Mobile Forces|Path = {InstallDir}\System/MobileForces.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
}}



Latest revision as of 00:46, 22 February 2024

Developers
Rage Software
Release Date
Windows: May 31, 2002
Genres
IndieShooterStrategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Mobile Forces {InstallDir}\System/MobileForces.exe True

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern '^WindowedViewportX=(.+)' -Substitution "WindowedViewportX=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\System\MobileForces.ini"
Write-ReplaceContentInFile -Pattern '^WindowedViewportY=(.+)' -Substitution "WindowedViewportY=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\System\MobileForces.ini"
Write-ReplaceContentInFile -Pattern '^FullscreenViewportX=(.+)' -Substitution "FullscreenViewportX=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\System\MobileForces.ini"
Write-ReplaceContentInFile -Pattern '^FullscreenViewportY=(.+)' -Substitution "FullscreenViewportY=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\System\MobileForces.ini"

Name Change Script

Write-ReplaceContentInFile -Pattern '^Name=(.+)' -Substitution "Name=$NewPlayerAlias" -FilePath "$InstallDirectory\System\Profile00.ini"