Back to Games Matrix
ID: risk-of-rain-2
UNITY成熟可用Singleplayer Safe
Risk of Rain 2
Custom survivors, stacking legendary item synergies, and procedural boss wave modifiers.
Game EngineUnity (Mono)
Primary Hook RouteBepInEx / R2API
Anti-Cheat Safety Profile
Safe for SP / Peer-to-Peer MP
Recommended Toolchain
R2APIBepInExILSpyfal (item icons)
AI Agent Reproduction Steps
1
Environment & Binary Reconnaissance
Run `um recon --game risk-of-rain-2` to detect Unity (Mono) architecture and PE headers.
2
Headless Decompilation & Symbol Dump
Use R2API to dump class schemas and method offsets.
3
Locate Minimal Hook Target
Leverage BepInEx / R2API to attach to game tick and event lifecycle handlers.
4
Generative Asset Synthesis
Synthesize sprite textures, 3D meshes, or audio via fal.ai MCP integration.
5
Compile Delta & Run Offline Sandbox Loop
Compile the patch assembly and spawn game under strict offline sandbox boundaries.
Code Example
CSHARPExtracted Batman model and cape physics from Unreal Engine 3 Batman: Arkham Knight, retargeted skeleton in Blender, and packaged into Unity AssetBundle for BepInEx.
// Risk of Rain 2 Custom Survivor Loader
[BepInPlugin("com.universal.batman", "Batman Survivor", "1.0.0")]
public class BatmanPlugin : BaseUnityPlugin {
void Awake() {
AssetBundle bundle = AssetBundle.LoadFromFile(Path.Combine(Paths.PluginPath, "batman.assets"));
GameObject bodyPrefab = bundle.LoadAsset<GameObject>("BatmanBody");
RegisterSurvivorDef(bodyPrefab, "BATMAN_NAME", "BATMAN_DESC");
}
}Engine Architecture Playbook
View Playbook →