Liero

From LANCommander
Revision as of 03:28, 6 January 2024 by DoctorDalek (talk | contribs) (Created new page for Liero)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Joosa Riekkinen
Release Date
Windows: December 31, 1998
Genres
Shooter
View at PCGamingWiki

Actions

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

Name Change Script

$aliasBytes = ConvertTo-StringBytes -Input $NewPlayerAlias -MinLength 20 -MaxLength 20

Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0x28 -Data $aliasBytes

$skin = Get-ChildItem "$InstallDirectory\skins" | ForEach-Object Name | Get-Random
$skinBytes = ConvertTo-StringBytes -Input $skin -MinLength 168 -MaxLength 168

Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0x48 -Data $skinBytes

$r = [Convert]::ToByte($(Get-Random -Maximum 255))
$g = [Convert]::ToByte($(Get-Random -Maximum 255))
$b = [Convert]::ToByte($(Get-Random -Maximum 255))

Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0xF0 -Data $r
Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0xF1 -Data $g
Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0xF2 -Data $b