This State of Decay item modding tutorial uses of Cheat Engine 6.3 to create new or edit existing items in the user's inventory by changing the item codes. It also uses a compiled Cheat Table by Cielos (+14 Table Update7.5, for game Update8, with AOB scans, uploaded 2 November 2013).
So far i have been able to modify and duplicate Melee Weapons, Firearms, Utilities, Ammo and Backpacks.
The game will very likely crash during modding, and as there is no way to save the game manually you'll have to be extra cautious with what values you change.It's a good idea to do a simple side missions between major additions in order to save the game progressively. The game will autosave between missions but not during one.
WARNING THESE ARE GAMEBREAKING CHANGES. DO SO AT YOUR OWN RISK!
- Start State of Decay, then change to window mode (Alt+Enter). This makes it easier to switch to Cheat Engine to modify item values and codes.
- Launch Cheat Engine, point to the running State of Decay process and open Cielos' cheat table.
- Click on Enable then scroll down to [Pointers] > [Inventory]. It should now show you 10 bag slots with "Type", "Value", "Durability" and "Ammo".
- "Type" is typically the item's actual value.
- "Value" appears to be the item quantity.
- "Durability" affects whether the item is in decent condition or broken/damaged. Most weapons will not work when the durability is set to zero.
- "Ammo" appears to be magazine size rather than the actual quantity of ammo in the weapon itself.
Item Creation or Modification
In the screenshow below, we are modifying slot 1 of the inventory. Inventory slots appear to run horizontal left to right. In Cheat Engine below, inventory 1 has the item value of "40000060" corresponds to the Light Machine Gun M27 IAR. Ignore the other values for now.
To duplicate the LMG M27 IAR, all you need to do is change slot 2 "Type" value from "00000000" to "40000060".
Slot 2 is now a Revolver as shown below. The "Type" value of "40000016" corresponds with the item in the game inventory as a Snub Special 22. "Value" seems to refer to the value of the item if inserted into the supply locker. "Ammo" is the clip/magazine size. It's not the actual amount of ammo in the weapon.
"Durability" affects the condition of the item. If it is below 30, it'll appear yellow or damaged. If durability is zero, the item cannot be used at all. In game if an item drops to zero during combat, it'll break and disappear from your inventory.
If an item doesn't exist you get a placeholder that looks like a dynamite. You can't actually use this item.