Skip to main content

JackAll

Far Cry 2 keeps everything inside 13 packed archives. That's around 215,000 files, and the game finds them by a hash of the filename instead of the name itself. The only archive a mod is allowed to touch is patch.dat, so installing a mod means rebuilding that archive.

JackAll opens all of it. It shows every archive as one big file tree, decodes the files into something you can actually read and edit, and packs your changes back into a patch.dat that the normal, unmodified game loads. No DLL, no injection, nothing running inside the game process.

The name is for the Jackal, and for "jack of all trades". One tool for the whole job instead of six converters and a batch file.

Download the latest release. jackall-<version>.zip is the app, jackall-cli-<version>.zip is the command line version. Both are a single exe. You don't need .NET installed and there is nothing to set up.

Just want to install a mod? Installing mods with JackAll walks you through it step by step, FCSE and its plugins included.

Making one? Start with A tour of the window and Your first mod, or look up what you want in I want to change…. The sidebar has a tutorial for every part of JackAll.

Source code: tools/JackAll.

What it can do​

Mods​

JackAll&#39;s Mods tab

This is your load order. Mods apply from top to bottom, and if two of them change the same file the lower one wins. Every mod has a checkbox, so you can turn one off without deleting it. A mod here is a zip with the game files it changes on their real paths in a mods\ folder (mods\worlds\world1\generated\…). If a mod is the old kind that ships a full replacement patch.dat and patch.fat, and most FC2 mods are, use Import legacy mod: it compares that mod to your game and stages only what it changed into your workspace. See Import an old patch.dat mod.

Deploy mods builds everything into the game, Revert to original puts the clean archive back. JackAll saves your original patch.dat once as patch.dat.vanilla, and every build starts from that backup again, never from the file that happens to be there. So building twice gives you the exact same bytes, turning a mod off really removes it, and a failed build leaves the game untouched. If two mods change different parts of the same file they get merged instead of one of them winning silently; if they set the same value differently, the lower mod wins it and Deploy mods names the conflict, unless your workspace sets that value too. Check for dead edits finds edits that a later entity library overrides, which is the kind of change that looks fine in the tool and does nothing in game. A mod can also carry a plugins\ folder, and that one goes to bin\plugins\ for FCSE instead of into the archive. See Load order, conflicts and plugins.

Files​

JackAll&#39;s Files tab

All 13 archives merged into one tree, resolved in the same order the game resolves them. Over 150,000 files, and anything a mod changed is highlighted, so you can see what you actually touched instead of guessing. Click a file to preview it, export it, replace it or revert it. A modded file can be diffed against the original, and Export original always gets you the clean version back. The filter box matches any word, and you can narrow it with ext:, arch: and hash:.

A file with no known name, only a hash, can still be modded; the status line counts how many there are. JackAll guesses the type from the first bytes, puts them under _unknown\, and saves your edit as _hash\<crc32>.<ext>, which the builder writes back at exactly that hash. Every file also gets a references panel: what points at this file, and what this file points at, both clickable. For a file nobody can decode, that is usually the only real information you get about it. See Finding any file and What uses this file?.

The value editor​

The FCB value editor

Almost everything people want to mod (weapons, AI, prices, vehicles, patrols) sits in .fcb files. JackAll decodes them into a normal property tree with real field names and types, so you edit values and not hex, and not XML either. Big files like an entity library are split into one piece per entity, so opening a weapon opens that weapon instead of a huge document. Nothing is written until you press save.

When you save, only that one entity piece lands in your workspace, as a small file. That is what lets two mods live together; see How to use. The same editor also opens the PersistenceDB inside a savegame, because a save is the same kind of file. See The value editor in depth.

Textures, audio and models​

The AK-47 model in the Files tab&#39;s preview

Most file types get a real viewer instead of a hex dump. .xbt textures show a preview and split into a .dds plus a small XML header, and you can build that pair back into a working .xbt. .xbm materials show the shader, every texture slot and every parameter, all editable and checked against what the shader takes, and New material… makes one at a new path. .xbg models get a 3D preview where you pick the LOD and the damage state, and RealTree species draw as actual trees. .sbao audio plays right there, exports as ogg or mp3, and imports basically any audio file you have: ffmpeg comes with the app and converts it to the 48 kHz stereo ogg the engine wants.

