Overview
Community-documented reference for the decompiled source code of The Escapists 2
This wiki documents the decompiled source code of The Escapists 2 (Assembly-CSharp.dll). It covers the core game systems, architecture patterns, and implementation details across the entire codebase.
Architecture Overview
Loading diagram...
Top tip:
Keep your heat level low by attending roll calls on time — if your heat hits 100, the guards and dogs will immediately hunt you down.
Loading diagram...
Top tip:
Multiplayer opens up completely unique escape methods, like the "winging it" escape on the train or cooperative door-breaking routes.
Loading diagram...
Top tip:
If you run out of energy while working out or crafting, head to the cafeteria during meal times or take a quick shower to rapidly regenerate your stamina.
Getting Started
The codebase is organised into these major areas:
Prisons & Levels
Describes how prison environments, tile grids, rooms, lighting, and the level editor work
Characters & AI
Describes how NPC behaviour, pathfinding, routines, combat, speech, and the opinion system work
Items & Crafting
Describes how items, inventory, containers, crafting recipes, and item functionalities work
Multiplayer & Networking
Describes how Photon PUN 2 networking, lobbies, matchmaking, and state sync work
Jobs & Quests
Describes how prison jobs, quests, favours, and the objective tree system work
Interactions, Minigames & Audio
Describes how interactive objects, minigames, and the audio system work
T17 Framework
Describes how Team17's internal framework, managers, and base classes work
UI & Menus
Describes how in-game menus, HUD elements, and the Slate UI framework work
Node Canvas AI
Describes how behaviour trees, action tasks, and AI decorators work
Third-Party Libraries
Lists every external namespace found in the decompiled codebase
Prerequisites
- The game runs on Unity with Photon PUN 2 networking
- AI behaviour uses NodeCanvas behaviour trees
- Pathfinding uses the A* Pathfinding Project
- Cutscenes use Slate by ParadoxNotion