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