Software:Earth Defense Force 5
| Developer | Sandlot |
|---|---|
| Publisher | D3 Publisher |
| Engine | Sandlot in-house engine |
| Platforms | Windows x64 (Steam) |
| Versions | Steam build 3952305 (EDF5.exe PE timestamp 2019-06-25) |
| On this wiki | Facts · Code · Notes · Topics |
Third-person co-op shooter by Sandlot (D3 Publisher), PC release on Steam as a Windows x64 MSVC executable. Online co-op is limited to 4 players, and that limit is hard-coded in many independent places of the network, mission-setup and spawn code.
Overview
The PC version ships EDF5.exe (x64, MSVC, image base 0x140000000) plus steam_api64.dll, umbra_sandlot.dll and .cpk data archives (Root.cpk, Chunk01.cpk, DX11.cpk). MSVC RTTI is present (Platform:Microsoft Visual C++ ABI/RTTI), so class names such as .?AVAssultSoldier@@, .?AVSoldierBase@@, .?AVUserImpl@net@@ and .?AVEvent_DamageObject@net@@ can be recovered from the binary.
Multiplayer
Online rooms are Steam lobbies. The room advertises three lobby data keys, public_slot, private_slot and open_public, and the game switches the Steam lobby type between Public and Private from open_public (see the facts below).
The 4-player cap is not a single constant. Raising it requires changing, at least: per-user and per-route container capacities in the net layer, the room UI member list, the mission-start message buffers (0x2E8 bytes), the mission-setup parser bound, the per-player spawn transform array (4 entries on the stack), and the per-player mission script records (4 records). Each of these fails differently with a 5th or 6th player: a heap overflow, an out-of-bounds state write, a /GS cookie failure or a null weak_ptr read. The facts on this page give the exact location of each one for the documented build.
Combat
Damage is delivered as message 0x80000000 to GameObjectBase (vtable slot 6, 0x2DAC60 in the documented build), which calls GameObjectBase::ApplyDamage(GameDamageInfo const&). Object health is a float at +0x1FC (min +0x1F4, max +0x1F8, damage multiplier +0x294). Player soldiers are AssultSoldier (derived from SoldierBase).
Modding
Code mods are usually loaded with Tool:EDFModLoader, a winmm.dll proxy in the game directory (Technique:DLL proxy loading) that loads plugin DLLs from Mods\\Plugins (export EML5_Load) and logs to ModLoader.log. Its Patcher plugin applies byte patches from Mods\\Patches\\*.txt, given as offsets from the EDF5.exe base.
Data mods. Game data is read through the CRI File System from the .cpk archives with paths such as /cri_bind/MISSION/M003/MISSION.bvm. EDFModLoader redirects any such path to Mods\\<same path> when that loose file exists. A mission is the pair MISSION.bvm (compiled mission script) and MISSION.rmpa (map points: spawn points, routes, shapes); object definitions are .SGO files referenced as app:/OBJECT/<NAME>.SGO. Mission M003 (Crisis in Base 228: Part 1) is the slot that community mods commonly replace. The EDF5 Debug Room Tool generates a test mission there, with selectable enemies, spawn count, radius and health multiplier, and compiles it with the community "EDF Tools" program.
Mission script calls. Compiled mission scripts call the engine through numbered functions, written 2C(id, args...) in the decompiled form used by community tools. Known IDs: 0x0D LoadResource, 0x0E LoadMap, 0x64 SetMap, 0x12C PlayBGM, 0x12D FadeBGM, 0x3E8 SpawnPlayer (from the Debug Room Tool's stdMissionFns.txt).
Overlay mods. The EDF5 Damage Number Display plugin hooks the instruction that adds damage to an object's health (addss xmm0,[rdi+0x1FC], found by its bytes) and draws the numbers with Dear ImGui through Detours hooks on IDXGISwapChain::Present and ResizeBuffers. It reads the target's health at +0x1FC, its type byte at +0x218 and a lock-on position through +0x268.
Saves. Save files are AES-256-CTR encrypted MDB0 files with a CRC32C checksum and the owner's SteamID64 in the header, see Format:Earth Defense Force save file (MDB0).
Code & repositories
- https://github.com/BurguerJohn/EarthDefenseForce-8PlayerMod @
cbcc73ff7d8236e4e55d28e9e0f2f0fe69004789· license: none
EDFModLoader plugin that raises online co-op from 4 to up to 8 players; its docs/technical-research folder has an RVA reference for Steam build 3952305 (net users, routes, mission setup, spawn, results).
Tested on: Earth Defense Force 5, Steam build 3952305 (EDF5.exe SHA-256 3512D2A2...4BAE5F), live 5- and 6-player sessions · checked 2026-10-16; last activity 2026-10-04; no license: not reusable - https://github.com/BlueAmulet/EDFModLoader @
c686e8fb48121e0a6b3f6b7f42d6df0d5249678b· license: MIT
Mod loader for EDF 4.1/5/6: winmm.dll proxy, plugin DLL/ASI loading, CRI /cri_bind/ to Mods folder redirection, game debug log hook, Patcher plugin with runtime patch files.
Tested on: Source read only (not built or run in this session) · checked 2026-10-17; last activity 2025-10-11; Note: the latest release ships binaries; the wiki links only the source, never the binaries - https://github.com/ItsKaceyTime/EDF5-Debug-Room-Tool @
0a0bbc9a52d96fa22fa03117cac406a4b0bced3f· license: GPL-3.0
Python GUI that generates a debug-room mission (MISSION.bvm + MISSION.rmpa) replacing M003, with selectable enemy SGO files, spawn count/radius and health multiplier; includes a mission-script template and engine call IDs.
Tested on: Source read only (not run in this session) · checked 2026-10-17; last activity 2022-10-31; Note: the latest release ships binaries; the wiki links only the source, never the binaries - https://github.com/Eiton/EDF5-Damage-Number-Display @
17bb4d60d4c1a5a1e8bf89e95338e15b55131777· license: MIT
EDFModLoader plugin drawing EDF6-style damage numbers in EDF5 with Dear ImGui; hooks the damage-to-health addss by signature and IDXGISwapChain Present/ResizeBuffers with Detours.
Tested on: Source read only (not built or run in this session) · checked 2026-10-17; last activity 2026-02-16; Note: the latest release ships binaries; the wiki links only the source, never the binaries - https://github.com/FevGrave/EDFSaveEditor @
e323d37ff207be8a6069d86de10ded5a0f363f01· license: CC0-1.0
Python save editor for EDF 4.1/5/6: AES-CTR decrypt/encrypt, CRC32C checksum, MAIN.GST/TROPHY.DAT/COMMON.CFG/MST field maps; SAVE_FORMAT_NOTES.md documents the format with Ghidra findings.
Tested on: Source read only (not run in this session) · checked 2026-10-17; last activity 2026-10-03; Note: the latest release ships binaries; the wiki links only the source, never the binaries