Skip to content
Projects

About

Resident Evil: The Umbrella Chronicles running natively on Windows, Linux and Steam Deck: unlocked FPS, mouse aiming, DLSS / FSR 3.1 + frame generation, ray-traced shadows, HDR, Lua/JS/DLL mods, online co-op. Bring your own NTSC-U (RBUE08) image.

Design & Media

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+3
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

docs/modding/guide/en/README.md

Original

Modding guide for Umbrella Chronicles PC

English · Русский

You are here: Modding guide (overview)

This is the starting point for everyone who wants to change the game: swap textures, music or text, tweak weapons, write scripts or build native DLLs. It explains how mods work in general and tells you which of the topic guides to read next. Every guide exists in English and in Russian and has the same name in both folders.

Contents

How to use this guide

  • If you have never made a mod, read this page from the top, do the quick start, then open the topic guide that matches your idea (see Which approach do I need).
  • If you already know what you want, jump straight to the topic guide from the table in All guides. Each one is self-contained and starts with the same navigation block: language switch, a short "you are here" line, a table of contents, and links to the neighbouring guides at the end.
  • The guides explain how to do things. The exact list of every field, function and value is in the technical reference; the guides link to it where it matters.
  • Examples use the Lua language unless a guide is about JavaScript or C++. Everything a Lua script can do, a JavaScript script can do as well (Lua guide, JavaScript guide).

What you can change

You want to What you write Guide
Make the game look different: textures, UI pictures, fonts, effects PNG files converted to DDS Textures
Replace music, voices or cutscene sound .ogg or .wav files Audio
Change subtitles, item names, menu text, translate the game JSON files Text
Replace any other file of the game: models, movies, archives, layouts Files in the disc layout Disc files
Change numbers such as damage, magazine size, reload time without code A JSON data patch Data patches
React to what happens in the game, change players, enemies, weapons A Lua script Lua
The same, if you prefer JavaScript or TypeScript A JavaScript module JavaScript
Add sliders, checkboxes and buttons the player can use Declared settings or UI code Settings and UI
Use everything the game exposes: players, weapons, enemies, camera, input, events The game API Game API
Run your code inside a game function, or replace it A hook Hooks
Write something scripts are too slow or too limited for A native DLL Native DLL
Test a mod, find out why it does not work, pack and share it - Testing and sharing

You can mix kinds freely. One mod can contain textures, a Lua script and a data patch at once.

Quick start - your first mod in five minutes

We will make a mod that gives player 1 endless ammunition.

Step 1 - create the folder

Open the folder that contains uc.exe. Inside it make the folders mods\infinite-ammo\scripts (the mods folder may already exist; create it if not).

Step 2 - write mod.json

Create mods\infinite-ammo\mod.json with this content:

{
  "id": "infinite-ammo",
  "name": "Infinite Ammo",
  "version": "1.0",
  "api": "1.0",
  "touches_gameplay": true,
  "script": "scripts/main.lua"
}

touches_gameplay is true because the mod changes how the game plays. Without it the game refuses every change the script tries to make.

Step 3 - write the script

Create mods\infinite-ammo\scripts\main.lua:

uc.player(1).infinite_ammo = true

Step 4 - switch it on

Start the game. Press Insert to open the menu and go to the Mods tab. Your mod is in the list; tick its box. It starts at once, even in the middle of a mission. Untick the box and it stops; everything it changed is given back.

Step 5 - look at the log

Open debug\mods.log next to uc.exe. Every line your script writes with log.write('text') ends up there with the mod id in front. Errors appear there as well. Add log.write('hello') to the script, press Reload scripts in the Mods tab, and look at the log again.

Congratulations, that is a complete mod. The rest of the guides show how to do much more.

Where everything lives

