Carmageddon II: Carpocalypse Now

From LANCommander
Revision as of 02:05, 6 January 2024 by DoctorDalek (talk | contribs) (Fixes to deprecated PowerShell scripts)
Developers
Stainless Games Ltd.
Publishers
Sales Curve InteractiveInterplay Entertainment
Release Date
Windows: October 12, 1998
Genres
IndieRacing
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\CARMA2_HW.EXE True

Install Script

This script requires admin access to function properly

New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"

New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name "$InstallDirectory\CARMA2_HW.EXE" -Value "~ WINXPSP2 HIGHDPIAWARE" -Force

Name Change Script

if ($NewPlayerAlias.Length -gt 8) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 8)
}

Write-ReplaceContentInFile -Pattern '^PlayerName 0\s+.+' -Substitution "PlayerName 0`r`n$NewPlayerAlias" -FilePath "$InstallDirectory\DATA\OPTIONS.TXT"