Dunia.dll — Overview & Symbol Table
Static analysis in Ghidra (project reverse/fc2.gpr), driven interactively via the GhidraMCP bridge.
FarCry2.exe — The Launcher Stub
See the overview for binary identification and toolchain notes shared across this
Dunia.dll — The Named Function-Callback Registry
See the overview for binary identification and the address table referenced
Dunia.dll — Command-Line Parsing and Full Flag List
See the overview for binary identification.
Dunia.dll — User Save-Data Folder Resolution
See the overview for binary identification.
Dunia.dll — The Lua-Exposed API Surface
See the overview for binary identification, including the embedded Lua 4.1 (alpha)
Dunia.dll — The Editor-Facing API Surface (FCE_*)
See the overview for binary identification. Companion to [the Lua-exposed API
Dunia.dll — The "Wilderness Script" Procedural Terrain Language
See the overview for binary identification, and the editor API surface
Engine Architecture & Main Loop
Traced live in FarCry2_server (the unstripped Linux dedicated-server binary — see
Domino Scripts — The Node Library and What Missions Actually Cover
Source: tools/third-party/Far Cry 2 Sep 8 2008 prototype/common.nfo — a plaintext
The Menu System — CGameMenu, Magma Pages, and Building a Mod Configuration Menu
Traced live via GhidraMCP across two binaries: Dunia.dll (Steam v1.03, stripped function names but
Data-Root Derivation
Traced through Dunia.dll (GOG) with the FarCry2_server symbol build as the naming reference.
CFCXOptionGamePage — the ABI FCSE's settings page is built on
Every address, offset and call shape below was confirmed by decompile against Dunia.dll
Terrain, Sectors and Vegetation — the runtime model
Traced live via GhidraMCP against FarCry2_server (the Linux dedicated-server ELF). Its symbol
Entities — Archetype Resolution and Instancing
Traced via GhidraMCP against FarCry2_server (CEntityLibraryManager::BuildArchetypesMap,
Asset reachability — which shipped files the engine can actually read
The root set is extracted from Dunia.dll (retail Steam build): every hardcoded asset path and
Entities — The Component and Property Registry
Traced via GhidraMCP against FarCry2_server: every RegisterProperties body, the member classes'
From Placed Data to a Live Object
How something written into the world data becomes a running object with components, AI, scripts
CFCSEDataComponent — the ABI FCSE's entity data is built on
Every address, slot and offset below was confirmed by decompile against Dunia.dll (Steam v1.03),
The Sky and Cloud System
Traced live via GhidraMCP against Dunia.dll (Steam v1.03) for the render-side code, and cross-
Time of Day, Light and Shadow
Traced live via GhidraMCP against FarCry2_server (the Linux dedicated-server ELF, unstripped
The Campaign — Missions, Reputation, Buddies and Malaria
The rules the campaign runs on, as the engine applies them. Everything here was read on the GOG 1.03
Loading a Save
What happens between choosing a save and playing it, and what each step waits on. Everything here was
Entering a World — Travel, and What a World Is Made Of
Traced live via GhidraMCP against FarCry2_server (the unstripped Linux dedicated-server binary —
AI
Traced through GhidraMCP against the symbolized FarCry2_server; the brain contents are read out of
Dunia.dll — The Developer Console
Opened and driven in retail Far Cry 2 (Steam v1.03, vanilla install, stock bin\FarCry2.exe, no
Dunia.dll — Where Log Output Goes
Traced in the Steam v1.03 Dunia.dll and cross-checked against the symbol-bearing Linux
Dunia.dll — Presenting a Frame, and Who Owns the Mouse
Confirmed against retail Far Cry 2 (GOG v1.03, fc2103retail). The addresses are Steam v1.03;
Audio Runtime
Traced live via GhidraMCP. The middleware (DARE, Ubisoft's sound engine, statically linked) is traced in
Demo recording and playback
The recorder, its key binding and the three file layouts are traced in Dunia.dll and checked
First-person aiming
Traced in FarCry2_server (symbols) and mapped into Dunia.dll (Steam v1.03). Addresses without a
Vehicle physics
Traced in FarCry2_server (symbols) and mapped into Dunia.dll (Steam v1.03). Addresses without a
Vehicle sound in Far Cry 3
Traced in retail Far Cry 3's FC3.dll (Ghidra program /FarCry3-Retail), which has no symbols;
Bullet tracers
Traced in FarCry2_server (symbols) and mapped into Dunia.dll (Steam v1.03). Addresses without a
Animals
Code traced in FarCry2_server; addresses are the server's unless marked GOG, which are GOG
Muzzle flash
Traced in FarCry2_server (symbols); the addresses are the server's. The light's loader is also in
Animals in Far Cry 3
Read from retail Far Cry 3's worlds\fc3main\generated\entitylibraryfull.fcb, its animal brains and
Flocks
Code traced in FarCry2_server (symbolized; addresses are the server's) and matched in GOG
Stims and damage
Code traced in FarCry2_server; every address here is the server's. CStimsEmitterComponent,
Player death
Code traced in FarCry2_server; addresses are the server's. The state machines are retail
Cheat flags, vitals and the economy
What the cheat_* console commands actually reach, and what they do not. RE-verified against Steam
The free camera and noclip
How to detach the view, and how to detach the player, in the retail PC build. Neither is reachable