Umbrella Chronicles\              the folder with uc.exe
  uc.exe                          the game
  config.json                     settings of the game and the mods
  mods\                           your mods, one folder (or .zip) each
    my-mod\
      mod.json                    the description of the mod (the only required file)
      scripts\                    Lua or JavaScript            -> Lua / JavaScript guides
      data\                       data patches (JSON)          -> Data patches guide
      textures\                   replacement textures (DDS)   -> Textures guide
      audio\                      replacement audio (.ogg/.wav)-> Audio guide
      text\                       replacement text (JSON)      -> Text guide
      files\                      replacement disc files       -> Disc files guide
      native\                     a DLL                        -> Native DLL guide
    .cache\                       made by the game: unpacked zips, converted audio and text
  textures\                       the base folder for replacement textures
  tools\                          texture extractor and converter, text dump tool
  debug\mods.log                  the log of the mods
  saves\                          your saves (back them up before trying gameplay mods)
  game\DATA\files\                the game's own files (never edit them)
  docs\                           this documentation
  mods-examples\                  complete example mods

All paths inside a mod are relative to the mod's folder, use / as the separator in mod.json, and may not contain ...

mod.json in one page

mod.json is the only required file of a mod. The minimum is five fields:

{ "id": "my-mod", "name": "My Mod", "version": "1.0", "api": "1.1" }
Field What it means
id A unique short name: letters, digits, _ and -, up to 48 characters, starting with a letter or a digit. Capitals are allowed, but the game uses the lower-case form (FFRU becomes ffru) in the config, the log and the cache.
name, version Shown in the Mods tab. Versions are dotted numbers (1.10 is newer than 1.2).
api The mod API version you wrote the mod for, "major.minor". Use "1.1" for anything that uses enemies, events, game state, input or calling game functions, "1.0" otherwise.
touches_gameplay Set true if the mod changes how the game plays. The game enforces it: without it, scripts cannot write to the game, and data patches and hooks are refused.
script The Lua or JavaScript entry file.
native A DLL (Native DLL).
settings Settings the player can change (Settings and UI).
depends Other mods that must be on.
audio Loop points for replaced music (Audio).
author, description, names, game Information for players.

The full description of every field is in the manifest reference.

The Mods tab

Press Insert in the game to open the menu, then choose the Mods tab.

  • Checkbox - switches a mod on or off at once. A mod that cannot work shows a reason (for example: wrong API version, missing dependency, error in mod.json).
  • Up and down arrows - move the mod in the load order. The order decides which mod wins when two change the same thing.
  • Gear button - opens the mod's settings window. It appears when the mod declares settings or draws its own UI.
  • Allow native mods - a switch that is off by default. DLL mods run only when it is on and you have confirmed the DLL (Native DLL, Safety in short).
  • Reload scripts - restarts the scripts of the running mods, so you can test an edit without restarting the game.
  • Under each mod you may see grey or red lines: progress of audio conversion, and problems with audio or text files.

How several mods work together

The order in the Mods tab is the load order. Mods are applied top to bottom; the lower mod wins when two provide the same thing.

Kind If two mods provide the same thing
Disc files (files\) The lower mod's file is used. The Mods tab lists every conflicting path.
Textures (textures\) The lower mod's texture wins; mods win over the base textures\ folder.
Audio (audio\) The lower mod wins per stream name. A ready .brstm in the same mod's files\ beats its audio\ file.
Text (text\) Per record id, the lower mod wins. The game's console logs text id N is set by A and B.
Data patches and scripts The last one that sets a value wins.
Hooks All hooks run, in load order.

depends in mod.json makes the game load a mod after the mods it needs and switch it off when one of them is off.

A mod's life - switching on and off while the game runs

Players can tick and untick mods at any time, including in the middle of a fight. Write your mod for that:

  • Switched on: the script (or DLL) loads, on_load runs, then the data patches apply. The game might be in a menu or a loading screen, so check uc.player(1).present before you assume a mission is running.
  • Switched off: on_unload runs, the script is destroyed, hooks are removed, and everything you set through the game API is given back (switches like invulnerable, weapon values, data patches). Clean up anything of your own in on_unload.
  • When a mod is switched on, off or moved, the mods below it restart in order so the result is the same as a fresh start. Do not keep state in a script that you cannot rebuild in on_load.
  • Replaced files, textures, audio and text show up when the game next opens them. Some, like the text file, are read only once at start, so tell your players to restart the game after changing them (Disc files).

