Skip to content

Settings

Linkatplug edited this page Dec 6, 2026 · 13 revisions

Settings: settings.ini and command-line options

🇺🇸 English · 🇫🇷 Français (reference) · Overview: technical documentation

The game (build\tucker.exe), its in-game menu (F12 key) and the launcher all read and write the same file.

The command-line options have French names (--plein = fullscreen, --fenetre = window, --echelle = scale, --filtre = filter…). They are translated in the tables below.

File location

System Default path
Windows %APPDATA%\DoubleTroubleRecomp\settings.ini
Linux / macOS $XDG_CONFIG_HOME/DoubleTroubleRecomp/settings.ini, otherwise ~/.config/DoubleTroubleRecomp/settings.ini

--config FILE replaces this path. The folder is created on the first save.

Format

  • UTF-8 text, one key per line: key=value.
  • Sections: [display], [audio], [mods]. A key is only recognised in its own section. On the command line (--set), you can write key or section.key (for example mods.dir).
  • Lines starting with # or ; are comments.
  • When the game saves, it only rewrites the values of its own keys. The order, the comments and the keys it does not know stay intact. The launcher can therefore add its own keys without them being erased.
  • A missing or invalid key takes its default value. An out-of-range numeric value is clamped.
  • The game saves when the F12 menu is closed, after switching to fullscreen with F11 and after F10 (HD pack on / off).

Example:

[display]
fullscreen=0
window_scale=3
window_width=0
window_height=0
filter=xbr
aspect_43=1
vsync=0
hd_pack=1
hd_decors=1
hd_sprites=1
hd_panel=1
wide_fill=1
hotspots=1

[audio]
master_volume=100
music_volume=80
voice_volume=100
sfx_volume=90

[mods]
enabled=1
dir=
disabled=

[game]
autosave=1
skip_speech=0
walk_speed=normal

[debug]
crash_report=1

Keys

[display]

Key Values Default Effect
fullscreen 0 / 1 0 Fullscreen at desktop resolution (without changing the video mode)
window_scale 1 to 16 3 Window of 320 × N by 240 × N (or 200 × N) pixels, if window_width is 0. Reduced to the largest size that fits on the screen
window_width, window_height 0 to 16384 0 Window size in pixels (for example 1280 and 960); 0: window_scale is used. Reduced, keeping its shape, if it doesn't fit on the screen. The picture is scaled inside the window as in fullscreen (4:3 or square pixels respected, black bars otherwise). The F12 menu offers the common resolutions that fit on the screen, and the screen's own
filter nearest, smooth, xbr, crt nearest Picture filter (see below)
aspect_43 0 / 1 1 1: 320×200 picture stretched to 4:3, as on a VGA monitor. 0: square pixels (16:10)
vsync 0 / 1 0 Vertical sync
hd_pack 0 / 1 1 HD pack provided by mods (see MODS.en.md): master switch for the next three keys. No effect if no mod provides HD images, nor with the crt filter
hd_decors 0 / 1 1 The pack's HD backgrounds
hd_sprites 0 / 1 1 The pack's HD characters, objects and cursor (sprites)
hd_panel 0 / 1 1 The game's action bar and options panel in HD (the pack's PANEL1, PANEL2)
wide_fill 0 / 1 1 Wide screen: the edges around the picture are filled with the game picture, blurred and darkened, instead of black bars (F12 menu: "Blurred edges (widescreen)")
hotspots 0 / 1 1 Holding Space shows the room's clickable areas: exits in cyan, objects in green, characters in pink, other areas in yellow (F12 menu: "Clickable areas (Space)"). The game doesn't use Space: at 0, the key is passed to it again

Filters:

  • nearest: "Net" (sharp) in the menu. Raw pixels, enlarged without interpolation.
  • smooth: "Lissé" (smooth). Integer scaling, then interpolation limited to the border between two pixels. The picture stays sharp, without pixels of uneven sizes.
  • xbr: "xBR". Edges softened by xBR-style edge detection (shader written for this project, rendered ×4 then scaled).
  • crt: "CRT". Simulated cathode-ray tube: scanlines, aperture grille, slight curvature.