.spk banks are grouped, one row per sound with its settings under it, and you can play, export and replace the audio in each record. The game uses two codecs in there (ogg vorbis and IMA ADPCM) and JackAll figures out which one it's looking at. Everything you change here goes into your workspace first. Nothing reaches the game until you press Deploy. See Looking inside any file, Replace a texture, Replace a sound effect and Replace music and speech.

Model export for Blender​

Exporting a model as .fc2model

Export as .fc2model on any .xbg collects the model, its materials, its textures, the skeleton next to it and, if you want, every animation bank that uses it. All of that goes into one file with zero Dunia formats inside: JSON and plain float arrays for the mesh, JSON for the materials, PNG for the textures. Apply .fc2model takes the file back from your 3D editor and stages the changed game files into your workspace, and it shows you the list of files it will touch before it does anything.

The split is on purpose. JackAll knows the byte layouts, and the Blender add-on (tools/BlenderFC2) knows what a scene should look like. The add-on has no format code in it at all. In practice this means the art half of a custom weapon is one file and one plugin, instead of twenty small scripts. See Edit a model in Blender, Adding a weapon and .fc2model.

Map​

The Map tab

The Map tab loads a world and lets you fly around it in 3D. On the side you get the list of layers a FC2 map is built from, and you can toggle each one. The terrain draws with its real textures and its baked lighting, plus water, roads, rivers, footpaths, the drawn zone outlines, and the vegetation of every sector with each plant as its own model. Placed objects draw as real models or as markers, you can filter them by mission layer, search them, and click them either in the list or in the viewport.

Everything without a model gets its own symbol so you can still find it: lights in their own color, trigger boxes as wireframe, AI cover and guard spots, door and window hints for the AI, particle and sound emitters, and the navmesh the AI walks on, as its triangles and the links between them.

Placed objects can be edited too. Drag one with the move gizmo, delete it with Del, or copy it with Ctrl+C and paste a clone with Ctrl+V on the ground under the cursor, in the same world or, after loading the other one, in that. Save stages the edits into your workspace: each moved or pasted object as its own piece of its sector file, each deleted one as a delete in the sector's _layout.xml. A paste from the other world also brings its archetype into this world's library, and lists any mesh this world's depload is missing, copied from the depload that ships it. A paste always goes into the main mission layer. Ctrl+Z and Ctrl+Y undo and redo every edit, even past a Save.

A selected trigger box has a handle on each face and a light has a ring for its radius, plus its cone if it's a spot, so both can be resized in place. The Event links layer draws which entity sends events to which, and the inspector adds a link by clicking its target. A prefab moves, turns, copies and deletes together with its members. Group makes one from the selection, and Save prefab keeps it in the library to drag into any world. Check lists what would fail in game before you save, such as a character placed where there is no navmesh. Terrain, roads and vegetation are still view only. Deploy from the Mods tab. See Explore a world, Move, add and delete objects and Links, triggers, lights and prefabs.

Archetypes​

The Archetypes tab

Every object placed in the world is a small difference on top of an archetype, and archetypes are declared in several libraries that override each other in a fixed order. The Archetypes tab resolves that for you, so the definition you edit is the one the game really reads. If a later library overrides it, you see straight away that it's dead instead of losing an hour on it: Mods editing this marks each edit the game reads this or dead. The whole override chain is listed next to the archetype and you can open each layer on its own. Editing opens the normal value editor on the piece where the winning definition lives. See Your first mod and Which copy does the game read?

Animations and AI​

The AI tab

The Animations tab shows the rule graph that decides which animation plays when, as tables: per situation, the rules the game tries in order, each with its clip and how it plays. The AI tab collects how soldiers see, shoot and behave: soldier and weapon settings, the curves they name, the odds of optional tactics and the brains' own parameters. Both save into your workspace like everything else. See Change which animation plays and Tune the AI.

