Soldat

From LANCommander
Revision as of 21:55, 8 January 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Transhuman Design
Publishers
Transhuman Design
Release Date
Windows: May 9, 2002
Genres
IndieShooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\soldat.exe True

Name Change Script

# Trim a string down to a specified amount of characters
if ($NewPlayerAlias.Length -gt 24) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 24);
}

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^Name=(.+)' -Substitution "Name=$NewPlayerAlias" -FilePath "$InstallDirectory\soldat.ini"