Booleans also accept true/false and on/off. The game always writes back 0/1.

[audio]

Key Values Default Effect
master_volume 0 to 100 100 Overall volume
music_volume 0 to 100 100 Music
voice_volume 0 to 100 100 Voices (dialogue, intro narration)
sfx_volume 0 to 100 100 Sound effects and ambience

Volumes are slider percentages. The mixer applies a quadratic curve so that the slider sounds even to the ear.

[mods]

Key Values Default Effect
enabled 0 / 1 1 0: no mod is loaded (no replaced files, no HD backgrounds)
dir path empty Mods folder. Empty: mods next to the executable, otherwise mods in the parent folder (the case of build\tucker.exe), otherwise mods in the current folder
disabled comma-separated names empty Mods (folder names) to ignore, for example disabled=hd_upscayl,voix_fr

Mods are read at startup: a change to [mods] takes effect on the next launch. hd_pack, hd_decors, hd_sprites and hd_panel, however, apply immediately from the F12 menu; the F10 key toggles hd_pack during play, with a fade. The mod format is described in MODS.en.md.

[game]

Key Values Default Effect
autosave 0 / 1 1 Automatic save at each change of location, just before leaving the room (F12 menu, Game tab: "Autosave"; launcher: Saved games card)
skip_speech 0 / 1 0 A left click during a line skips it: the voice is cut and the speech bubble disappears. That click isn't passed on to the game, so it starts no action. In the original game, a click during a line does nothing (F12 menu, Game tab: "Click to skip dialogue"; launcher: Game)
walk_speed normal, fast, faster normal Bud's walking speed: normal, × 1.5 or × 2. It only applies to moves the player asks for, not to cutscenes. While Bud walks, the whole game logic runs faster; music and voices don't change (F12 menu, Game tab: "Bud's walking speed"; launcher: Game)

The automatic save goes to SAVEGM.99, in the saves folder, and to parties\auto.sav with a thumbnail (see "Saved games" below). It uses the game's format and goes through a temporary file, so a crash can't leave it half written. It isn't counted in NOFILES.DTA: the game's Load panel doesn't show it, and it replaces none of the player's games. To load it:

  • during play: F12 menu, Game tab, "Saved games". It comes first in the list;
  • at startup: --charger 99 (the launcher's Play button on the automatic save, or Resume my game when it is the most recent).

Saved games

The original game keeps its saves in SAVEGM.01 to SAVEGM.NN, through its options panel. Those saves stay where they are and nothing changes for them. The F12 menu adds its own saves, as many as you like, each with a thumbnail:

  • Save the game (Game tab) writes a new save each time; nothing is overwritten. It isn't possible during a cutscene or a line of dialogue, nor before the game has started;
  • Saved games opens the list: the automatic save first, then the newest. Each box shows the game picture at the time of the save, the date and the location. Load resumes the chosen game (Enter does the same): the game leaves the current location as if through an exit. Supprimer (or Backspace) asks for confirmation, then deletes the file. The automatic save can't be deleted from here.

The launcher lists the same saves in its F12 menu saves card (Play, Delete to the bin).

The files are in the parties folder next to settings.ini (on Windows: %APPDATA%\DoubleTroubleRecomp\parties):

File Content
partie-YYYYMMDD-HHMMSS.sav Save made by the player (-2, -3… if two are made in the same second)
auto.sav Automatic save, rewritten at each change of location

Format of a .sav (66,832 bytes, little-endian integers):

Bytes Content
0–7 DTRSAVE1
8 Header size: 64
12 Location
16 Date (seconds since 1970, 64-bit)
24 Game state size: 2000
28, 32 Picture size: 320, 200
64 The game state: the 2000 bytes of a SAVEGM.NN
2064 Picture palette: 256 RGB colours, 8 bits each
2832 Game picture: 320 × 200 pixels, one byte per pixel

The picture is the last clearly visible view of the game, not one taken during a fade to black. It is the original 320 × 200, even with the HD pack. When loading, the 2000 bytes of the game state are copied to SAVEGM.97, and the game loads them like its own saves: the loading logic stays the game's own. SAVEGM.97 isn't counted in NOFILES.DTA.

[debug]

Key Values Default Effect
crash_report 0 / 1 1 Bug report written by itself if the game crashes (see "Bug reports" below). F12 menu: "Report a bug", then "Automatic report if the game crashes". In the launcher: Bug reports card

Bug reports

The F12 menu's Report a bug button opens a page to pick the kind of bug:

  • original graphics;
  • HD graphics;
  • sound;
  • text;
  • area or click;
  • game stuck;
  • crash;
  • other.

A comment can be added. Write report creates a folder rapports\YYYY-MM-DD_HHMMSS next to settings.ini (on Windows: %APPDATA%\DoubleTroubleRecomp\rapports). Ouvrir le dossier then shows it. Nothing is sent: to report the bug, attach the folder, or a zip of it, to your message. The launcher's Bug reports card lists the latest reports and can zip them, open them, move them to the recycle bin, or Replay a report's save.

Folder contents:

File Contents
rapport.txt Kind, comment, date and version, then:
- the place: location, scrolling, Bud's position, mouse, the location's clickable areas;
- the display settings;
- the active mods
jeu.bmp Game picture, 320 × 200, as it was before the menu opened
ecran.bmp Screenshot of the window, HD backgrounds and sprites included. Halved beyond 2560 pixels wide
SAVEGM.98 The game at that moment, in the game's save format (98, so as not to overwrite the automatic save). To get back to the bug: copy it into the saves folder, then start with --charger 98 (the launcher's Replay button does both)
settings.ini Settings at the time of the report
memoire.bin Game variables (128 KB), for analysis
plantage.dmp Crash only: Windows minidump

