mercs2.tools

Community modding tools and documentation for Mercenaries 2: World in Flames. Write Lua that runs inside your live game, map the world, build custom in-game UI — most of it in a browser tab, with nothing to install.

Start here

Base game, nothing done to it yet? This is the order to do things in.

7 steps
1

Install Modkit

The one desktop app you'll use for the rest of this, and for managing mods afterward. Get it first — you'll come back to it in a couple of steps.

Modkit
2

Patch the game — Modkit can't do this part

Mercenaries 2 shipped with SecuROM, DRM modern Windows frequently refuses to run at all. Run apply_crack against your own Mercenaries2.exe — it produces Mercenaries2-cracked.exe, patched to load the community loader in SecuROM's place. Back up your original exe, then replace it with the cracked one.

SecuROM Bypass
3

Get the loader itself — pmc_bb.dll

This is what your patched exe now looks for. Modkit's Setup tab downloads it for you — the easiest way — or grab it by hand from PMC Blackbox's releases and drop it next to Mercenaries2.exe.

PMC Blackbox
4

Launch once and check for a console window

A command window popping up alongside the game confirms the loader is running (it prints some diagnostic info too). No window means something's off with the patch or the DLL placement — worth sorting out before adding anything else.

5

Install lua-bridge through Modkit

In Modkit's Mod Market, add loganw234/Merc2-Mods-Exp as a Mod Source, then browse to lua-bridge and deploy it — this also makes future updates a click instead of a re-download. (Or by hand: drop lua_bridge.asi and lua_bridge.ini into <game>/scripts/ yourself.)

lua-bridge
6

Launch again and check for the script folders

scripts/OnBoot/, scripts/OnLoad/ and scripts/OnKey/ should now exist under your game folder, along with an auto-generated lua_loader.ini (it'll already have a few sample lines in it — that's normal, just add yours alongside). That confirms lua-bridge is live.

7

You're ready for Ess

Ess is the Lua framework nearly everything else on this page assumes. Its own guide picks up exactly where this one ends.

Ess: Getting Started

Web apps

Open in a browser tab. No install, no build step.

Learn

Where to find out how any of this actually works.

Build with Lua

The pieces the tools above are built on.

Utilities

Smaller single-purpose tools, all client-side.

Game setup

Getting a moddable copy of the game running in the first place.

You need to own the game

Everything in this section assumes you already own a legitimate, purchased copy of Mercenaries 2: World in Flames. These tools exist so that a copy you own will run and stay moddable on modern hardware — a 2008 release with long-dead copy protection that current versions of Windows often refuse to launch at all.

They are not a way to obtain, unlock or play the game without buying it, and nothing here distributes game content. Please don't use them for anything else.