Wolfenstein: Enemy Territory: Difference between revisions
DoctorDalek (talk | contribs) (Created new page for Wolfenstein: Enemy Territory) |
DoctorDalek (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
{{Game.ActionBox | {{Game.ActionBox | ||
|Actions = | |Actions = | ||
{{Game.ActionBox.Row|Name = Play|Path = etl.exe|Arguments = |WorkingDirectory = {InstallDir}|Primary = True}} | {{Game.ActionBox.Row|Name = Play Wolfenstein: Enemy Territory|Path = etl.exe|Arguments = |WorkingDirectory = {InstallDir}|Primary = True}} | ||
}} | }} | ||
Revision as of 00:52, 22 February 2024
Developers | |
---|---|
Splash Damage | |
Publishers | |
id SoftwareActivision | |
Release Date | |
Windows: May 29, 2003 | |
Genres | |
Shooter | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play Wolfenstein: Enemy Territory | etl.exe | {InstallDir} | True |
Uninstall Script
$Documents = [Environment]::GetFolderPath('MyDocuments')
Remove-Item "$Documents\ETLegacy" -Recurse -ErrorAction Ignore
Name Change Script
$Documents = [Environment]::GetFolderPath('MyDocuments')
$NewPlayerAlias = $NewPlayerAlias.Split([IO.Path]::GetInvalidFileNameChars()) -join '_'
$OldPlayerAlias = $OldPlayerAlias.Split([IO.Path]::GetInvalidFileNameChars()) -join '_'
if ((Test-Path -Path "$Documents\ETLegacy\legacy\profiles\$OldPlayerAlias") -And ($OldPlayerAlias -ne $NewPlayerAlias)) {
Rename-Item "$Documents\ETLegacy\legacy\profiles\$OldPlayerAlias" "$NewPlayerAlias"
} else {
Copy-Item -Path "$InstallDirectory\profile" -Destination "$Documents\ETLegacy" -Recurse
Rename-Item "$Documents\ETLegacy\legacy\profiles\DoctorDalek" "$NewPlayerAlias"
}
Write-ReplaceContentInFile -Pattern '^seta name "(.+)"' -Substitution "seta name ""$NewPlayerAlias""" -FilePath "$Documents\ETLegacy\legacy\profiles\$NewPlayerAlias\etconfig.cfg"
"""$NewPlayerAlias""" | Out-File -FilePath "$Documents\ETLegacy\legacy\profiles\defaultprofile.dat" -Encoding ASCII -NoNewLine
"""$NewPlayerAlias""" | Out-File -FilePath "$Documents\ETLegacy\legacy\profiles\$NewPlayerAlias\profile.dat" -Encoding ASCII -NoNewLine