saints row iv · game states

Saints Row IV Game States

The 10 'screens/modes' the game can be in (menu, loading, in game, pause...).

Game States10 rows

States stack on top of each other (e.g. PAUSE sits on IN_GAME). Requests to push/pop are queued and applied once per frame by gamestate_process_requests (008661c0).

IDStateWhat it isEnter function
1BOOTStart-up: memory, packfiles, data tables, loading screen.00724d70
2MAIN_MENUTitle/main menu, save selection, menu video and music.008ca950
3COOP_JOINFinding and joining a co-op game.009c9170
4CITY_LOADLoading the city (on its own thread) behind a loading screen.008c8d20
5IN_GAMEPlaying: the world simulates every frame.00861f70
6PAUSEPause menu.00905640
7BINK_MOVIEPlaying a pre-rendered video.00dd32a0
8TELEPORT_LOADLoading while teleporting across the map.008c3610
9MP_WAITINGWaiting for the co-op session to start.008cc6c0
10QUITShutting down; the main loop ends when this is on top.-

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.