DethKarz

From LANCommander
Revision as of 02:08, 6 January 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Release Date
Windows: December 18, 1998
Genres
SimulatorRacing
View at PCGamingWiki

Actions

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

Name Change Script

Dethkarz stores the name of the player for multiplayer in the dk.db file as a raw ASCII string with a max length of 12. This offset might change if this file changes in size at all.

# 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 12

Edit-PatchBinary -FilePath "$InstallDirectory\Data\dk.db" -Offset 0xf0b88 -Data $bytes