Saves​

The Saves tab

The Saves tab finds your .sav files and shows the in game screenshot, the world, your character name, the save time, the DLC it uses and how many objects it stores. The PersistenceDB inside opens in the same value editor as everything else and writes straight back into the .sav, so a value that got stuck is fixable without starting the campaign over. Purge persisted entities… writes a copy of a save without its stored entities, so the copy picks up your mods, and Delete… removes a save. See Savegames.

It's also here to explain something that has confused FC2 modders for about fifteen years: a save stores values that overlap with almost every entity library, and an .fcb mod cannot override what the save already has. That's why a data mod usually needs a new game: if one looks like it does nothing, start a new game before you decide the mod is broken.

The .mgb editor

.mgb files are the game's own UI format. JackAll decodes one into a full tree with a property grid, so every widget, action, state and color is reachable. The "Add" list only offers the classes the engine itself accepts in that spot, and saving rewrites the whole package, so adding an element or declaring a new class is a normal edit instead of an impossible one. This is what makes a custom options page inside the game possible at all. See Edit the HUD and menus and Magma UI.

The Domino graph viewer

Domino is the mission scripting system, and it ships as generated Lua. JackAll rebuilds a script from domino\user\ into the box and wire graph it was made in, lays it out for you, takes the pin names from the node scripts and the original names from the *.debug.lua file next to it. It's read only: you can see what a mission does, but there's no way back to the Lua. The button that opens it says Editor, but nothing you do in it changes the mission. See Read a mission.

Format support​

Everything below is JackAll's own code, one implementation per format, tested against the files the game actually ships. The format notes are under File Formats.

FormatWhat it isWhat JackAll does
.fat / .datThe archive pair, LZO compressed, indexed by hashReads every entry, rebuilds patch.dat/patch.fat. Every shipped .fat comes back byte for byte identical
.fcbBinary object trees: entities, weapons, AI, world sectorsDecodes and encodes, splits into one piece per entity, property tree editor, merges edits coming from different mods
.rmlBinary XML, used for manifests and the translated text tableDecodes and encodes, text editor with a diff against the original
.mgb (+ .mgb.desc)Magma UI packages: menus and HUDFull decode and encode plus a real editor, splits into one piece per area, merges edits coming from different mods. verify checks that a package only uses names it declares
.xbt (+ .dds)Textures, block compressed, with a streaming headerSplits and rebuilds, decodes BCn to pixels for previews and model packs, encodes back with the same compression
.xbmMaterials: shader, texture slots, parametersDecodes and encodes, edited in the preview against the shader's own parameter list, created new, written back through a model pack
.xbg (+ .xbgmip)Models, with LODs, damage states and skinningDecodes and encodes, 3D preview, .obj export, editable through a model pack
.skeletonSkeletonsReads and writes, byte identical on every shipped file
.mabAnimation banksReads them, writes one clip back and leaves the rest of the bank untouched
.rtxRealTree, the procedural treesDecoded into branches and leaves, drawn in the map and model viewers
.fc2modelJackAll's own model pack: JSON and PNG, no Dunia bytesWritten and read. The only thing the Blender add-on ever sees
.sbaoStreamed audio: music and dialogueSplits into header and ogg, plays it, exports ogg or mp3, imports anything ffmpeg reads
.spkSound banksLists and groups the records, extracts and imports ogg vorbis and IMA ADPCM
.sdatTerrain per sector: heights, surface types, water, baked lightRead only. It's what the map viewport draws, plus a grayscale height preview per file
.hkxHavok collision: bodies, shapes, constraintsDecodes and encodes, draws the collision over its model, moves, turns, resizes, adds and removes shapes, and refreshes the values Havok saves beside them. Every shipped file comes back byte for byte identical
.nvmAI navmeshRead only: the walkable triangles, their corners and the links between them
.savSavegamesReads the header, screenshot and DLC list, edits and writes the PersistenceDB
depload.datDependency list per assetParsed. Feeds the reference panel and has its own view
Domino .lua (+ .debug.lua)Generated mission scriptsParsed back into a node graph, with pin names and the original editor names
.pngNot a game formatOwn encoder and decoder, used for model pack textures
.xml, .lua, .descPlain text filesHighlighted view, with a diff against the original when modded

