Files
DoubleTroubleRecomp/docs/SETTINGS.en.md
T
linkatplugandClaude Opus 5.5 8fee466e72 Launcher et doc : sprites HD (personnages et objets)
- settings.ini : hd_decors et hd_sprites, sous l'interrupteur Pack HD
- carte Mods : Pack HD > Décors / Personnages et objets ; nombre de sprites
  HD par mod ; « Créer le pack » avec décors et/ou sprites ; bouton
  « + sprites HD » / « Compléter les sprites HD » qui reprend le modèle
  Upscayl du pack (mod.ini model=, sinon déduit de hd_upscayl_<modèle>)
- TEXTURES (FR/EN) : section I sur les sprites HD, un seul modèle par pack
- guide, README, captures de la carte Mods mis à jour
- MODS.en.md, SETTINGS.en.md alignés sur les versions françaises (629c139)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 07:45:53 +01:00

5.9 KiB
Raw Blame History

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 and after switching to fullscreen with F11.

Example:

[display]
fullscreen=0
window_scale=3
filter=xbr
aspect_43=1
vsync=0
hd_pack=1
hd_decors=1
hd_sprites=1

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

[mods]
enabled=1
dir=
disabled=

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. Reduced to the largest size that fits on the screen
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 two 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)

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 and hd_sprites, however, apply immediately from the F12 menu. The mod format is described in MODS.en.md.

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
--echelle N (scale) window_scale=N
--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);
  • --intro;
  • -v: detailed log on standard error, including the path of the settings file in use.

Building

build.bat accepts the folder that contains TUCKER.EXE and INTRO.EXE:

build.bat                  folder taken from TUCKER_CD, otherwise ..\extracted\iso\TUCKER
build.bat D:\TUCKER        folder given as a parameter
build.bat nogen            compiles the C already generated in build\gen_tucker and build\gen_intro