With crash_report=1, a "crash or freeze" report is written in two cases:

  • an unhandled exception: the report gives the code, address and module;
  • a stop of the recompiled game.

A crash inside the graphics driver escapes Windows and leaves no report. It remains visible in the Event Viewer.

Command line

Display options apply to the current session only. They are not written to the file, unless the player then changes that setting in the F12 menu. The launcher can therefore force a value at launch without overwriting the choice made in game. To change a setting permanently, it must write to settings.ini.

Option Equivalent to
--config FILE Use this settings file
--plein (fullscreen) fullscreen=1
--fenetre (window) fullscreen=0
--resolution WxH window_width=W, window_height=H (for example --resolution 1920x1080)
--echelle N (scale) window_scale=N, window_width=0, window_height=0
--filtre NAME (filter) filter=NAME
--format43 0|1 aspect_43=0|1
--vsync 0|1 vsync=0|1
--mods FOLDER [mods] dir=FOLDER (--mods "": automatic detection)
--sans-mods (no mods) [mods] enabled=0
--sans-hd (no HD) hd_pack=0
--set key=value Any key in the tables, for example --set music_volume=50 or --set mods.disabled=hd_upscayl

An option with an invalid value is ignored, and a message goes to standard error.

Other game options, unchanged:

  • --cd, --exe, --hd, --root, --saves: game folders and files (--hd is the game's install folder, unrelated to the HD pack);
  • --son (sound);
  • --sans-intro (skip the intro);
  • --charger N (load N): starts directly on saved game SAVEGM.NN in the --saves folder, without intro or menu (like the game's Load panel; NOFILES.DTA records this game as the last one used). If the save is missing or invalid, a message goes to standard error and the game starts normally;
  • --intro;
  • -v: detailed log on standard error, including the path of the settings file in use.

Building

build_zig.bat (bundled zig, no MSVC or Python), build.bat (MSVC and Python) and, on Linux, sh build_zig.sh take the same arguments: the folder that contains TUCKER.EXE and INTRO.EXE.

build_zig.bat                  folder taken from TUCKER_CD, otherwise ..\extracted\iso\TUCKER
build_zig.bat D:\TUCKER        folder given as a parameter
build_zig.bat nogen [VER]      compiles the C already generated (build\gen_tucker and build\gen_intro, or build_VER\)

DTR_ZIG and DTR_RECOMP replace the compiler and the translator found in the project. Details: guide, section 14.


Page générée depuis docs/SETTINGS.en.md.

Clone this wiki locally