Saints Row IV: how the game works
Our reverse-engineering notes on SR4's engine, in plain English. Pick a tab, search anything.
These notes explain the game's code in plain English. It was produced by statically reverse-engineering SaintsRowIV.exe (v1.0.6.1, Steam, 2017 build): all 99,724 functions were decompiled, and the important ones were read and named. Addresses are fixed (the exe has no ASLR), so an address here is the same every time the game runs. Nothing here was tested while the game was running.
How to read it
- Address = where the function or value lives in the exe (hex). Use it in Ghidra, x64dbg or Cheat Engine.
- Names in the Name column are ours, except Lua command names and C++ class names, which are Volition's own.
- Offsets like
+0x1E20are positions inside an object in memory (e.g. player +0x1E20= health). - Every tab has a search box: type a name, an address or a word to narrow it down.
The tabs
Saints Row IV modding questions
How do I install Saints Row IV mods?
Drop the modded file, named exactly like the file it replaces, into a folder called mods next to SaintsRowIV.exe (no sub-folders). When the game opens a file it checks the mods folder first, then the packfiles in packfiles\pc\cache\*.vpp_pc, so your copy wins. Details on the files & mods page.
What Lua commands can Saints Row IV scripts use?
Mission and UI scripts can call 1,928 engine commands. The Lua commands page lists every one with its native address and group.
Where is the player's health and cash in memory?
Read the player object's pointer, then add an offset: +0x1E20 is current health (float), +0x1E10 max health and +0x1E08 cash in cents. More on the player & object data page.
Why does using a cheat mark my save as cheated?
Each cheat in cheats.xtbl has a Dont_Flag_As_Cheating flag. If it's off, activating the cheat marks the save as cheated and tells your co-op partner. See how cheats work.
Which version of Saints Row IV are these addresses for?
SaintsRowIV.exe v1.0.6.1, the 2017 Steam build. The exe has no ASLR, so every address is the same each time the game runs. Other builds will differ.
Built from SR4_Game_Explained.xlsx (650 KB), if you'd rather filter it in Excel. SaintsRowIV.exe v1.0.6.1 (Steam). Names are ours unless they're Volition's own Lua or C++ class names.