These are only recognized, not decoded. You can still browse, export and replace them, they just stay raw bytes: .bik (video), .feu (old UI), .wem, shader binaries, .srl and .zsr (streaming data), .luab and .luac (compiled Lua), .loc, .material.bin, .sctr, .tree, .cbatch, .terrainnode.bdl and .dpax.

Where it's going​

The install pipeline is a Vortex extension, so FC2 mods install from Nexus like they do for any other game. The extension is only a front end, not a second tool: Vortex does the downloading, staging, enabling and load order, and every step that needs the real game archives calls JackAll's command line. That way the mod rules exist in one place and can't drift apart. If you only want to install mods, use Vortex. JackAll is what you want when you're making one. The pipeline is written up on the Vortex page.

The rest goes well past a file manager: a 3D map editor forming over the actual worlds, a model exporter with its own file format and a Blender add-on on the other side of it, a visual editor for Domino missions, an archetype browser that resolves the override chains, and a savegame editor. A few of those don't exist anywhere else for this game, in any form. Some are still viewers, and the plan is that each one gets its write path.

None of this is really specific to Far Cry 2. Dunia is Ubisoft's engine across a decade of games and the formats are close relatives: an .fcb is an .fcb, an archive is an archive, a mesh is more or less the same mesh. Nothing stops someone from teaching JackAll Far Cry 3, 4, 5 or 6. That's more work than one person can do, which is exactly why the source is public.

How to use​

First run. Point JackAll at the folder that has bin\FarCry2.exe in it. It checks your archives against the hashes of a clean 1.03 install, Steam's or GOG's, and tells you if something is already different. It still works in that case, but then "original" means whatever you gave it. The tool writes three things next to the exe: config.ini (your game folder and mod list, you can edit it by hand), data\ (the ffmpeg it converts audio with, and your saved prefabs), and workspace\. See What JackAll keeps where.

The workspace is where your edits live. Everything you change inside JackAll, a texture, an entity, an applied model, gets written into workspace\ as a normal file on its real game path. It's always last in the mod list, so your own work wins over every mod under it, and you can switch it off with the checkbox like any other mod when you want to see the game without it. There is no export or package step: the workspace is the mod. Zip what's inside it and that zip is a mod anyone can drop into JackAll or install through Vortex.

Edits are saved per entity, not per file. This is where JackAll works differently from the old Gibbed way. With Gibbed's tools you convert a whole .fcb to XML, edit it, and ship the whole file back, which means two mods that both touch the entity library always conflict, even when one changed a rifle and the other changed a jeep. JackAll splits the file into one piece per entity and saves only that piece, on a path like worlds\world1\generated\entitylibrary.fcb\weaponproperties\primary\ak47.xml. Two mods on different entities never meet. Two mods on different fields of the same entity get merged against the original version. Only a real conflict, same field with two different values, needs a decision: the later mod's value wins and Deploy mods names the field instead of picking in silence, and a value you set in your workspace settles it. Tick Stop on conflicts to have the deploy stop there instead. Entity libraries aren't the only files kept in pieces; see Containers and fragments.

CLI​

jackall-cli.exe is the same thing without a window. It's a separate download, most of the format commands don't even need the game installed, and every mod command takes --json: one JSON object on stdout, progress on stderr, so your script never has to read text meant for humans. Worked examples are in Manage mods from the command line, Take features out of an old mod and Convert game files on the command line.

Mod commands​

The same code the Mods tab runs.

