AzForge is a native C/C++ modding framework and runtime for Azangara, providing a versioned C ABI across 32 subsystems to build, package, and run mods without modifying original game files. Loaded transparently via a d3d8.dll proxy — while removing d3d8.dll cleanly restores the stock game.
Replace scripts, levels, rooms, textures, models, and sounds, or serve files directly from memory (Files::Serve). Removing d3d8.dll restores the stock game.
|
.amod containers ship replacement files and an optional C/C++ DLL with zero scripting overhead, strict C ABI stability, and automatic teardown on unload.
|
2D menu-space drawing, custom textures and sprite fonts, batched .mmd and multi-part .azm models, vs/ps 1.1 vertex/pixel shaders, plus full frame-loop/loading-screen control (Stage) and level editor hooks (LevelEditor).
|
Press F10 (or run mods screen) for the built-in MODS overlay with hot-reload for regular code mods, signature-verified hooks that step aside on unknown builds, AMSI scanning, and crash reports in forge.log.
|
| Full native access to rooms, player, monsters, room mechanisms, bonuses, inventory, camera, particles, HUD, menus, console, input, audio, configs, and saves. | |
flowchart LR
Game["game.exe"] -->|Loads| Proxy["d3d8.dll Proxy"]
Proxy -->|Boots| Core["AzForge.dll"]
Core -->|Loads| Mods[".amod Containers"]
subgraph VFS ["Resource Resolution Order"]
direction LR
R1["Runtime Serve"] --> R2["Active Mods"] --> R3["Disk Files"] --> R4["data.pak"]
end
Core -.-> VFS
- Playing with mods: get the installer from the AzForge website, or copy
d3d8.dllandAzForge.dllnext togame.exeand drop.amodarchives intomods/. - Making a mod: follow the Quick start guide, or create a ready-to-debug project with the Visual Studio (
plugins/vs2026/) or VS Code (plugins/vscode/) extension — both build, pack, install, and launchgame.exeunder the debugger on F5.
Full guides and a searchable API reference (English and Russian) live on the documentation site:
- Overview — architecture, resource resolution order, and mod composition
- Quick start — building, packing, and running your first mod
- Mod package & manifest —
.amodlayout,mod.jsonfields,amodpackCLI, and load order - API model — C ABI contract, versioning, error codes, tokens, and lifetimes
- API reference — all subsystems, functions, structs, callbacks, and constants
Important
All native targets must be built for Win32 (x86) using C++20 and the static runtime (/MT / /MTd). game.exe is 32-bit, and static linking ensures players don't need Visual C++ Redistributable.
Open AzForge.slnx in Visual Studio or run MSBuild from a Developer Command Prompt:
msbuild AzForge.slnx /p:Configuration=Release /p:Platform=x86Building produces d3d8.dll, AzForge.dll, AmodPack.exe, AzmPack.exe, and SampleMod.amod.
Building IDE Extensions (Visual Studio & VS Code)
IDE extensions are built separately from the main solution:
- Visual Studio 2022–2026 (VSIX):
plugins/vs2026/Extension/ - VS Code Extension:
plugins/vscode/
Repository layout
| Path | What it is |
|---|---|
D3d8Proxy/ |
d3d8.dll proxy that boots AzForge and hooks Direct3DCreate8 |
src/ |
Core loader (AzForge.dll), hooks, mod host, and subsystem implementations |
AmodPack/ |
AmodPack.exe CLI for packing, validating, and installing .amod containers |
AzmPack/ |
AzmPack.exe CLI converting OBJ + MTL (+ JSON sidecar) into .azm models |
sdk/ |
Public C/C++ headers (include/), subsystems.txt, SampleMod/, and samples/car/ |
plugins/ |
Shared mod template (README), AzForge.Mod.props, Visual Studio VSIX (vs2026/), and VS Code extension |
AzForge-site/ |
Project landing page and bilingual (EN / RU) documentation site |
installer/ |
Custom standalone WPF installer (AzForgeSetup.csproj, build.ps1) |
AFModConstructor/ |
Visual Qt 6 event-sheet mod constructor |
tools/ |
Standalone helpers (room_grid.py for inspecting .room grids) |
