- Launcher, section Affichage : cases « Bords flous (écran large) » (wide_fill) et « Zones cliquables (maintenir Espace) » (hotspots), partagées avec F12. - GUIDE FR/EN : touche Espace et menu F12 complétés ; README FR/EN : Espace. - SETTINGS.en.md : clés wide_fill et hotspots, alignées sur SETTINGS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
179 lines
7.6 KiB
Markdown
179 lines
7.6 KiB
Markdown
<p align="center"><img src="docs/images/logo-en.png" alt="DoubleTroubleRecomp"></p>
|
||
|
||
🇫🇷 [Français](README.md) · 🇺🇸 **English**
|
||
|
||
**Static recompilation of *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) to native C.**
|
||
|
||
No more DOSBox: the original x86 code is translated to C, compiled for Windows and hooked up to
|
||
SDL2. The goal is to bring the game back to life: sharp and smooth on big screens, from 1080p to
|
||
4K, open to mods, without ever modifying or redistributing the original game files.
|
||
|
||
> ⚠️ Work in progress. **You must own the original game**: this repository contains no game files
|
||
> and no code generated from its executables.
|
||
|
||
> 💿 **Supported version for now: the French CD, as an ISO image**, the one on [this Abandonware France page](https://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=662&fic=liens) ("ISO version" section, everything is explained there). How to check: `TUCKER\TUCKER.EXE` is **284,677 bytes**. The English, German, Spanish and Polish versions are not supported yet: their executable is different ([details](docs/TECHNIQUE.en.md#7-game-versions)).
|
||
|
||
> ⚠️ **For now: HD backgrounds yes, HD sprites no.** HD backgrounds look good, but HD characters
|
||
> and objects (sprites) are still buggy: cut-off pictures, some characters don't show up. It is
|
||
> recommended to play with an HD pack **with "Characters and objects" unticked** (in the launcher,
|
||
> or in game with F12).
|
||
|
||
### 📖 [Complete guide: install, build and play](docs/GUIDE.en.md)
|
||
|
||
Everything step by step, from an empty PC to the game in 4K: tools to install, launcher, filters, HD
|
||
pack, mods, saved games, troubleshooting. Also on the [wiki](https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki).
|
||
|
||
### 🎨 [HD textures: export, upscale, retouch](docs/TEXTURES.en.md)
|
||
|
||
One-click HD background pack with [Upscayl](https://upscayl.org) (free, **installed separately**), or
|
||
with the tool of your choice: original background export, other AIs, hand retouching, rules and
|
||
troubleshooting.
|
||
|
||
---
|
||
|
||
## Status
|
||
|
||
| Part | Status |
|
||
|---|---|
|
||
| x86 → C translation (`TUCKER.EXE`: 960 functions, `INTRO.EXE`: 540) | ✅ |
|
||
| Runtime: CPU, x87 FPU, DOS/4GW, VGA, PIT timer | ✅ |
|
||
| Intro (Merit logo, title, lab) | ✅ |
|
||
| Game: locations, interface, verbs, walking | ✅ playable, in testing |
|
||
| Sound: SDL2 mixer, AIL driver emulation (effects, music, speech) | 🚧 |
|
||
| Cutscenes | 🚧 |
|
||
| In-game settings menu (F12), `settings.ini` shared with the launcher | ✅ |
|
||
| OpenGL rendering, filters (sharp, smooth, xBR, CRT), 4:3 format | ✅ |
|
||
| Mods and HD background pack (Upscayl or any tool) | ✅ |
|
||
|
||
The full roadmap is in [docs/ROADMAP.en.md](docs/ROADMAP.en.md).
|
||
|
||
### 🔍 [Technical documentation: what we know about the game](docs/TECHNIQUE.en.md)
|
||
|
||
The executable, the game loop, file formats, the cutscene language, game versions and how the
|
||
recompilation works. The full reverse-engineering notebook: [docs/ANALYSE.en.md](docs/ANALYSE.en.md).
|
||
|
||
## How it works
|
||
|
||
```
|
||
TUCKER.EXE / INTRO.EXE (LE, DOS/4GW, from the player's copy)
|
||
│
|
||
▼ tools/recomp.py (Capstone, recursive descent + relocations)
|
||
build/gen_*/*.c ─────────► one C function per x86 function
|
||
│
|
||
▼ MSVC
|
||
runtime/ ── cpu, fpu, loader, dos, machine, audio, ail
|
||
── overrides.c game functions rewritten by hand (mod hook point)
|
||
── host_sdl.c window, keyboard, mouse, sound
|
||
│
|
||
▼
|
||
build/tucker.exe
|
||
```
|
||
|
||
- **Faithful translation**: every instruction becomes C code acting on the emulated CPU state
|
||
(registers, stack in memory, lazily computed flags). Original behaviour is preserved.
|
||
- **Overrides**: `runtime/overrides_tucker.txt` and `runtime/overrides_intro.txt` list the addresses
|
||
of functions replaced by hand-written C (`overrides.c`). The original function remains available
|
||
as `F_xxxxxxxx_orig`. Sound, system calls, and later rendering and mods all go through this.
|
||
|
||
## Launcher (easiest)
|
||
|
||
The graphical launcher does everything for you: pick the game (folder, drive, or `.iso` image,
|
||
mounted automatically), check the requirements, install `capstone` or download SDL2 in one click,
|
||
generate and build, then start the game. It also sets display and sound (with a filter preview),
|
||
manages saved games and mods, and creates the HD pack. It is available in French and English.
|
||
|
||
<p align="center"><img src="docs/images/launcher-en-3-accueil.jpg" alt="The launcher" width="800"></p>
|
||
|
||
```bat
|
||
cd launcher
|
||
cargo build --release
|
||
target\release\DoubleTroubleLauncher.exe
|
||
```
|
||
|
||
Settings are saved to `%APPDATA%\DoubleTroubleRecomp\launcher.ini`.
|
||
|
||
## Building by hand
|
||
|
||
### Requirements
|
||
|
||
- Windows 10/11 x64
|
||
- [Visual Studio Build Tools 2022](https://visualstudio.microsoft.com/downloads/) (C++ tools)
|
||
- Python 3.12 with `capstone` 5: `pip install capstone`
|
||
- [SDL2 2.32.10](https://github.com/libsdl-org/SDL/releases) (`SDL2-devel-2.32.10-VC.zip`),
|
||
extracted to `third_party/SDL2-2.32.10/`
|
||
- The original game (CD or ISO), **French version** (see above)
|
||
|
||
### Game files
|
||
|
||
By default the project looks for:
|
||
|
||
| Option | Default | Contents |
|
||
|---|---|---|
|
||
| `--cd` | `../extracted/iso/TUCKER` | CD files (including `TUCKER.EXE`, `INTRO.EXE`) |
|
||
| `--hd` | `../Install/C/TUCKER` | files installed on disk |
|
||
| `--root` | `../Install/C` | root of the "C:" drive seen by the game |
|
||
| `--saves` | `saves` | save games |
|
||
|
||
### Build
|
||
|
||
```bat
|
||
build.bat :: generates C from the player's EXEs, then compiles
|
||
build.bat nogen :: recompiles without regenerating
|
||
```
|
||
|
||
Output: `build\tucker.exe` (SDL2) and `build\tucker_headless.exe` (no display, for testing).
|
||
|
||
## Running
|
||
|
||
```bat
|
||
build\tucker.exe --son
|
||
```
|
||
|
||
| Option | Effect |
|
||
|---|---|
|
||
| `--son` | enables sound |
|
||
| `--sans-intro` | skips the intro |
|
||
| `--intro` | plays the intro only |
|
||
| `--resolution WxH` | window size in pixels (for example `1920x1080`) |
|
||
| `--echelle N` | old ×N setting (default 3: 960×720) |
|
||
| `--plein` | starts fullscreen |
|
||
| `--filtre NAME` | `nearest`, `smooth`, `xbr` or `crt` |
|
||
| `--sans-mods`, `--sans-hd` | no mods, no HD pack |
|
||
| `-v` | verbose log |
|
||
|
||
**F11** or **Alt+Enter**: toggle fullscreen. **F10**: HD pack on / off. **Space** (held): clickable areas. **F12**: settings menu. All options and settings
|
||
keys: [docs/SETTINGS.en.md](docs/SETTINGS.en.md). Mods and HD pack: [docs/TEXTURES.en.md](docs/TEXTURES.en.md) (tutorial) and [docs/MODS.en.md](docs/MODS.en.md) (format).
|
||
|
||
## Layout
|
||
|
||
```
|
||
build.bat build script (MSVC)
|
||
tools/
|
||
le.py LE format reader (DOS/4GW)
|
||
recomp.py x86 → C translator
|
||
runtime/ C runtime (CPU, DOS, hardware, sound, hosts, overrides)
|
||
launcher/ graphical launcher (Rust, egui)
|
||
assets/icon/ project icon (tools/make_icon.py)
|
||
docs/ guide, settings, mods, roadmap
|
||
mods/ your mods and HD packs (made locally, excluded from the repo)
|
||
```
|
||
|
||
## Legal
|
||
|
||
*Bud Tucker in Double Trouble* © 1996 Merit Studios. This project is not affiliated with any rights
|
||
holder. It neither contains nor distributes any game files or code derived from its executables:
|
||
the C code is generated locally, from the player's own copy, into `build/` (excluded from the
|
||
repository).
|
||
|
||
## License
|
||
|
||
**Open source** project, under the [MIT license](LICENSE): you can take the code, modify it,
|
||
redistribute it or start over from it, freely, **as long as you credit the author** (LinkAtPlug) by
|
||
keeping the copyright notice of the `LICENSE` file.
|
||
|
||
The license covers the project's code and documentation, not the game (© 1996 Merit Studios), none of
|
||
whose files are provided. SDL2 (zlib license) and the Bangers font (SIL Open Font License) keep their
|
||
own licenses.
|
||
|
||
☕ Enjoying the project? [Buy me a coffee](https://buymeacoffee.com/linkatplug).
|