Repository navigation
Modding
🇺🇸 English · 🇫🇷 Français (reference) · Step-by-step tutorial: HD textures
Mods add or replace content without modifying the game files: the engine reads a mod's files instead
of the originals during play. Nothing is redistributed with the project. The mods/ folder is excluded
from the git repository, because the HD images are derived from each player's game files.
By default, the game looks for mods/ next to the executable, then in the parent folder (the case of
build\tucker.exe: mods/ at the root of the project), then in the current folder. The [mods] dir
key of settings.ini or the --mods FOLDER option point to another folder (see
SETTINGS.en.md).
mods/
hd_upscayl/ one mod = one folder (its name is its identifier)
mod.ini optional: name, author, description (read by the launcher)
hd/
LOC01.png HD background for LOC01.PCX
LOC03A.png room in several pieces: one PNG per piece
LOC03B.png
voix_fr/
files/
SPEECH/SAM0001.WAV replaces the game file with the same path
-
files/: each file replaces the game file with the same relative path. Case does not matter. Any file the game opens for reading can be replaced: images, sounds, texts, etc. -
hd/: HD images of the backgrounds (see below). The name is that of the original PCX, with the.pngextension. - Mods are applied in alphabetical order of their folder name. For the same file, the last one
wins. Prefix them, for example
10_,20_, to set the order. - A folder whose name starts with
_or.is ignored, which lets you set a mod aside. -
[mods] disabled=name1,name2disables mods without moving them.[mods] enabled=0or--sans-modsdisables them all.
The log (standard error) lists the mods found (actif = active, fichier(s) remplacé(s) = replaced
file(s), image(s) HD = HD image(s)):
[mods] hd_upscayl : actif
[mods] 0 fichier(s) remplacé(s), 122 image(s) HD
The game does not read this file. It is reserved for the launcher, to display the mods:
[mod]
name=HD backgrounds (Upscayl)
author=…
description=Backgrounds upscaled ×4 with Real-ESRGANThe HD pack replaces the game's backgrounds on screen with high-definition images, at any resolution. The game keeps running at 320×200: characters, animated objects, cursor, action panel and texts remain the game's own and are laid over the HD background.
- When the game opens a background
LOCxx.PCXfor which a mod provideshd/LOCxx.png, the engine decodes the original PCX. Rooms in several pieces (LOC03A,LOC03B…), opened one after the other, form a strip 640, 960 or 1280 pixels wide. - On each frame, the engine looks for this background, and its scroll offset, in the game's 320×200 screen.
- Every screen pixel identical to the pixel of the original background lets the HD image show through. The other pixels (characters, objects, panel) stay the game's own.
- Palette fades (entering and leaving a room, night…) are applied to the HD image.
The engine needs no knowledge of the game, and an incomplete pack works: a background without a PNG
stays at 320×200. The nearest, smooth and xbr filters apply to the game layer. The crt filter
shows the original picture, without the HD pack. The "Décors HD (mods)" (HD backgrounds) option of the
F12 menu (key hd_pack) turns the pack on or off during play.
- One image per PCX, same framing as the original: the whole 320×200 picture, including the bottom part.
- Any size, 16:10 ratio: 1280×800 (×4) is a good choice, 2560×1600 works too. All the images of the same room must have the same size.
- 8- or 16-bit PNG: RGB, RGBA, greyscale or palette, non-interlaced. The alpha channel is ignored.
- If a mod replaces a PCX through
files/, the HD image with the same name is matched against the replaced PCX: a mod that redraws a background must also provide its HD PNG, or be used without the HD pack. - The areas where the game draws animated objects with their own background (clock, lamp…) stay in low resolution: the game draws there itself.
Upscayl (Real-ESRGAN) upscales the backgrounds ×4 in a few seconds. If Upscayl is installed, one command creates a complete pack from the game files:
python tools/hd_export.py ..\extracted\iso\TUCKER mods\hd_upscayl\hd --upscayl
-
--upscayl MODELpicks the model. Defaultdigital-art-4x, suited to drawn backgrounds. Other models:ultrasharp-4x,remacri-4x,high-fidelity-4x,upscayl-standard-4x,upscayl-lite-4x,ultramix-balanced-4x. - Upscayl is looked for in
Program Files, in%LOCALAPPDATA%\Programs, or at the location given byUPSCAYL_BINor--upscayl-bin PATH. - To compare two models, generate them into two mods and disable one with
[mods] disabled=.
python tools/hd_export.py ..\extracted\iso\TUCKER export_png
This command exports the backgrounds as 320×200 PNGs. Upscale them with the tool of your choice
(retouching by hand, waifu2x, ESRGAN…), then put them in mods/<name>/hd/ under the same name.
--echelle 2 or --echelle 4 (scale) directly produces a Scale2x upscale, without blur, to try a pack
right away. --motif (pattern) selects the files (default LOC*).
- Listing the mods: subfolders of
mods/whose name starts with neither_nor., withmod.inifor the displayed name. A mod has HD backgrounds if it containshd/*.png. - Enabling or disabling a mod: write the list into
[mods] disabledinsettings.ini. The list is taken into account on the next launch. - HD pack on/off:
[display] hd_packkey, also adjustable in game (F12). - Options for a single session:
--mods FOLDER,--sans-mods,--sans-hd.
Page générée depuis docs/MODS.en.md.