CommandWhat it does
mod status --game <dir>Tells you if a folder is a Far Cry 2 install and what state its patch archive is in
mod inspect <folder or zip> --game <dir>Tells you if an archive is a normal mod layer or an old full patch mod, and where its file tree starts
mod import-legacy --game <dir> --from <zip> --out <dir>Turns an old style full patch.dat/patch.fat mod into a normal layer folder
mod lint --game <dir> --layer <dir>Lists archetype edits that a later entity library overrides, so they do nothing in game
mod build --game <dir> --layer <a> --layer <b>…Builds the clean patch plus your layers into the game's archive pair. Order matters, later layers win
mod restore --game <dir>Puts the clean patch.dat/patch.fat back and undoes every build
jackall-cli mod build --game "C:\Games\Far Cry 2" --layer mods\bettersights --layer workspace

Format commands​

CommandWhat it does
archive extract <file.fat> [--names] [--filter <s>]Unpacks and decompresses an archive. --names turns hashes back into real paths
fcb decode / fcb encodeAn .fcb object tree to XML and back
rml decode / rml encodeA binary .rml to plain XML and back
mgb decode / mgb encode / mgb verify / mgb fragmentsA Magma UI package to editable XML and back. verify checks it only uses names it declares, fragments writes the parts that differ from retail for a mod to ship
xbt extract / xbt buildSplits an .xbt into .dds plus header XML, and puts it back together; xbt build with no header XML writes a fresh header
xbg export <mesh.xbg>Converts a model's geometry to a Wavefront .obj
fc2model export / extract / inspectBuilds a model pack, writes a changed pack back out as game files laid out as a mod layer, or lists what's in a pack
sbao extract / sbao buildSplits an .sbao into .ogg plus header, and puts it back together
spk list / spk extract / spk importLists a sound bank, pulls one record out as .ogg/.wav, or replaces one
spk decode / spk encode / spk verify / spk newA whole bank to XML with its audio and back, a check that a bank rebuilds unchanged, and a new bank from your own audio
move decode / encode / clips / repoint / fragments and moreThe animation graph to XML and back, the clips a weapon plays, a weapon pointed at other clips, and the per-situation pieces a mod ships
depload decode / encode / add / validateA world's dependency list to XML and back, a new resource registered in it, and a check of its order
ai unpack / ai verify / ai lintA brain's source as XML, a check that brains recompile unchanged, and the parameters a brain sets that the game never reads
hkx tree / move / turn / resize / add-box / remove / check and moreA collision file's shapes by number, edits to them that keep Havok's saved values in step, the whole file to XML and back, and a check for what would break in game
domino checkLooks for what would break a mission script in game
shader extract / build / index / labelSplits a shader object into its bytecode and binding table and back; index finds the object a shader permutation uses; label labels every object by what it draws and the quality presets that use it
sav list / sav cleanLists your saves, and writes a copy of one without its stored entities
xref build / xref to / xref from / xref reachIndexes every hash reference in the game, then answers what points at a file and what a file points at; reach sorts every file into used and unused
legacy analyze / changes / check / pickLists every change an old mod makes, sorts the changes into features, and builds a layer with only the ones you pick
jackall-cli fc2model export graphics/weapons/primary/ak47/ak47.xbg -g "C:\Games\Far Cry 2" --clips
jackall-cli xref to "graphics\weapons\primary\ak47\ak47_state01_m.xbt" --game "C:\Games\Far Cry 2"

Who it's for​

The CLI is for people who want Far Cry 2 in their own toolchain: a build script that rebuilds your mod from source assets, a CI job that checks a model still round trips, a batch run over a few thousand textures, or a completely different mod manager. The JSON is the stable part. stdout is the result, stderr is progress, and a failure is {"ok":false,"error":"…"} with exit code 1, never a random line on the wrong stream.

Vortex drives jackall-mi.exe, a smaller build with only the four commands an installer really needs, and its JSON is identical to jackall-cli's mod commands. So the extension can use either one, and neither of them is a rewrite of the other.

A word on intellectual property​

JackAll's .fcb, .rml and .fat decoding stands on ten years of community reverse engineering: Gibbed's original Dunia tools, wobatt's better hash decoding, and every forum post and Discord thread that ever pasted a working piece of format knowledge into the void.

So, to everyone who ever uploaded code, a hex dump, or a "here's how the header works" post that this tool's understanding of the format goes back to: thank you for your service.