Impossible Creatures

From LANCommander
Revision as of 02:13, 6 January 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Relic Entertainment
Publishers
Nordic Games PublishingMicrosoft Game Studios
Release Date
Windows: December 29, 2002
Genres
SimulatorReal Time Strategy (RTS)Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Setup {InstallDir}\ICConfig.exe False
Mission Editor {InstallDir}\MissionEditor.exe False
Play {InstallDir}\IC.exe True

Install Script

# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^screenwidth=(.+)' -Substitution "screenwidth=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\local.ini"
Write-ReplaceContentInFile -Pattern '^screenheight=(.+)' -Substitution "screenheight=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\local.ini"

Rename-Item -Path "$InstallDirectory\Movies\Nordic_Games.bik" -NewName "$InstallDirectory\Movies\Nordic_Games.bik.bak"
Rename-Item -Path "$InstallDirectory\Movies\relicintro.bik" -NewName "$InstallDirectory\Movies\relicintro.bik.bak"

Name Change Script

# Converts a string to a UTF16-encoded byte array. This looks like ASCII characters separated by 0x00 in most cases.
$bytes = ConvertTo-StringBytes -Input $NewPlayerAlias -Utf16 1 -MaxLength 10 -MinLength 10

#Edit-PatchBinary -FilePath "$InstallDirectory\Profiles\Profile2\name.dat" -Offset 0x02 -Data $bytes