Safety in short

  • Scripts (Lua, JavaScript) run in a sandbox: they cannot touch files, start programs or use the network. They also have time and memory limits; a script that fails three times in a session is switched off.
  • DLLs run with the player's full rights. The game refuses them unless the player turns on Allow native mods and confirms each DLL. Only publish a DLL when you must, and tell players what it does.
  • Audio files are decoded inside the game; damaged files can crash it.
  • Gameplay mods use the normal saves. There are no separate saves for mods. Tell players to back up the saves folder.
  • If something goes wrong, start the game with --no-mods to run without any mod, or untick the mod, or rename its folder.

More in the safety reference and in Testing and sharing.

Which approach do I need

Your idea Best approach Why
"Make the handgun hit harder" Data patch Numbers only: no code at all.
"Doubled damage, but the player can change the factor" Lua with declared settings Needs logic and a slider.
"Heal the player when an enemy dies" Lua with events React to on_enemy_killed.
"Another title music" Audio Drop in an .ogg; no tools needed.
"Translate the game / rename items" Text JSON with the new strings.
"HD textures" Textures PNG to DDS with the shipped converter.
"Replace a 3D model or a movie" Disc files Put the game-format file in the right place.
"Change what the weapon update does" Hooks Run your code in the game function.
"A heavy algorithm, an own overlay, calling Windows" Native DLL Full speed and full rights.

When in doubt, start with the simplest option that can do the job: a data patch beats a script, a script beats a DLL.

Glossary

Term Meaning
Mod A folder (or zip) in mods\ with a mod.json.
Game API Everything scripts and DLLs can read and change: the uc object, log, settings, ui, hook, on.
Guest The game itself. The port runs the Wii game's code translated to PC; "guest memory" is the memory the Wii game sees.
Guest address An address in that memory, like 0x80400000. Main memory is 0x80000000 to 0x817FFFFF (MEM1) and 0x90000000 to 0x93FFFFFF (MEM2). Values are big-endian.
Game step One update of the game. on_step is called about 30 times per game second.
Slot Player 1 or player 2.
Record id The number of a weapon in the weapon table (0 to 19) or of a text in a text file.
Disc layout The folder structure of the game's own files (Data\sound\stream\...).
Overlay How replacement files are laid over the game's files without changing them.
Hook A function of yours called when the game calls one of its own functions.
BRSTM The game's streaming audio format.
DDS / BC7 A texture file format and its compression; what the texture converter produces.
TRES / txtres The game's text file format.
Native mod A mod with a DLL.

All guides

Guide In one line Русский
Overview This page README
Textures Extract, edit and convert textures Текстуры
Audio Replace music and voices with .ogg / .wav Звук
Text Replace and translate texts with JSON Текст
Disc files Replace any file of the game Файлы диска
Data patches Change values without code Патчи данных
Lua Scripts in Lua Lua
JavaScript Scripts in JavaScript and TypeScript JavaScript
Settings and UI Sliders, checkboxes, your own window Настройки и интерфейс
Game API Players, weapons, enemies, camera, input, events, memory Игровой API
Hooks Run code in game functions Хуки
Native DLL Mods in C or C++ Нативные DLL
Testing and sharing Test, debug, pack, publish Тестирование и публикация

Suggested reading orders:

Technical reference

These pages list every field and function. They are in English only.

Document What is in it
Game API reference Every domain, member, argument and event, with status and examples
mod.json reference Every manifest field
Safety What the port does and cannot do for safety
API changelog What each API version added
Example mods Complete, working mods to copy from
uc.d.ts TypeScript declarations for editor completion
lua/uc.lua Lua declarations for lua-language-server

Next: Textures · Data patches · Lua

Explore related projects

Loading…