Docs : README et feuille de route en francais et en anglais

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
linkatplugandClaude Opus 5.5 committed 2026-12-05 02:19:25 +01:00
1 parent dd2a7efd8d
commit 821f9c7e25
4 files changed
+214

No files matched your search

+122
View File
@@ -0,0 +1,122 @@
# DoubleTroubleRecomp
🇫🇷 [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.
---
## 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 | 🚧 |
| Settings menu | 📋 planned |
| Upscaling, filters, HD pack | 📋 planned |
The full roadmap is in [docs/ROADMAP.en.md](docs/ROADMAP.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.
## Building
### 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)
### 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 |
| `--echelle N` | window scale (default 3: 960×720) |
| `--plein` | starts fullscreen |
| `-v` | verbose log |
**F11** or **Alt+Enter**: toggle fullscreen.
## 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)
docs/ roadmap, technical notes
```
## 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
To be decided.
+2
View File
@@ -1,5 +1,7 @@
# DoubleTroubleRecomp
🇫🇷 **Français** · 🇺🇸 [English](README.en.md)
**Recompilation statique de *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) en C natif.**
Plus de DOSBox : le code x86 d'origine est traduit en C, compilé pour Windows et branché sur SDL2.
+88
View File
@@ -0,0 +1,88 @@
# DoubleTroubleRecomp: roadmap
🇫🇷 [Français](ROADMAP.md) · 🇺🇸 **English**
Static recompilation of *Bud Tucker in Double Trouble* (DOS, 1996) to C, to bring the game back to
life on today's machines and screens.
**Goal:** a game that looks great and runs smoothly on big screens, from 1080p to 4K (1440p minimum
target), at the original game speed (no chasing FPS).
**Golden rule:** the repository contains no game files. Everything generated from TUCKER.EXE and
INTRO.EXE stays local (`build/`). Mods replace files at runtime, never touching the originals.
---
## Current status (2026-12-05)
- [x] x86 → C translator (`tools/recomp.py`): 960 functions for TUCKER.EXE, 540 for INTRO.EXE
- [x] Runtime: CPU, FPU, DOS/DOS4GW, VGA, PIT, SDL2 and headless hosts
- [x] The intro (Merit, title, lab) runs fully
- [x] The game runs: Bud's bedroom, interface, verbs, walking
- [x] Sound: SDL2 mixer, AIL function overrides (effects, music, speech)
- [ ] Cutscenes: streamed intro audio, sequences *(in progress)*
- [ ] Settings menu (volumes, display)
- [ ] Graphics mod: upscaling
---
## 1. Visuals: "beautiful on a big screen"
- [ ] **Clean scaling**: 4:3 aspect correction (×1.2 vertical), centered image, vsync; game logic at
46 Hz, display at the monitor's refresh rate
- [ ] **Selectable filters**: sharp pixels (integer scale), smooth (xBRZ, ScaleFX), CRT shader
- [ ] **HD pack**: backgrounds and sprites upscaled with AI then retouched, loaded instead of the
originals
- [ ] **Original ↔ HD toggle** on a key (F1), with a crossfade
- [ ] **Widescreen without black bars**: sides filled with a blurred background or an illustration
- [ ] **Upscaled FLC cutscenes**
- [ ] HD font for text and subtitles
## 2. Sound
- [ ] High-quality MIDI music: SoundFont, optional Roland MT-32 mode
- [ ] Re-recorded music pack, loaded instead of the originals
- [ ] Cleaned-up speech (denoising, upscaling)
- [ ] Separate volumes: music, speech, effects
## 3. Modern quality of life
- [ ] Show hotspots while holding Space
- [ ] Double-click an exit to change location instantly
- [ ] Skip dialogue lines with a click; speed up Bud's walking
- [ ] Autosave; unlimited save slots with thumbnails
- [ ] Gamepad: joystick cursor, verb wheel
- [ ] Always-on subtitles
## 4. Languages and accessibility
- [ ] Language choice at startup (French, English, depending on the version owned)
- [ ] Community translations (text in the `.C` files)
- [ ] Larger fonts, high-contrast mode
## 5. Open to mods
- [ ] `mods/` folder: each mod replaces images, sounds or text; stacked by priority
- [ ] Developer mode (F12): hotspots and walk paths, variables, jump to any location, captures
(building on `tucker-viewer`)
- [ ] Access to game functions in C, following the `overrides.txt` / `overrides.c` model
- [ ] Mod format documentation
## 6. Preservation and distribution
- [ ] Legal setup: on first launch, the engine asks for the CD or ISO, checks the hashes, then
generates and compiles
- [ ] Strict `.gitignore`: `build/`, `frames*/`, `saves/`, `third_party/dl/`, anything from the ISO
- [ ] Web version (Emscripten), playable with the player's own files
- [ ] Technical wiki based on `ANALYSE_TUCKER.md` (formats, cutscene language, structures)
- [ ] README with a before/after gallery (slider, GIF or video)
---
## Top 5 for the first public release
1. Original ↔ HD toggle on a key
2. Hotspot display
3. High-quality music
4. Install from the user's CD, no game files in the repository
5. README with a before/after gallery
+2
View File
@@ -1,5 +1,7 @@
# DoubleTroubleRecomp : feuille de route
🇫🇷 **Français** · 🇺🇸 [English](ROADMAP.en.md)
Recompilation statique de *Bud Tucker in Double Trouble* (DOS, 1996) en C, pour redonner vie au jeu
sur les machines et les écrans d'aujourd'hui.