Skip to content

Registry Settings for Red Alert Cheat Mod

Revenent edited this page Oct 30, 2020 · 3 revisions

For users that wish to change the defaults for the mod, the settings for the mod can be adjusted through registry settings.

Registry location

The mod reads from the following registry location:

HKEY_CURRENT_USER\SOFTWARE\Electronic Arts\Command & Conquer Remastered Collection\Mod\2266059383

For the beta release the location is:

HKEY_CURRENT_USER\SOFTWARE\Electronic Arts\Command & Conquer Remastered Collection\Mod\2266059423

If the key does not exist, the mod will create the key along with the default values for each settings.

Available settings

Setting Description Type Allowed values
EnableKeyboardHook Enables or disables the keyboard hook functionality REG_DWORD 0 - disabled
1 - enabled (default)
EnableNoDamage Enables or disables the no-damage mode REG_DWORD 0 - disabled (default)
1 - enabled
EnableUnlockBuildOptions Controls the default state of the unlock build option REG_DWORD 0 - normal (default)
1 - unlocked
EnableInstantBuild Enables or disables the instant build mode REG_DWORD 0 - disabled (default)
1 - enabled
EnableInstantSuperweapons Enables or disables the instant superweapon timer mode REG_DWORD 0 - disabled (default)
1 - enabled
EnableDismissShroud Enables or disables the dismiss shroud mode REG_DWORD 0 - disabled (default)
1 - enabled
EnableUnlimitedAmmo Enables or disables the unlimited ammo mode for aircrafts REG_DWORD 0 - disabled (default)
1 - enabled
HarvesterBoost Controls the harvester load boost percentage REG_DWORD Range: 10 - 150 (100% - 1500%)
Default: 100 (1000%)
MovementBoost Controls the unit movement rate modifier percentage REG_DWORD Range: 5 - 50 (50% - 500%)
Default: 10 (100%)
ResourceGrowthMultiplier Controls the resource growth rate factor REG_DWORD Range: 1 - 50 (1x - 50x)
Default: 1 (1x)
InitialCreditBoost Provides a one-time increase of credits at the beginning of each game REG_DWORD Range: 0 - 500000
Default: 0
InitialPowerBoost Provides a one-time increase of power at the beginning of each game REG_DWORD Range: 0 - 50000
Default: 0
KeyHelp Key binding for showing the help message REG_BINARY See below
KeyToggleNoDamage Key binding for toggling no-damage mode REG_BINARY See below
KeyToggleUnlockBuildOptions Key binding for unlocking build options REG_BINARY See below
KeyToggleInstantBuild Key binding for toggling instant build mode REG_BINARY See below
KeyToggleInstantSuperweapons Key binding for toggling instant superweapon timer mode REG_BINARY See below
KeyToggleDismissShroud Key binding for toggling dismiss shroud mode REG_BINARY See below
KeyToggleUnlimitedAmmo Key binding for toggling unlimited ammo mode for aircrafts REG_BINARY See below
KeyCreditBoost Key binding for boosting available credits REG_BINARY See below
KeyPowerBoost Key binding for boosting available power REG_BINARY See below
KeyIncreaseMovementBoost Key binding for increasing the movement rate of units REG_BINARY See below
KeyDecreaseMovementBoost Key binding for decreasing the movement rate of units REG_BINARY See below
KeyIncreaseResourceGrowth Key binding for increasing the growth factor of resources REG_BINARY See below
KeyDecreaseResourceGrowth Key binding for decreasing the growth factor of resources REG_BINARY See below
KeyIncreaseHarvesterBoost Key binding for increasing the total load of each harvester REG_BINARY See below
KeyDecreaseHarvesterBoost Key binding for decreasing the total load of each harvester REG_BINARY See below
KeySpawnInfantry Key binding for spawning infantry REG_BINARY See below
KeySpawnVehicle Key binding for spawning vehicles REG_BINARY See below
KeySpawnAircraft Key binding for spawning aircrafts REG_BINARY See below
KeySpawnVessel Key binding for spawning ships REG_BINARY See below
KeyCapture Key binding for capturing units and buildings REG_BINARY See below
KeySaveSettings Key binding for saving the current settings to the registry REG_BINARY See below
KeyResetToDefault Key binding for resetting mod settings to default REG_BINARY See below

Key binding settings

Each key binding setting consists of a binary field of 20 bytes/values, which as follows:

Field Size
Primary key 4 bytes
Is chorded 4 bytes
Maximum number of keys 4 bytes
End key 4 bytes
Reserved 4 bytes

For all toggle, increase or decrease type keys, the maximum number of keys is always 1 and is chorded and end key will always be 0.

For spawn type keys, the maximum number of keys is 3, is chorded will be 1, and end key will be the same as the primary key.

For other key types, the values will be dependent on the functionality provided.

Do not modify any of the values other than primary key or end key, or it may cause the mod to break.

To modify the key binding, change the first 4 bytes of the field as follows:

<virtual key> 00 <modifier> 00

Appropriate values for virtual key field can be found in the Microsoft input documentation.

The modifier is as follows:

Modifier Value
None 00
Shift 01
Ctrl 02
Ctrl+Shift 03
Alt 04
Alt+Shift 05
Ctrl+Alt 06
Ctrl+Alt+Shift 07

For example, the KeyToggleNoDamage key binding setting has the following as the default:

4E 00 06 00    00 00 00 00    01 00 00 00    00 00 00 00    02 04 00 00

Decoding the first 4 values, the key binding is for the N key, with a modifier of Ctrl+Alt.

To change the key binding to Alt+Shift+D, change the registry value to the following:

44 00 05 00    00 00 00 00    01 00 00 00    00 00 00 00    02 04 00 00

For key bindings that have an end key, the end key is controlled by the the third group of 4 bytes. The value should be set to the same as the primary key so that functionality is kept similar to the defaults.

The message generated by the help key will reflect the changes made in the key bindings.

To determine the virtual key for a non-US keyboard, use a tool that can show the virtual key code such as KeyboardStateView. Note that this is 3rd party tool, and no guarantee is provided or implied for its correctness or functionality.