Launcher en allemand, espagnol et polonais ; README et guide traduits
- Launcher : 5 langues (menu à drapeaux), traductions dans assets/i18n.tsv (repli sur l'anglais, test de couverture), musique DE/ES/PL selon la langue. - Carte Compilation : choix « Version du jeu » préparé (seul le français est actif, les autres marqués « bientôt »). - README et guide en DE/ES/PL, avec captures ; liens vers la doc technique en anglais. Bandeau des 5 langues sur les README et guides FR/EN. - Wiki : pages Anleitung, Guia, Poradnik. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No files matched your search
@@ -0,0 +1,184 @@
|
|||||||
|
<p align="center"><img src="docs/images/logo-en.png" alt="DoubleTroubleRecomp"></p>
|
||||||
|
|
||||||
|
🇫🇷 [Français](README.md) · 🇺🇸 [English](README.en.md) · 🇩🇪 **Deutsch** · 🇪🇸 [Español](README.es.md) · 🇵🇱 [Polski](README.pl.md)
|
||||||
|
|
||||||
|
**Statische Rekompilierung von *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) in nativen C-Code.**
|
||||||
|
|
||||||
|
Kein DOSBox mehr: Der ursprüngliche x86-Code wird in C übersetzt, für Windows kompiliert und an
|
||||||
|
SDL2 angebunden. Ziel ist es, das Spiel wiederzubeleben: scharf und flüssig auf großen
|
||||||
|
Bildschirmen, von 1080p bis 4K, offen für Mods, ohne die Originaldateien des Spiels jemals zu
|
||||||
|
verändern oder weiterzugeben.
|
||||||
|
|
||||||
|
> ⚠️ In Arbeit. **Sie müssen das Originalspiel besitzen**: Dieses Repository enthält keine
|
||||||
|
> Spieldateien und keinen aus seinen ausführbaren Dateien erzeugten Code.
|
||||||
|
|
||||||
|
> 💿 **Derzeit unterstützte Version: die französische CD als ISO-Abbild**, die auf [dieser Abandonware-France-Seite](https://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=662&fic=liens) (Abschnitt „Version ISO“, dort ist alles erklärt). So prüfen Sie es: `TUCKER\TUCKER.EXE` ist **284 677 Bytes** groß. Die englische, deutsche, spanische und polnische Version werden noch nicht unterstützt: Ihre ausführbare Datei ist anders ([Details, auf Englisch](docs/TECHNIQUE.en.md#7-game-versions)).
|
||||||
|
|
||||||
|
> ⚠️ **Derzeit: HD-Hintergründe ja, HD-Sprites nein.** Die HD-Hintergründe sehen gut aus, aber
|
||||||
|
> HD-Figuren und -Objekte (Sprites) sind noch fehlerhaft: abgeschnittene Bilder, manche Figuren
|
||||||
|
> erscheinen nicht. Es wird empfohlen, mit einem HD-Paket **ohne Häkchen bei „Figuren und
|
||||||
|
> Objekte“** zu spielen (im Launcher oder im Spiel mit F12).
|
||||||
|
|
||||||
|
### 📖 [Vollständige Anleitung: installieren, kompilieren, spielen](docs/GUIDE.de.md)
|
||||||
|
|
||||||
|
Alles Schritt für Schritt, vom leeren PC bis zum Spiel in 4K: zu installierende Werkzeuge,
|
||||||
|
Launcher, Filter, HD-Paket, Mods, Spielstände, Fehlerbehebung. Auch im
|
||||||
|
[Wiki](https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki).
|
||||||
|
|
||||||
|
### 🎨 [HD-Texturen: exportieren, hochskalieren, nachbearbeiten (auf Englisch)](docs/TEXTURES.en.md)
|
||||||
|
|
||||||
|
HD-Hintergrundpaket mit einem Klick mit [Upscayl](https://upscayl.org) (kostenlos, **separat zu
|
||||||
|
installieren**) oder mit dem Werkzeug Ihrer Wahl.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Stand
|
||||||
|
|
||||||
|
| Teil | Stand |
|
||||||
|
|---|---|
|
||||||
|
| Übersetzung x86 → C (`TUCKER.EXE`: 960 Funktionen, `INTRO.EXE`: 540) | ✅ |
|
||||||
|
| Laufzeit: CPU, x87-FPU, DOS/4GW, VGA, PIT-Timer | ✅ |
|
||||||
|
| Intro (Merit-Logo, Titel, Labor) | ✅ |
|
||||||
|
| Spiel: Orte, Oberfläche, Verben, Laufen | ✅ spielbar, im Test |
|
||||||
|
| Ton: SDL2-Mixer, Emulation des AIL-Treibers (Effekte, Musik, Sprache) | 🚧 |
|
||||||
|
| Zwischensequenzen | 🚧 |
|
||||||
|
| Einstellungsmenü im Spiel (F12), `settings.ini` gemeinsam mit dem Launcher | ✅ |
|
||||||
|
| OpenGL-Darstellung, Filter (scharf, weich, xBR, CRT), 4:3-Format | ✅ |
|
||||||
|
| Mods und HD-Hintergrundpaket (Upscayl oder beliebiges Werkzeug) | ✅ |
|
||||||
|
|
||||||
|
Die vollständige Roadmap (auf Englisch): [docs/ROADMAP.en.md](docs/ROADMAP.en.md).
|
||||||
|
|
||||||
|
### 🔍 [Technische Dokumentation: was wir über das Spiel wissen (auf Englisch)](docs/TECHNIQUE.en.md)
|
||||||
|
|
||||||
|
Die ausführbare Datei, die Spielschleife, die Dateiformate, die Sprache der Zwischensequenzen, die
|
||||||
|
Spielversionen und wie die Rekompilierung funktioniert. Das vollständige Reverse-Engineering-Notizbuch:
|
||||||
|
[docs/ANALYSE.en.md](docs/ANALYSE.en.md).
|
||||||
|
|
||||||
|
## Funktionsweise
|
||||||
|
|
||||||
|
```
|
||||||
|
TUCKER.EXE / INTRO.EXE (LE, DOS/4GW, aus der Kopie des Spielers)
|
||||||
|
│
|
||||||
|
▼ tools/recomp.py (Capstone, rekursiver Abstieg + Relokationen)
|
||||||
|
build/gen_*/*.c ─────────► eine C-Funktion pro x86-Funktion
|
||||||
|
│
|
||||||
|
▼ MSVC
|
||||||
|
runtime/ ── cpu, fpu, loader, dos, machine, audio, ail
|
||||||
|
── overrides.c von Hand neu geschriebene Spielfunktionen (Einstiegspunkt für Mods)
|
||||||
|
── host_sdl.c Fenster, Tastatur, Maus, Ton
|
||||||
|
│
|
||||||
|
▼
|
||||||
|
build/tucker.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Getreue Übersetzung**: Jede Anweisung wird zu C-Code, der auf den emulierten CPU-Zustand wirkt
|
||||||
|
(Register, Stack im Speicher, verzögert berechnete Flags). Das ursprüngliche Verhalten bleibt erhalten.
|
||||||
|
- **Overrides**: `runtime/overrides_tucker.txt` und `runtime/overrides_intro.txt` listen die Adressen
|
||||||
|
der Funktionen auf, die durch handgeschriebenen C-Code (`overrides.c`) ersetzt werden. Die
|
||||||
|
Originalfunktion bleibt als `F_xxxxxxxx_orig` verfügbar. Ton, Systemaufrufe und später Darstellung
|
||||||
|
und Mods laufen alle darüber.
|
||||||
|
|
||||||
|
## Launcher (am einfachsten)
|
||||||
|
|
||||||
|
Der grafische Launcher erledigt alles für Sie: Spiel auswählen (Ordner, Laufwerk oder `.iso`-Abbild,
|
||||||
|
automatisch eingebunden), Voraussetzungen prüfen, `capstone` installieren oder SDL2 mit einem Klick
|
||||||
|
herunterladen, erzeugen und kompilieren, dann das Spiel starten. Er stellt außerdem Bild und Ton ein
|
||||||
|
(mit Filtervorschau), verwaltet Spielstände und Mods und erstellt das HD-Paket. Er ist in 5 Sprachen
|
||||||
|
verfügbar: Französisch, Englisch, Deutsch, Spanisch und Polnisch.
|
||||||
|
|
||||||
|
<p align="center"><img src="docs/images/launcher-de-3-accueil.jpg" alt="Der Launcher" width="800"></p>
|
||||||
|
|
||||||
|
```bat
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
target\release\DoubleTroubleLauncher.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
Die Einstellungen werden in `%APPDATA%\DoubleTroubleRecomp\launcher.ini` gespeichert.
|
||||||
|
|
||||||
|
## Von Hand kompilieren
|
||||||
|
|
||||||
|
### Voraussetzungen
|
||||||
|
|
||||||
|
- Windows 10/11 x64
|
||||||
|
- [Visual Studio Build Tools 2022](https://visualstudio.microsoft.com/downloads/) (C++-Werkzeuge)
|
||||||
|
- Python 3.12 mit `capstone` 5: `pip install capstone`
|
||||||
|
- [SDL2 2.32.10](https://github.com/libsdl-org/SDL/releases) (`SDL2-devel-2.32.10-VC.zip`),
|
||||||
|
entpackt nach `third_party/SDL2-2.32.10/`
|
||||||
|
- Das Originalspiel (CD oder ISO), **französische Version** (siehe oben)
|
||||||
|
|
||||||
|
### Spieldateien
|
||||||
|
|
||||||
|
Standardmäßig sucht das Projekt nach:
|
||||||
|
|
||||||
|
| Option | Standard | Inhalt |
|
||||||
|
|---|---|---|
|
||||||
|
| `--cd` | `../extracted/iso/TUCKER` | Dateien der CD (darunter `TUCKER.EXE`, `INTRO.EXE`) |
|
||||||
|
| `--hd` | `../Install/C/TUCKER` | auf der Festplatte installierte Dateien |
|
||||||
|
| `--root` | `../Install/C` | Wurzel des vom Spiel gesehenen Laufwerks „C:“ |
|
||||||
|
| `--saves` | `saves` | Spielstände |
|
||||||
|
|
||||||
|
### Kompilieren
|
||||||
|
|
||||||
|
```bat
|
||||||
|
build.bat :: erzeugt das C aus den EXE-Dateien des Spielers und kompiliert dann
|
||||||
|
build.bat nogen :: kompiliert neu, ohne neu zu erzeugen
|
||||||
|
```
|
||||||
|
|
||||||
|
Ergebnis: `build\tucker.exe` (SDL2) und `build\tucker_headless.exe` (ohne Anzeige, für Tests).
|
||||||
|
|
||||||
|
## Starten
|
||||||
|
|
||||||
|
```bat
|
||||||
|
build\tucker.exe --son
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Wirkung |
|
||||||
|
|---|---|
|
||||||
|
| `--son` | aktiviert den Ton |
|
||||||
|
| `--sans-intro` | überspringt das Intro |
|
||||||
|
| `--intro` | spielt nur das Intro |
|
||||||
|
| `--resolution BxH` | Fenstergröße in Pixeln (zum Beispiel `1920x1080`) |
|
||||||
|
| `--echelle N` | alte Einstellung ×N (Standard 3: 960×720) |
|
||||||
|
| `--plein` | startet im Vollbild |
|
||||||
|
| `--filtre NAME` | `nearest`, `smooth`, `xbr` oder `crt` |
|
||||||
|
| `--sans-mods`, `--sans-hd` | ohne Mods, ohne HD-Paket |
|
||||||
|
| `-v` | ausführliches Protokoll |
|
||||||
|
|
||||||
|
**F11** oder **Alt+Eingabe**: Vollbild ein/aus. **F10**: HD-Paket ein/aus. **Leertaste** (gedrückt
|
||||||
|
halten): anklickbare Bereiche. **F12**: Einstellungsmenü. Alle Optionen und Einstellungsschlüssel (auf
|
||||||
|
Englisch): [docs/SETTINGS.en.md](docs/SETTINGS.en.md). Mods und HD-Paket: [docs/TEXTURES.en.md](docs/TEXTURES.en.md)
|
||||||
|
(Anleitung) und [docs/MODS.en.md](docs/MODS.en.md) (Format).
|
||||||
|
|
||||||
|
## Aufbau
|
||||||
|
|
||||||
|
```
|
||||||
|
build.bat Build-Skript (MSVC)
|
||||||
|
tools/
|
||||||
|
le.py Leser für das LE-Format (DOS/4GW)
|
||||||
|
recomp.py Übersetzer x86 → C
|
||||||
|
runtime/ C-Laufzeit (CPU, DOS, Hardware, Ton, Hosts, Overrides)
|
||||||
|
launcher/ grafischer Launcher (Rust, egui)
|
||||||
|
assets/icon/ Projektsymbol (tools/make_icon.py)
|
||||||
|
docs/ Anleitung, Einstellungen, Mods, Roadmap
|
||||||
|
mods/ Ihre Mods und HD-Pakete (lokal erstellt, vom Repository ausgeschlossen)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Rechtliches
|
||||||
|
|
||||||
|
*Bud Tucker in Double Trouble* © 1996 Merit Studios. Dieses Projekt steht in keiner Verbindung zu
|
||||||
|
den Rechteinhabern. Es enthält und verbreitet weder Spieldateien noch aus seinen ausführbaren
|
||||||
|
Dateien abgeleiteten Code: Der C-Code wird lokal aus der eigenen Kopie des Spielers in `build/`
|
||||||
|
erzeugt (vom Repository ausgeschlossen).
|
||||||
|
|
||||||
|
## Lizenz
|
||||||
|
|
||||||
|
**Open-Source**-Projekt unter der [MIT-Lizenz](LICENSE): Sie dürfen den Code übernehmen, ändern,
|
||||||
|
weitergeben oder darauf aufbauen, frei, **solange Sie den Autor nennen** (LinkAtPlug), indem Sie den
|
||||||
|
Urheberrechtshinweis der Datei `LICENSE` beibehalten.
|
||||||
|
|
||||||
|
Die Lizenz gilt für den Code und die Dokumentation des Projekts, nicht für das Spiel (© 1996 Merit
|
||||||
|
Studios), von dem keine Datei mitgeliefert wird. SDL2 (zlib-Lizenz) und die Schrift Bangers (SIL Open
|
||||||
|
Font License) behalten ihre eigenen Lizenzen.
|
||||||
|
|
||||||
|
☕ Gefällt Ihnen das Projekt? [Spendieren Sie mir einen Kaffee](https://buymeacoffee.com/linkatplug).
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<p align="center"><img src="docs/images/logo-en.png" alt="DoubleTroubleRecomp"></p>
|
<p align="center"><img src="docs/images/logo-en.png" alt="DoubleTroubleRecomp"></p>
|
||||||
|
|
||||||
🇫🇷 [Français](README.md) · 🇺🇸 **English**
|
🇫🇷 [Français](README.md) · 🇺🇸 **English** · 🇩🇪 [Deutsch](README.de.md) · 🇪🇸 [Español](README.es.md) · 🇵🇱 [Polski](README.pl.md)
|
||||||
|
|
||||||
**Static recompilation of *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) to native C.**
|
**Static recompilation of *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) to native C.**
|
||||||
|
|
||||||
@@ -80,7 +80,8 @@ build/tucker.exe
|
|||||||
The graphical launcher does everything for you: pick the game (folder, drive, or `.iso` image,
|
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,
|
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),
|
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.
|
manages saved games and mods, and creates the HD pack. It is available in 5 languages: French,
|
||||||
|
English, German, Spanish and Polish.
|
||||||
|
|
||||||
<p align="center"><img src="docs/images/launcher-en-3-accueil.jpg" alt="The launcher" width="800"></p>
|
<p align="center"><img src="docs/images/launcher-en-3-accueil.jpg" alt="The launcher" width="800"></p>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,184 @@
|
|||||||
|
<p align="center"><img src="docs/images/logo-en.png" alt="DoubleTroubleRecomp"></p>
|
||||||
|
|
||||||
|
🇫🇷 [Français](README.md) · 🇺🇸 [English](README.en.md) · 🇩🇪 [Deutsch](README.de.md) · 🇪🇸 **Español** · 🇵🇱 [Polski](README.pl.md)
|
||||||
|
|
||||||
|
**Recompilación estática de *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) a C nativo.**
|
||||||
|
|
||||||
|
Adiós a DOSBox: el código x86 original se traduce a C, se compila para Windows y se conecta a SDL2.
|
||||||
|
El objetivo es devolverle la vida al juego: nítido y fluido en pantallas grandes, de 1080p a 4K,
|
||||||
|
abierto a los mods, sin modificar ni redistribuir nunca los archivos originales del juego.
|
||||||
|
|
||||||
|
> ⚠️ En desarrollo. **Necesitas tener el juego original**: este repositorio no contiene ningún
|
||||||
|
> archivo del juego ni código generado a partir de sus ejecutables.
|
||||||
|
|
||||||
|
> 💿 **Versión compatible por ahora: el CD francés, como imagen ISO**, la de [esta página de Abandonware France](https://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=662&fic=liens) (sección «Version ISO», allí se explica todo). Cómo comprobarlo: `TUCKER\TUCKER.EXE` ocupa **284 677 bytes**. Las versiones inglesa, alemana, española y polaca aún no son compatibles: su ejecutable es distinto ([detalles, en inglés](docs/TECHNIQUE.en.md#7-game-versions)).
|
||||||
|
|
||||||
|
> ⚠️ **Por ahora: fondos HD sí, sprites HD no.** Los fondos HD se ven bien, pero los personajes y
|
||||||
|
> objetos HD (sprites) todavía fallan: imágenes cortadas, algunos personajes no aparecen. Se
|
||||||
|
> recomienda jugar con un pack HD **con «Personajes y objetos» desmarcado** (en el launcher, o en el
|
||||||
|
> juego con F12).
|
||||||
|
|
||||||
|
### 📖 [Guía completa: instalar, compilar y jugar](docs/GUIDE.es.md)
|
||||||
|
|
||||||
|
Todo paso a paso, desde un PC vacío hasta el juego en 4K: herramientas que instalar, launcher,
|
||||||
|
filtros, pack HD, mods, partidas guardadas, solución de problemas. También en la
|
||||||
|
[wiki](https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki).
|
||||||
|
|
||||||
|
### 🎨 [Texturas HD: exportar, ampliar, retocar (en inglés)](docs/TEXTURES.en.md)
|
||||||
|
|
||||||
|
Pack de fondos HD en un clic con [Upscayl](https://upscayl.org) (gratuito, **se instala aparte**), o
|
||||||
|
con la herramienta que prefieras.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Estado
|
||||||
|
|
||||||
|
| Parte | Estado |
|
||||||
|
|---|---|
|
||||||
|
| Traducción x86 → C (`TUCKER.EXE`: 960 funciones, `INTRO.EXE`: 540) | ✅ |
|
||||||
|
| Runtime: CPU, FPU x87, DOS/4GW, VGA, temporizador PIT | ✅ |
|
||||||
|
| Intro (logo de Merit, título, laboratorio) | ✅ |
|
||||||
|
| Juego: lugares, interfaz, verbos, desplazamiento | ✅ jugable, en pruebas |
|
||||||
|
| Sonido: mezclador SDL2, emulación del controlador AIL (efectos, música, voces) | 🚧 |
|
||||||
|
| Cinemáticas | 🚧 |
|
||||||
|
| Menú de ajustes en el juego (F12), `settings.ini` compartido con el launcher | ✅ |
|
||||||
|
| Renderizado OpenGL, filtros (nítido, suave, xBR, CRT), formato 4:3 | ✅ |
|
||||||
|
| Mods y pack de fondos HD (Upscayl o cualquier herramienta) | ✅ |
|
||||||
|
|
||||||
|
La hoja de ruta completa (en inglés): [docs/ROADMAP.en.md](docs/ROADMAP.en.md).
|
||||||
|
|
||||||
|
### 🔍 [Documentación técnica: lo que sabemos del juego (en inglés)](docs/TECHNIQUE.en.md)
|
||||||
|
|
||||||
|
El ejecutable, el bucle de juego, los formatos de archivo, el lenguaje de las cinemáticas, las
|
||||||
|
versiones del juego y cómo funciona la recompilación. El cuaderno completo de ingeniería inversa:
|
||||||
|
[docs/ANALYSE.en.md](docs/ANALYSE.en.md).
|
||||||
|
|
||||||
|
## Cómo funciona
|
||||||
|
|
||||||
|
```
|
||||||
|
TUCKER.EXE / INTRO.EXE (LE, DOS/4GW, de la copia del jugador)
|
||||||
|
│
|
||||||
|
▼ tools/recomp.py (Capstone, descenso recursivo + reubicaciones)
|
||||||
|
build/gen_*/*.c ─────────► una función C por cada función x86
|
||||||
|
│
|
||||||
|
▼ MSVC
|
||||||
|
runtime/ ── cpu, fpu, loader, dos, machine, audio, ail
|
||||||
|
── overrides.c funciones del juego reescritas a mano (punto de entrada de los mods)
|
||||||
|
── host_sdl.c ventana, teclado, ratón, sonido
|
||||||
|
│
|
||||||
|
▼
|
||||||
|
build/tucker.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Traducción fiel**: cada instrucción se convierte en código C que actúa sobre el estado de la CPU
|
||||||
|
emulada (registros, pila en memoria, flags calculados de forma diferida). Se conserva el
|
||||||
|
comportamiento original.
|
||||||
|
- **Overrides**: `runtime/overrides_tucker.txt` y `runtime/overrides_intro.txt` enumeran las
|
||||||
|
direcciones de las funciones sustituidas por C escrito a mano (`overrides.c`). La función original
|
||||||
|
sigue disponible como `F_xxxxxxxx_orig`. El sonido, las llamadas al sistema y, más adelante, el
|
||||||
|
renderizado y los mods pasan por ahí.
|
||||||
|
|
||||||
|
## Launcher (lo más fácil)
|
||||||
|
|
||||||
|
El launcher gráfico lo hace todo por ti: elegir el juego (carpeta, unidad o imagen `.iso`, montada
|
||||||
|
automáticamente), comprobar los requisitos, instalar `capstone` o descargar SDL2 en un clic, generar y
|
||||||
|
compilar, y luego lanzar el juego. También ajusta la imagen y el sonido (con vista previa de los
|
||||||
|
filtros), gestiona las partidas guardadas y los mods, y crea el pack HD. Está disponible en 5 idiomas:
|
||||||
|
francés, inglés, alemán, español y polaco.
|
||||||
|
|
||||||
|
<p align="center"><img src="docs/images/launcher-es-3-accueil.jpg" alt="El launcher" width="800"></p>
|
||||||
|
|
||||||
|
```bat
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
target\release\DoubleTroubleLauncher.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
Los ajustes se guardan en `%APPDATA%\DoubleTroubleRecomp\launcher.ini`.
|
||||||
|
|
||||||
|
## Compilar a mano
|
||||||
|
|
||||||
|
### Requisitos
|
||||||
|
|
||||||
|
- Windows 10/11 x64
|
||||||
|
- [Visual Studio Build Tools 2022](https://visualstudio.microsoft.com/downloads/) (herramientas C++)
|
||||||
|
- Python 3.12 con `capstone` 5: `pip install capstone`
|
||||||
|
- [SDL2 2.32.10](https://github.com/libsdl-org/SDL/releases) (`SDL2-devel-2.32.10-VC.zip`),
|
||||||
|
descomprimido en `third_party/SDL2-2.32.10/`
|
||||||
|
- El juego original (CD o ISO), **versión francesa** (ver arriba)
|
||||||
|
|
||||||
|
### Archivos del juego
|
||||||
|
|
||||||
|
Por defecto, el proyecto busca:
|
||||||
|
|
||||||
|
| Opción | Por defecto | Contenido |
|
||||||
|
|---|---|---|
|
||||||
|
| `--cd` | `../extracted/iso/TUCKER` | archivos del CD (entre ellos `TUCKER.EXE`, `INTRO.EXE`) |
|
||||||
|
| `--hd` | `../Install/C/TUCKER` | archivos instalados en el disco |
|
||||||
|
| `--root` | `../Install/C` | raíz de la unidad «C:» que ve el juego |
|
||||||
|
| `--saves` | `saves` | partidas guardadas |
|
||||||
|
|
||||||
|
### Compilación
|
||||||
|
|
||||||
|
```bat
|
||||||
|
build.bat :: genera el C a partir de los EXE del jugador y luego compila
|
||||||
|
build.bat nogen :: recompila sin regenerar
|
||||||
|
```
|
||||||
|
|
||||||
|
Resultado: `build\tucker.exe` (SDL2) y `build\tucker_headless.exe` (sin pantalla, para pruebas).
|
||||||
|
|
||||||
|
## Ejecutar
|
||||||
|
|
||||||
|
```bat
|
||||||
|
build\tucker.exe --son
|
||||||
|
```
|
||||||
|
|
||||||
|
| Opción | Efecto |
|
||||||
|
|---|---|
|
||||||
|
| `--son` | activa el sonido |
|
||||||
|
| `--sans-intro` | salta la intro |
|
||||||
|
| `--intro` | reproduce solo la intro |
|
||||||
|
| `--resolution AxA` | tamaño de la ventana en píxeles (por ejemplo `1920x1080`) |
|
||||||
|
| `--echelle N` | antiguo ajuste ×N (por defecto 3: 960×720) |
|
||||||
|
| `--plein` | arranca en pantalla completa |
|
||||||
|
| `--filtre NOMBRE` | `nearest`, `smooth`, `xbr` o `crt` |
|
||||||
|
| `--sans-mods`, `--sans-hd` | sin mods, sin pack HD |
|
||||||
|
| `-v` | registro detallado |
|
||||||
|
|
||||||
|
**F11** o **Alt+Intro**: pantalla completa sí/no. **F10**: pack HD sí/no. **Espacio** (mantenido):
|
||||||
|
zonas clicables. **F12**: menú de ajustes. Todas las opciones y claves de ajustes (en inglés):
|
||||||
|
[docs/SETTINGS.en.md](docs/SETTINGS.en.md). Mods y pack HD: [docs/TEXTURES.en.md](docs/TEXTURES.en.md)
|
||||||
|
(tutorial) y [docs/MODS.en.md](docs/MODS.en.md) (formato).
|
||||||
|
|
||||||
|
## Estructura
|
||||||
|
|
||||||
|
```
|
||||||
|
build.bat script de compilación (MSVC)
|
||||||
|
tools/
|
||||||
|
le.py lector del formato LE (DOS/4GW)
|
||||||
|
recomp.py traductor x86 → C
|
||||||
|
runtime/ runtime C (CPU, DOS, hardware, sonido, hosts, overrides)
|
||||||
|
launcher/ launcher gráfico (Rust, egui)
|
||||||
|
assets/icon/ icono del proyecto (tools/make_icon.py)
|
||||||
|
docs/ guía, ajustes, mods, hoja de ruta
|
||||||
|
mods/ tus mods y packs HD (creados en local, excluidos del repositorio)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Aviso legal
|
||||||
|
|
||||||
|
*Bud Tucker in Double Trouble* © 1996 Merit Studios. Este proyecto no está afiliado a ningún titular
|
||||||
|
de derechos. No contiene ni distribuye ningún archivo del juego ni código derivado de sus ejecutables:
|
||||||
|
el código C se genera en local, a partir de la copia del propio jugador, en `build/` (excluido del
|
||||||
|
repositorio).
|
||||||
|
|
||||||
|
## Licencia
|
||||||
|
|
||||||
|
Proyecto **de código abierto**, bajo la [licencia MIT](LICENSE): puedes tomar el código, modificarlo,
|
||||||
|
redistribuirlo o partir de él, libremente, **siempre que cites al autor** (LinkAtPlug) conservando el
|
||||||
|
aviso de copyright del archivo `LICENSE`.
|
||||||
|
|
||||||
|
La licencia cubre el código y la documentación del proyecto, no el juego (© 1996 Merit Studios), del
|
||||||
|
que no se proporciona ningún archivo. SDL2 (licencia zlib) y la fuente Bangers (SIL Open Font License)
|
||||||
|
conservan sus propias licencias.
|
||||||
|
|
||||||
|
☕ ¿Te gusta el proyecto? [Invítame a un café](https://buymeacoffee.com/linkatplug).
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<p align="center"><img src="docs/images/logo-fr.png" alt="DoubleTroubleRecomp"></p>
|
<p align="center"><img src="docs/images/logo-fr.png" alt="DoubleTroubleRecomp"></p>
|
||||||
|
|
||||||
🇫🇷 **Français** · 🇺🇸 [English](README.en.md)
|
🇫🇷 **Français** · 🇺🇸 [English](README.en.md) · 🇩🇪 [Deutsch](README.de.md) · 🇪🇸 [Español](README.es.md) · 🇵🇱 [Polski](README.pl.md)
|
||||||
|
|
||||||
**Recompilation statique de *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) en C natif.**
|
**Recompilation statique de *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) en C natif.**
|
||||||
|
|
||||||
@@ -83,8 +83,8 @@ build/tucker.exe
|
|||||||
Le launcher graphique fait tout à votre place : choisir le jeu (dossier, lecteur ou image `.iso`
|
Le launcher graphique fait tout à votre place : choisir le jeu (dossier, lecteur ou image `.iso`
|
||||||
montée automatiquement), vérifier les prérequis, installer `capstone` ou télécharger SDL2 en un
|
montée automatiquement), vérifier les prérequis, installer `capstone` ou télécharger SDL2 en un
|
||||||
clic, générer et compiler, puis lancer le jeu. Il règle aussi l'affichage et le son (avec un
|
clic, générer et compiler, puis lancer le jeu. Il règle aussi l'affichage et le son (avec un
|
||||||
aperçu des filtres), gère les sauvegardes, les mods et crée le pack HD. Il est en français et en
|
aperçu des filtres), gère les sauvegardes, les mods et crée le pack HD. Il est disponible en 5 langues :
|
||||||
anglais.
|
français, anglais, allemand, espagnol et polonais.
|
||||||
|
|
||||||
<p align="center"><img src="docs/images/launcher-fr-3-accueil.jpg" alt="Le launcher" width="800"></p>
|
<p align="center"><img src="docs/images/launcher-fr-3-accueil.jpg" alt="Le launcher" width="800"></p>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,181 @@
|
|||||||
|
<p align="center"><img src="docs/images/logo-en.png" alt="DoubleTroubleRecomp"></p>
|
||||||
|
|
||||||
|
🇫🇷 [Français](README.md) · 🇺🇸 [English](README.en.md) · 🇩🇪 [Deutsch](README.de.md) · 🇪🇸 [Español](README.es.md) · 🇵🇱 **Polski**
|
||||||
|
|
||||||
|
**Statyczna rekompilacja gry *Bud Tucker in Double Trouble* (Merit Studios, DOS, 1996) do natywnego C.**
|
||||||
|
|
||||||
|
Koniec z DOSBoksem: oryginalny kod x86 jest tłumaczony na C, kompilowany dla Windows i podłączony do
|
||||||
|
SDL2. Celem jest przywrócenie gry do życia: ostra i płynna na dużych ekranach, od 1080p do 4K, otwarta
|
||||||
|
na mody, bez modyfikowania i rozpowszechniania oryginalnych plików gry.
|
||||||
|
|
||||||
|
> ⚠️ Prace w toku. **Musisz mieć oryginalną grę**: to repozytorium nie zawiera żadnych plików gry
|
||||||
|
> ani kodu wygenerowanego z jej plików wykonywalnych.
|
||||||
|
|
||||||
|
> 💿 **Obecnie obsługiwana wersja: francuskie CD jako obraz ISO**, ta z [tej strony Abandonware France](https://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=662&fic=liens) (sekcja „Version ISO”, tam wszystko jest wyjaśnione). Jak sprawdzić: `TUCKER\TUCKER.EXE` ma **284 677 bajtów**. Wersje angielska, niemiecka, hiszpańska i polska nie są jeszcze obsługiwane: ich plik wykonywalny jest inny ([szczegóły, po angielsku](docs/TECHNIQUE.en.md#7-game-versions)).
|
||||||
|
|
||||||
|
> ⚠️ **Na razie: tła HD tak, sprite'y HD nie.** Tła HD wyglądają dobrze, ale postacie i przedmioty HD
|
||||||
|
> (sprite'y) wciąż mają błędy: ucięte obrazki, niektóre postacie się nie pojawiają. Zalecamy grać
|
||||||
|
> z pakietem HD **z odznaczonym „Postacie i przedmioty”** (w launcherze lub w grze klawiszem F12).
|
||||||
|
|
||||||
|
### 📖 [Pełny poradnik: instalacja, kompilacja i gra](docs/GUIDE.pl.md)
|
||||||
|
|
||||||
|
Wszystko krok po kroku, od pustego komputera do gry w 4K: narzędzia do zainstalowania, launcher,
|
||||||
|
filtry, pakiet HD, mody, zapisy gry, rozwiązywanie problemów. Także na
|
||||||
|
[wiki](https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki).
|
||||||
|
|
||||||
|
### 🎨 [Tekstury HD: eksport, powiększanie, retusz (po angielsku)](docs/TEXTURES.en.md)
|
||||||
|
|
||||||
|
Pakiet teł HD jednym kliknięciem z [Upscayl](https://upscayl.org) (darmowy, **instalowany osobno**)
|
||||||
|
albo dowolnym innym narzędziem.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Stan prac
|
||||||
|
|
||||||
|
| Część | Stan |
|
||||||
|
|---|---|
|
||||||
|
| Tłumaczenie x86 → C (`TUCKER.EXE`: 960 funkcji, `INTRO.EXE`: 540) | ✅ |
|
||||||
|
| Środowisko uruchomieniowe: CPU, FPU x87, DOS/4GW, VGA, zegar PIT | ✅ |
|
||||||
|
| Intro (logo Merit, tytuł, laboratorium) | ✅ |
|
||||||
|
| Gra: lokacje, interfejs, czasowniki, chodzenie | ✅ grywalna, w testach |
|
||||||
|
| Dźwięk: mikser SDL2, emulacja sterownika AIL (efekty, muzyka, mowa) | 🚧 |
|
||||||
|
| Przerywniki filmowe | 🚧 |
|
||||||
|
| Menu ustawień w grze (F12), `settings.ini` wspólny z launcherem | ✅ |
|
||||||
|
| Renderowanie OpenGL, filtry (ostry, gładki, xBR, CRT), format 4:3 | ✅ |
|
||||||
|
| Mody i pakiet teł HD (Upscayl lub dowolne narzędzie) | ✅ |
|
||||||
|
|
||||||
|
Pełna mapa drogowa (po angielsku): [docs/ROADMAP.en.md](docs/ROADMAP.en.md).
|
||||||
|
|
||||||
|
### 🔍 [Dokumentacja techniczna: co wiemy o grze (po angielsku)](docs/TECHNIQUE.en.md)
|
||||||
|
|
||||||
|
Plik wykonywalny, pętla gry, formaty plików, język przerywników, wersje gry i działanie rekompilacji.
|
||||||
|
Pełny notatnik inżynierii wstecznej: [docs/ANALYSE.en.md](docs/ANALYSE.en.md).
|
||||||
|
|
||||||
|
## Jak to działa
|
||||||
|
|
||||||
|
```
|
||||||
|
TUCKER.EXE / INTRO.EXE (LE, DOS/4GW, z kopii gracza)
|
||||||
|
│
|
||||||
|
▼ tools/recomp.py (Capstone, zejście rekurencyjne + relokacje)
|
||||||
|
build/gen_*/*.c ─────────► jedna funkcja C na każdą funkcję x86
|
||||||
|
│
|
||||||
|
▼ MSVC
|
||||||
|
runtime/ ── cpu, fpu, loader, dos, machine, audio, ail
|
||||||
|
── overrides.c funkcje gry przepisane ręcznie (punkt zaczepienia modów)
|
||||||
|
── host_sdl.c okno, klawiatura, mysz, dźwięk
|
||||||
|
│
|
||||||
|
▼
|
||||||
|
build/tucker.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Wierne tłumaczenie**: każda instrukcja staje się kodem C działającym na stanie emulowanego CPU
|
||||||
|
(rejestry, stos w pamięci, flagi liczone leniwie). Oryginalne zachowanie zostaje zachowane.
|
||||||
|
- **Overrides**: `runtime/overrides_tucker.txt` i `runtime/overrides_intro.txt` zawierają adresy
|
||||||
|
funkcji zastąpionych ręcznie napisanym C (`overrides.c`). Oryginalna funkcja pozostaje dostępna jako
|
||||||
|
`F_xxxxxxxx_orig`. Przez ten mechanizm przechodzi dźwięk, wywołania systemowe, a później
|
||||||
|
renderowanie i mody.
|
||||||
|
|
||||||
|
## Launcher (najprościej)
|
||||||
|
|
||||||
|
Graficzny launcher zrobi wszystko za ciebie: wybór gry (folder, napęd lub obraz `.iso`, montowany
|
||||||
|
automatycznie), sprawdzenie wymagań, instalacja `capstone` lub pobranie SDL2 jednym kliknięciem,
|
||||||
|
generowanie i kompilacja, a potem uruchomienie gry. Ustawia też obraz i dźwięk (z podglądem filtrów),
|
||||||
|
zarządza zapisami gry i modami oraz tworzy pakiet HD. Jest dostępny w 5 językach: francuskim,
|
||||||
|
angielskim, niemieckim, hiszpańskim i polskim.
|
||||||
|
|
||||||
|
<p align="center"><img src="docs/images/launcher-pl-3-accueil.jpg" alt="Launcher" width="800"></p>
|
||||||
|
|
||||||
|
```bat
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
target\release\DoubleTroubleLauncher.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
Ustawienia są zapisywane w `%APPDATA%\DoubleTroubleRecomp\launcher.ini`.
|
||||||
|
|
||||||
|
## Ręczna kompilacja
|
||||||
|
|
||||||
|
### Wymagania
|
||||||
|
|
||||||
|
- Windows 10/11 x64
|
||||||
|
- [Visual Studio Build Tools 2022](https://visualstudio.microsoft.com/downloads/) (narzędzia C++)
|
||||||
|
- Python 3.12 z `capstone` 5: `pip install capstone`
|
||||||
|
- [SDL2 2.32.10](https://github.com/libsdl-org/SDL/releases) (`SDL2-devel-2.32.10-VC.zip`),
|
||||||
|
rozpakowany do `third_party/SDL2-2.32.10/`
|
||||||
|
- Oryginalna gra (CD lub ISO), **wersja francuska** (patrz wyżej)
|
||||||
|
|
||||||
|
### Pliki gry
|
||||||
|
|
||||||
|
Domyślnie projekt szuka:
|
||||||
|
|
||||||
|
| Opcja | Domyślnie | Zawartość |
|
||||||
|
|---|---|---|
|
||||||
|
| `--cd` | `../extracted/iso/TUCKER` | pliki z CD (w tym `TUCKER.EXE`, `INTRO.EXE`) |
|
||||||
|
| `--hd` | `../Install/C/TUCKER` | pliki zainstalowane na dysku |
|
||||||
|
| `--root` | `../Install/C` | katalog główny dysku „C:” widzianego przez grę |
|
||||||
|
| `--saves` | `saves` | zapisy gry |
|
||||||
|
|
||||||
|
### Kompilacja
|
||||||
|
|
||||||
|
```bat
|
||||||
|
build.bat :: generuje C z plików EXE gracza, potem kompiluje
|
||||||
|
build.bat nogen :: kompiluje ponownie bez generowania
|
||||||
|
```
|
||||||
|
|
||||||
|
Wynik: `build\tucker.exe` (SDL2) i `build\tucker_headless.exe` (bez obrazu, do testów).
|
||||||
|
|
||||||
|
## Uruchamianie
|
||||||
|
|
||||||
|
```bat
|
||||||
|
build\tucker.exe --son
|
||||||
|
```
|
||||||
|
|
||||||
|
| Opcja | Działanie |
|
||||||
|
|---|---|
|
||||||
|
| `--son` | włącza dźwięk |
|
||||||
|
| `--sans-intro` | pomija intro |
|
||||||
|
| `--intro` | odtwarza tylko intro |
|
||||||
|
| `--resolution SxW` | rozmiar okna w pikselach (na przykład `1920x1080`) |
|
||||||
|
| `--echelle N` | dawne ustawienie ×N (domyślnie 3: 960×720) |
|
||||||
|
| `--plein` | uruchamia na pełnym ekranie |
|
||||||
|
| `--filtre NAZWA` | `nearest`, `smooth`, `xbr` lub `crt` |
|
||||||
|
| `--sans-mods`, `--sans-hd` | bez modów, bez pakietu HD |
|
||||||
|
| `-v` | szczegółowy dziennik |
|
||||||
|
|
||||||
|
**F11** lub **Alt+Enter**: pełny ekran wł./wył. **F10**: pakiet HD wł./wył. **Spacja**
|
||||||
|
(przytrzymana): klikalne obszary. **F12**: menu ustawień. Wszystkie opcje i klucze ustawień (po
|
||||||
|
angielsku): [docs/SETTINGS.en.md](docs/SETTINGS.en.md). Mody i pakiet HD: [docs/TEXTURES.en.md](docs/TEXTURES.en.md)
|
||||||
|
(samouczek) i [docs/MODS.en.md](docs/MODS.en.md) (format).
|
||||||
|
|
||||||
|
## Struktura
|
||||||
|
|
||||||
|
```
|
||||||
|
build.bat skrypt kompilacji (MSVC)
|
||||||
|
tools/
|
||||||
|
le.py czytnik formatu LE (DOS/4GW)
|
||||||
|
recomp.py tłumacz x86 → C
|
||||||
|
runtime/ środowisko C (CPU, DOS, sprzęt, dźwięk, hosty, overrides)
|
||||||
|
launcher/ graficzny launcher (Rust, egui)
|
||||||
|
assets/icon/ ikona projektu (tools/make_icon.py)
|
||||||
|
docs/ poradnik, ustawienia, mody, mapa drogowa
|
||||||
|
mods/ twoje mody i pakiety HD (tworzone lokalnie, wyłączone z repozytorium)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Informacje prawne
|
||||||
|
|
||||||
|
*Bud Tucker in Double Trouble* © 1996 Merit Studios. Ten projekt nie jest powiązany z żadnym
|
||||||
|
posiadaczem praw. Nie zawiera ani nie rozpowszechnia żadnych plików gry ani kodu pochodzącego z jej
|
||||||
|
plików wykonywalnych: kod C jest generowany lokalnie, z własnej kopii gracza, w `build/` (wyłączonym
|
||||||
|
z repozytorium).
|
||||||
|
|
||||||
|
## Licencja
|
||||||
|
|
||||||
|
Projekt **open source** na [licencji MIT](LICENSE): możesz swobodnie brać kod, zmieniać go,
|
||||||
|
rozpowszechniać lub na nim budować, **pod warunkiem podania autora** (LinkAtPlug) przez zachowanie
|
||||||
|
informacji o prawach autorskich z pliku `LICENSE`.
|
||||||
|
|
||||||
|
Licencja obejmuje kod i dokumentację projektu, a nie grę (© 1996 Merit Studios), z której nie jest
|
||||||
|
dostarczany żaden plik. SDL2 (licencja zlib) i czcionka Bangers (SIL Open Font License) zachowują
|
||||||
|
własne licencje.
|
||||||
|
|
||||||
|
☕ Podoba ci się projekt? [Postaw mi kawę](https://buymeacoffee.com/linkatplug).
|
||||||
@@ -0,0 +1,505 @@
|
|||||||
|
<p align="center"><img src="images/title-guide.png" alt="Vollständige Anleitung: installieren, kompilieren, in 4K spielen"></p>
|
||||||
|
|
||||||
|
# Vollständige Anleitung: installieren, kompilieren und spielen
|
||||||
|
|
||||||
|
🇫🇷 [Français](GUIDE.md) · 🇺🇸 [English](GUIDE.en.md) · 🇩🇪 **Deutsch** · 🇪🇸 [Español](GUIDE.es.md) · 🇵🇱 [Polski](GUIDE.pl.md)
|
||||||
|
|
||||||
|
Diese Anleitung beginnt mit einem Windows-PC, auf dem nichts installiert ist, und führt Sie bis zum
|
||||||
|
Spiel im Vollbild, mit Filtern, HD-Paket und Mods. Rechnen Sie mit etwa einer halben Stunde, vor
|
||||||
|
allem für die Downloads.
|
||||||
|
|
||||||
|
> ℹ️ Die technischen Dokumente (Einstellungen, Mods, HD-Texturen, Roadmap) gibt es nur auf
|
||||||
|
> Französisch und Englisch: Die Links unten führen zur englischen Version.
|
||||||
|
|
||||||
|
## ⚡ Kurzfassung
|
||||||
|
|
||||||
|
| Schritt | Was | Details |
|
||||||
|
|:---:|---|---|
|
||||||
|
| **1** | Build Tools 2022 (C++), Python 3.12 (PATH-Häkchen) und Rust installieren | [Abschnitt 2](#2-die-werkzeuge-installieren) |
|
||||||
|
| **2** | Das Projekt holen: `git clone` oder ZIP | [Abschnitt 3](#3-das-projekt-holen) |
|
||||||
|
| **3** | Den Launcher kompilieren und öffnen: `cargo build --release` | [Abschnitt 5](#5-mit-dem-launcher-empfohlen) |
|
||||||
|
| **4** | Im Launcher: Spiel wählen, dann **Erzeugen und kompilieren** | [Abschnitt 5](#ersteinrichtung) |
|
||||||
|
| **5** | **SPIELEN**! Danach, wenn Sie möchten, das HD-Paket erstellen | [Abschnitte 8 und 9](#8-ein-schönes-bild-auf-großem-bildschirm) |
|
||||||
|
|
||||||
|
- [1. Was Sie brauchen](#1-was-sie-brauchen)
|
||||||
|
- [2. Die Werkzeuge installieren](#2-die-werkzeuge-installieren)
|
||||||
|
- [3. Das Projekt holen](#3-das-projekt-holen)
|
||||||
|
- [4. Das Originalspiel vorbereiten](#4-das-originalspiel-vorbereiten)
|
||||||
|
- [5. Mit dem Launcher (empfohlen)](#5-mit-dem-launcher-empfohlen)
|
||||||
|
- [6. Ohne Launcher (Kommandozeile)](#6-ohne-launcher-kommandozeile)
|
||||||
|
- [7. Im Spiel](#7-im-spiel)
|
||||||
|
- [8. Ein schönes Bild auf großem Bildschirm](#8-ein-schönes-bild-auf-großem-bildschirm)
|
||||||
|
- [9. HD-Hintergrundpaket](#9-hd-hintergrundpaket)
|
||||||
|
- [10. Mods](#10-mods)
|
||||||
|
- [11. Spielstände](#11-spielstände)
|
||||||
|
- [12. Funktionsweise](#12-funktionsweise)
|
||||||
|
- [13. Fehlerbehebung](#13-fehlerbehebung)
|
||||||
|
- [14. Aktualisieren, deinstallieren](#14-aktualisieren-deinstallieren)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Was Sie brauchen
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| **Das Originalspiel** | *Bud Tucker in Double Trouble* (Merit Studios, 1996): die CD, ihr `.iso`-Abbild oder eine Kopie ihrer Dateien, **französische Version** (siehe [§ 4](#4-das-originalspiel-vorbereiten)). Das Projekt liefert **keine** Spieldateien mit. |
|
||||||
|
| **System** | Windows 10 oder 11, 64 Bit. |
|
||||||
|
| **Grafik** | OpenGL 3.3: jede Grafikkarte oder jeder Grafikchip der letzten zehn Jahre. |
|
||||||
|
| **Festplatte** | Etwa 8 GB für die Werkzeuge (vor allem Visual Studio Build Tools), 700 MB für das kompilierte Projekt mit dem Launcher und etwa 350 MB pro HD-Paket. |
|
||||||
|
|
||||||
|
Das Spiel wird nicht emuliert: Sein Code wird in C übersetzt und auf Ihrem PC kompiliert, deshalb
|
||||||
|
brauchen Sie einen Compiler. Die Übersetzung erfolgt **aus Ihrer eigenen Kopie**: Nichts vom Spiel
|
||||||
|
geht über das Internet.
|
||||||
|
|
||||||
|
## 2. Die Werkzeuge installieren
|
||||||
|
|
||||||
|
Installieren Sie sie in dieser Reihenfolge. Doppelklicken Sie auf jedes Installationsprogramm und
|
||||||
|
behalten Sie die Standardeinstellungen, sofern nicht anders angegeben.
|
||||||
|
|
||||||
|
| Werkzeug | Wozu | Wo |
|
||||||
|
|---|---|---|
|
||||||
|
| **Visual Studio Build Tools 2022** | Der C-Compiler von Microsoft (MSVC). Rust nutzt ihn ebenfalls. | [visualstudio.microsoft.com/downloads](https://visualstudio.microsoft.com/downloads/), Abschnitt „Tools for Visual Studio“ |
|
||||||
|
| **Python 3.12** | Führt den Übersetzer x86 → C aus (`tools/recomp.py`). | [python.org/downloads](https://www.python.org/downloads/) |
|
||||||
|
| **Rust** | Kompiliert den Launcher. | [rustup.rs](https://rustup.rs/) (`rustup-init.exe`) |
|
||||||
|
| **Git** *(optional)* | Um das Projekt zu holen und zu aktualisieren. | [git-scm.com](https://git-scm.com/download/win) |
|
||||||
|
| **Upscayl** *(optional)* | Um das HD-Paket (Hintergründe, Figuren und Objekte) mit einem Klick zu erstellen. Nicht im Projekt enthalten: Installieren Sie es, wenn Sie das HD-Paket möchten ([Details](TEXTURES.en.md#1-install-upscayl)). | [upscayl.org](https://upscayl.org) |
|
||||||
|
|
||||||
|
Achten Sie auf Folgendes:
|
||||||
|
|
||||||
|
- **Build Tools**: Setzen Sie im Installationsprogramm das Häkchen bei der Workload
|
||||||
|
**„Desktopentwicklung mit C++“** („Desktop development with C++“). Sie enthält MSVC v143 und das
|
||||||
|
Windows SDK. Mehr wird nicht benötigt.
|
||||||
|
- **Python**: Setzen Sie auf dem ersten Bildschirm das Häkchen bei **„Add python.exe to PATH“**.
|
||||||
|
Ohne dieses finden weder der Launcher noch `build.bat` Python. Das Modul `capstone` lässt sich
|
||||||
|
danach mit einem Klick im Launcher installieren (oder mit `python -m pip install capstone`).
|
||||||
|
- **Rust**: `rustup-init.exe` bietet die Standardinstallation an (Taste **1**, Eingabe). Es prüft,
|
||||||
|
ob die Build Tools vorhanden sind: Installieren Sie diese zuerst.
|
||||||
|
- **SDL2** (die Bibliothek für Fenster, Tastatur und Ton) muss nicht von Hand installiert werden:
|
||||||
|
Der Launcher lädt sie in das Projekt herunter.
|
||||||
|
|
||||||
|
Nach der Installation **schließen und öffnen** Sie Ihre PowerShell-Fenster erneut, damit sie die neuen
|
||||||
|
Programme sehen.
|
||||||
|
|
||||||
|
## 3. Das Projekt holen
|
||||||
|
|
||||||
|
Mit Git, in PowerShell, an einem beliebigen Ort:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git clone https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp.git
|
||||||
|
cd DoubleTroubleRecomp
|
||||||
|
```
|
||||||
|
|
||||||
|
Ohne Git: Verwenden Sie auf der Seite des Repositorys die Schaltfläche **Download** (oder *Code →
|
||||||
|
ZIP*) und entpacken Sie das Archiv. Meiden Sie synchronisierte Ordner (OneDrive): Das Kompilieren
|
||||||
|
ist dort langsam.
|
||||||
|
|
||||||
|
## 4. Das Originalspiel vorbereiten
|
||||||
|
|
||||||
|
> 💿 **Derzeit unterstützte Version: die französische CD als ISO-Abbild**, die auf [dieser Abandonware-France-Seite](https://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=662&fic=liens) (Abschnitt „Version ISO“, dort ist alles erklärt). So prüfen Sie es: `TUCKER\TUCKER.EXE` ist **284 677 Bytes** groß. Die englische, deutsche, spanische und polnische Version werden noch nicht unterstützt: Ihre ausführbare Datei ist anders ([Details](TECHNIQUE.en.md#7-game-versions)).
|
||||||
|
|
||||||
|
Das Projekt braucht den Ordner, der **`TUCKER.EXE`** und **`INTRO.EXE`** enthält, zusammen mit den
|
||||||
|
übrigen Dateien der CD (Bilder, Töne, Videos). Drei Möglichkeiten:
|
||||||
|
|
||||||
|
1. **Eine Kopie auf der Festplatte (empfohlen)**: Kopieren Sie den Ordner `TUCKER` der CD, zum
|
||||||
|
Beispiel nach `C:\Spiele\TUCKER`. Zum Spielen brauchen Sie die CD dann nicht mehr.
|
||||||
|
2. **Die CD im Laufwerk**: Wählen Sie das Laufwerk, zum Beispiel `D:\`. Der Launcher findet den
|
||||||
|
Unterordner `TUCKER` selbst. Die CD muss während des Spielens im Laufwerk bleiben.
|
||||||
|
3. **Ein `.iso`-Abbild**: Der Launcher bindet es bei jedem Start automatisch ein (Windows kann das
|
||||||
|
ohne zusätzliche Software).
|
||||||
|
|
||||||
|
*Erweitert*: Wenn Sie auch den Ordner `C:\TUCKER` haben, den die ursprüngliche DOS-Installation
|
||||||
|
angelegt hat, können Sie ihn im Launcher angeben („Erweitert: Installationsordner“). Das ist
|
||||||
|
optional: Andernfalls liest das Spiel alles von der CD oder ihrer Kopie.
|
||||||
|
|
||||||
|
## 5. Mit dem Launcher (empfohlen)
|
||||||
|
|
||||||
|
### Den Launcher kompilieren und öffnen
|
||||||
|
|
||||||
|
Einmalig, in PowerShell, im Projektordner:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
.\target\release\DoubleTroubleLauncher.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
Die erste Kompilierung lädt die Rust-Bibliotheken herunter und dauert einige Minuten. Danach starten
|
||||||
|
Sie direkt `launcher\target\release\DoubleTroubleLauncher.exe` (Sie können eine Verknüpfung auf dem
|
||||||
|
Desktop anlegen).
|
||||||
|
|
||||||
|
Der Launcher spricht 5 Sprachen: Französisch, Englisch, Deutsch, Spanisch und Polnisch. Sie wählen
|
||||||
|
sie oben rechts im Menü **Language** (mit Flagge). Die Musik des Launchers folgt der Sprache: Jede
|
||||||
|
Sprache hat ihre Version des Titelsongs.
|
||||||
|
|
||||||
|
### Ersteinrichtung
|
||||||
|
|
||||||
|
Beim ersten Start öffnet sich die Einrichtung in drei Schritten. Links die Schritte, rechts das
|
||||||
|
Spiel, das sich noch nicht starten lässt:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-de-1-premier-lancement.jpg" alt="Erster Start: Das Spiel ist noch nicht gefunden" width="900"></p>
|
||||||
|
|
||||||
|
1. **Originalspiel**: **Ordner…** (Kopie oder CD-Laufwerk) oder **ISO-Abbild…**. Der grüne Punkt
|
||||||
|
„Spiel gefunden“ bestätigt, dass `TUCKER.EXE` und `INTRO.EXE` vorhanden sind.
|
||||||
|
2. **Voraussetzungen**: Python, capstone, MSVC und SDL2 werden geprüft.
|
||||||
|
- capstone fehlt: **Installieren (pip)**;
|
||||||
|
- SDL2 fehlt: **Herunterladen** (offizielles Archiv SDL 2.32.10, entpackt nach `third_party\`);
|
||||||
|
- Python oder MSVC nicht gefunden: Zurück zu [Schritt 2](#2-die-werkzeuge-installieren), dann **Prüfen**.
|
||||||
|
3. **Kompilierung**:
|
||||||
|
- **Spielversion**: die Sprache Ihrer CD. Derzeit lässt sich nur die **französische** Version
|
||||||
|
kompilieren; die anderen (Englisch, Deutsch, Spanisch, Polnisch) sind schon in der Liste, mit
|
||||||
|
dem Vermerk „bald“, und kommen später.
|
||||||
|
- **Erzeugen und kompilieren**: Der Launcher übersetzt `TUCKER.EXE` und `INTRO.EXE` in C (etwa
|
||||||
|
1 500 Funktionen) und kompiliert dann. Das dauert eine bis fünf Minuten; das **Protokoll**
|
||||||
|
zeigt den Fortschritt. Am Ende: „Spiel kompiliert“.
|
||||||
|
|
||||||
|
**Nur neu kompilieren** ist für Projektaktualisierungen gedacht, die nur die Laufzeit betreffen: Es
|
||||||
|
erzeugt das C nicht neu.
|
||||||
|
|
||||||
|
Nach den drei Schritten ist alles grün:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-de-2-configuration.jpg" alt="Einrichtung abgeschlossen: Spiel gefunden, Voraussetzungen vorhanden, Spiel kompiliert" width="900"></p>
|
||||||
|
|
||||||
|
Klicken Sie dann auf **Einrichtung einklappen** (unten rechts): Die Hauptseite erscheint.
|
||||||
|
**Einrichten** öffnet die Einrichtung jederzeit wieder.
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-de-3-accueil.jpg" alt="Hauptseite des Launchers" width="900"></p>
|
||||||
|
|
||||||
|
### Spielen
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-de-carte-jouer.jpg" alt="Karte Spielbereit" width="900"></p>
|
||||||
|
|
||||||
|
- **Ton**, **Intro überspringen**, **Ausführliches Protokoll**: Startoptionen.
|
||||||
|
- **Mein Spiel fortsetzen**: Startet direkt mit einem Spielstand, ohne Intro und Spielmenü.
|
||||||
|
Standardmäßig der zuletzt gespielte; in der Liste darunter können Sie einen anderen wählen (mit
|
||||||
|
Vorschaubild), und der Launcher zeigt unter **SPIELEN** an, welcher Spielstand geladen wird.
|
||||||
|
- **Anzeige**: Vollbild, Filter, Format 4:3, vertikale Synchronisation, Fensterauflösung (1280 × 960,
|
||||||
|
1920 × 1080…).
|
||||||
|
- **Spiel**: Dialoge per Klick überspringen (ein Linksklick beendet die laufende Zeile),
|
||||||
|
Gehgeschwindigkeit von Bud (normal, × 1,5 oder × 2, nur wenn er auf Ihren Befehl läuft).
|
||||||
|
- **Lautstärke**: Gesamt, Musik, Stimmen, Effekte.
|
||||||
|
- **SPIELEN** startet das Spiel. Der Launcher bleibt offen und aktualisiert sich, wenn Sie das Spiel
|
||||||
|
beenden.
|
||||||
|
|
||||||
|
Die Anzeige- und Lautstärkeeinstellungen sind **dieselben wie im F12-Menü des Spiels**: Was Sie auf
|
||||||
|
der einen Seite ändern, erscheint auf der anderen (Datei `%APPDATA%\DoubleTroubleRecomp\settings.ini`).
|
||||||
|
|
||||||
|
Weitere Karten der Hauptseite:
|
||||||
|
|
||||||
|
- **Vorschau**: eine Vorschau eines Hintergrunds mit dem gewählten Filter, berechnet wie im Spiel.
|
||||||
|
Bei aktivem HD-Paket zeigt die Vorschau den HD-Hintergrund (Plakette „HD“). Die Hintergründe
|
||||||
|
wechseln alle 7 Sekunden.
|
||||||
|
- **Zoom ×4**: mit Häkchen ein Ausschnitt in der Größe eines 1280 Pixel breiten Fensters; ohne
|
||||||
|
Häkchen das ganze Bild.
|
||||||
|
- **Vergleichen**: links das Original (rohe Pixel), rechts das Spielbild (Filter oder HD). Ziehen
|
||||||
|
Sie die gelbe Trennlinie oder klicken Sie ins Bild, um sie zu setzen.
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-de-carte-apercu.jpg" alt="Filtervorschau" width="900"></p>
|
||||||
|
|
||||||
|
- **Spielstände**: siehe [Abschnitt 11](#11-spielstände).
|
||||||
|
- **Mods & HD-Hintergründe**: siehe [Abschnitte 9](#9-hd-hintergrundpaket) und [10](#10-mods).
|
||||||
|
|
||||||
|
Der Launcher speichert seine eigenen Einstellungen (Sprache, Spielordner, Optionen, Fenstergröße) in
|
||||||
|
`%APPDATA%\DoubleTroubleRecomp\launcher.ini`.
|
||||||
|
|
||||||
|
## 6. Ohne Launcher (Kommandozeile)
|
||||||
|
|
||||||
|
Für Freunde des Terminals. Dieselben Voraussetzungen; SDL2 von Hand installieren: Archiv
|
||||||
|
[`SDL2-devel-2.32.10-VC.zip`](https://github.com/libsdl-org/SDL/releases/tag/release-2.32.10),
|
||||||
|
so entpackt, dass `third_party\SDL2-2.32.10\include\SDL.h` existiert.
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
python -m pip install capstone
|
||||||
|
.\build.bat C:\Spiele\TUCKER
|
||||||
|
```
|
||||||
|
|
||||||
|
`build.bat` findet die am Standardort installierten Build Tools 2022 selbst. Varianten:
|
||||||
|
|
||||||
|
| Befehl | Wirkung |
|
||||||
|
|---|---|
|
||||||
|
| `build.bat ORDNER` | erzeugt das C aus `ORDNER\TUCKER.EXE` und `INTRO.EXE` und kompiliert dann |
|
||||||
|
| `build.bat` | ebenso, mit der Variable `TUCKER_CD`, sonst `..\extracted\iso\TUCKER` |
|
||||||
|
| `build.bat nogen` | kompiliert neu, ohne das C neu zu erzeugen |
|
||||||
|
|
||||||
|
Ergebnis: `build\tucker.exe`. Zum Spielen:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\build\tucker.exe --cd C:\Spiele\TUCKER --hd C:\Spiele\TUCKER --root C:\Spiele --son
|
||||||
|
```
|
||||||
|
|
||||||
|
Wichtigste Optionen (die Optionsnamen sind französisch; vollständige Liste in [SETTINGS.en.md](SETTINGS.en.md)):
|
||||||
|
|
||||||
|
| Option | Wirkung |
|
||||||
|
|---|---|
|
||||||
|
| `--cd ORDNER` | Dateien der CD (oder ihrer Kopie) |
|
||||||
|
| `--hd ORDNER` | DOS-Installationsordner `TUCKER` (andernfalls den CD-Ordner wiederverwenden) |
|
||||||
|
| `--root ORDNER` | Wurzel des vom Spiel gesehenen Laufwerks „C:“ (der übergeordnete Ordner von `--hd`) |
|
||||||
|
| `--saves ORDNER` | Ordner der Spielstände (Standard: `saves`) |
|
||||||
|
| `--son` | aktiviert den Ton |
|
||||||
|
| `--sans-intro` / `--intro` | überspringt das Intro / spielt nur das Intro |
|
||||||
|
| `--charger N` | startet direkt mit dem Spielstand `SAVEGM.N`, ohne Intro (neuere Engine, siehe Abschnitt 11) |
|
||||||
|
| `--plein`, `--fenetre` | Vollbild, Fenster |
|
||||||
|
| `--resolution BxH` | Fenster mit B × H Pixeln (zum Beispiel `--resolution 1920x1080`); `--echelle N`: alte Einstellung ×N |
|
||||||
|
| `--filtre nearest\|smooth\|xbr\|crt` | Bildfilter |
|
||||||
|
| `--sans-mods`, `--sans-hd` | ohne Mods, ohne HD-Paket |
|
||||||
|
| `-v` | ausführliches Protokoll |
|
||||||
|
|
||||||
|
Die Anzeigeoptionen gelten nur für die Sitzung; dauerhafte Einstellungen stehen in `settings.ini`.
|
||||||
|
|
||||||
|
## 7. Im Spiel
|
||||||
|
|
||||||
|
| Taste | Wirkung |
|
||||||
|
|---|---|
|
||||||
|
| **F12** | Einstellungsmenü: Lautstärken, Vollbild, Auflösung, Filter, 4:3, Synchronisation, unscharfe Ränder auf Breitbildschirmen, klickbare Bereiche, HD-Paket (Hintergründe, Figuren und Objekte, Aktionsleiste), Spiel beenden |
|
||||||
|
| **Esc** | schließt das F12-Menü (sonst die Taste des Originalspiels) |
|
||||||
|
| **F11** oder **Alt+Eingabe** | Vollbild / Fenster |
|
||||||
|
| **F10** | HD-Paket ein/aus, mit Überblendung (zum Vergleich mit dem Originalbild); eine Blase bestätigt es |
|
||||||
|
| **Leertaste** (gedrückt halten) | zeigt die klickbaren Bereiche des Raums: Ausgänge in Cyan, Objekte in Grün, Figuren in Rosa, der Rest in Gelb (abschaltbar: Launcher oder F12) |
|
||||||
|
| Maus | wie im Originalspiel: Verben unten, Klick zum Handeln |
|
||||||
|
|
||||||
|
Das F12-Menü speichert seine Änderungen beim Schließen (das Menü selbst ist vorerst auf
|
||||||
|
Französisch). Das Spiel speichert und lädt über sein eigenes Menü, wie 1996.
|
||||||
|
|
||||||
|
## 8. Ein schönes Bild auf großem Bildschirm
|
||||||
|
|
||||||
|
Das Spiel zeichnet sein Bild immer in 320×200; die Grafikkarte vergrößert es dann mit einem Filter:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/filtres-en.jpg" alt="Vergleich der Filter Scharf, Geglättet, xBR, CRT und des HD-Pakets" width="900"></p>
|
||||||
|
|
||||||
|
| Filter | Aussehen | Tipp |
|
||||||
|
|---|---|---|
|
||||||
|
| **Scharf** (`nearest`) | rohe Pixel | originalgetreu, sehr „Pixel-Art“ |
|
||||||
|
| **Geglättet** (`smooth`) | klare Pixel, weichere Kanten | der beste Kompromiss für Puristen |
|
||||||
|
| **xBR** | neu gezeichnete Konturen, „gezeichneter“ Look | sehr schön auf 1440p- oder 4K-Bildschirmen |
|
||||||
|
| **CRT** | simulierter Röhrenbildschirm | Nostalgie; zeigt das HD-Paket nicht an |
|
||||||
|
|
||||||
|
- **Format 4:3**: Das Originalbild war für einen 4:3-Bildschirm gedacht (Pixel höher als breit).
|
||||||
|
Lassen Sie es für korrekte Proportionen aktiviert; deaktivieren Sie es für quadratische Pixel.
|
||||||
|
- **Vollbild** nutzt die Desktopauflösung, ohne den Videomodus zu wechseln. Das Bild wird mit
|
||||||
|
schwarzen Balken an den Seiten zentriert.
|
||||||
|
- **Vertikale Synchronisation** beseitigt Bildrisse, falls Sie welche sehen.
|
||||||
|
- Auf einem 1080p-, 1440p- oder 4K-Bildschirm probieren Sie **xBR** oder **Geglättet** mit
|
||||||
|
aktivem **HD-Paket**.
|
||||||
|
|
||||||
|
## 9. HD-Hintergrundpaket
|
||||||
|
|
||||||
|
> 🎨 **Vollständige Anleitung (auf Englisch): [HD textures](TEXTURES.en.md)**: Upscayl installieren,
|
||||||
|
> Hintergründe exportieren, mit dem Werkzeug Ihrer Wahl hochskalieren, von Hand nachbearbeiten,
|
||||||
|
> Fehlerbehebung.
|
||||||
|
|
||||||
|
Das HD-Paket ersetzt auf dem Bildschirm die Raumhintergründe (320×200) durch hochauflösende Bilder
|
||||||
|
und, falls das Paket sie enthält, Bud, die Figuren, die Objekte und den Mauszeiger
|
||||||
|
([HD-Sprites](TEXTURES.en.md#i-hd-characters-and-objects-sprites)). Auch die Aktionsleiste (Verben
|
||||||
|
und Hintergrund) wird HD; die Texte bleiben die des Spiels. Die Bilder werden **auf Ihrem PC aus
|
||||||
|
Ihrer Kopie** erstellt: Nichts wird heruntergeladen oder verbreitet.
|
||||||
|
|
||||||
|
> ⚠️ **Derzeit: HD-Hintergründe ja, HD-Sprites nein.** Die HD-Hintergründe sehen gut aus, aber
|
||||||
|
> HD-Figuren und -Objekte (Sprites) sind noch fehlerhaft: abgeschnittene Bilder, manche Figuren
|
||||||
|
> erscheinen nicht. Es wird empfohlen, mit einem HD-Paket **ohne Häkchen bei „Figuren und
|
||||||
|
> Objekte“** zu spielen (im Launcher oder im Spiel mit F12).
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-de-carte-mods.jpg" alt="Karte Mods & HD-Hintergründe" width="900"></p>
|
||||||
|
|
||||||
|
### Mit Upscayl (am einfachsten)
|
||||||
|
|
||||||
|
1. Installieren Sie [Upscayl](https://upscayl.org) ([Schritt für Schritt](TEXTURES.en.md#1-install-upscayl)).
|
||||||
|
Solange es fehlt, zeigt der Launcher einen gelben Kasten „Upscayl ist nicht installiert“.
|
||||||
|
2. Im Launcher, Karte **Mods & HD-Hintergründe**, „HD-Paket mit Upscayl erstellen“: Wählen Sie ein
|
||||||
|
Modell, lassen Sie **Hintergründe**, **Zwischensequenzen** und **Aktionsleiste** angehakt, dann
|
||||||
|
**Paket erstellen**. Die 148 Bilder (122 Hintergründe, 24 Bilder der Zwischensequenzen, die
|
||||||
|
Aktionsleiste) werden in wenigen Minuten ×4 hochskaliert. **Figuren und Objekte**
|
||||||
|
(experimentell, standardmäßig nicht angehakt) fügt mehrere tausend Bilder hinzu und dauert
|
||||||
|
deutlich länger. Alles landet in `mods\hd_upscayl` (oder `mods\hd_upscayl_<Modell>`), mit
|
||||||
|
**einem Modell für das ganze Paket**. Entfernen Sie das Häkchen bei **Ein Modell für alles**, um
|
||||||
|
pro Teil ein Modell zu wählen (zusammengesetztes Paket, in `mods\hd_perso`). Die Schaltfläche
|
||||||
|
**Stoppen** (daneben oder in der unteren Leiste) unterbricht die Erstellung; **Reparieren**
|
||||||
|
erstellt dann die leeren Bilder neu. Für ein vorhandenes Hintergrundpaket: Schaltfläche
|
||||||
|
**+ HD-Sprites** in seiner Zeile. Die 24 Standbilder der Zwischensequenzen (Pyramide, Karten,
|
||||||
|
Zeitungen…) werden mit den Hintergründen erstellt. **Schließen Sie während der Erstellung Spiele
|
||||||
|
und 3D-Programme**: Upscayl belastet die Grafikkarte stark. Fehlen nach einem Absturz Bilder,
|
||||||
|
Schaltfläche **Reparieren** in der Zeile des Pakets.
|
||||||
|
3. Achten Sie darauf, dass **Mods aktivieren**, **HD-Paket** und **Hintergründe** angehakt sind
|
||||||
|
(entfernen Sie vorerst das Häkchen bei **Figuren und Objekte**: siehe Kasten oben), dann spielen.
|
||||||
|
Jedes Kästchen lässt sich einzeln abschalten, im Spiel auch mit F12.
|
||||||
|
|
||||||
|
Die Modelle ergeben unterschiedliche Looks; Sie können mehrere erstellen und mit dem Kästchen jedes
|
||||||
|
Mods wechseln:
|
||||||
|
|
||||||
|
| Modell | Aussehen |
|
||||||
|
|---|---|
|
||||||
|
| `digital-art-4x` (Standard) | saubere Farbflächen, klare Konturen: passt zum Cartoon-Stil des Spiels |
|
||||||
|
| `high-fidelity-4x` | nah am Original, behält das Pixel-Dithering |
|
||||||
|
| `remacri-4x` | scharf und detailreich, eher für Fotos gedacht |
|
||||||
|
| `ultrasharp-4x` | sehr scharf, kann Fehler betonen |
|
||||||
|
| `ultramix-balanced-4x` | weicherer Kompromiss |
|
||||||
|
| `upscayl-lite-4x`, `upscayl-standard-4x` | Allzweck; „lite“ ist schneller |
|
||||||
|
|
||||||
|
Kommandozeile: `python tools\hd_export.py C:\Spiele\TUCKER mods\hd_upscayl\hd --upscayl [MODELL]`.
|
||||||
|
|
||||||
|
### Mit dem Werkzeug Ihrer Wahl
|
||||||
|
|
||||||
|
1. Launcher: **Original-Bilder exportieren** (ein Fenster fasst zusammen, was passiert; **Stoppen**
|
||||||
|
unterbricht den Export). Die Hintergründe (PNG 320×200) landen in `mods\_decors_originaux`
|
||||||
|
(das `_` sorgt dafür, dass das Spiel den Ordner ignoriert), danach die Figuren und Objekte in
|
||||||
|
dessen Unterordnern `SHEETS` und `SPRITES` (2–3 Minuten). Der Ordner öffnet sich am Ende.
|
||||||
|
2. Skalieren Sie sie mit dem Werkzeug Ihrer Wahl hoch: Upscayl, chaiNNer, waifu2x, Topaz,
|
||||||
|
Nachbearbeitung von Hand…
|
||||||
|
3. Launcher: Namen eingeben, dann **Neuer Mod**. Der Ordner `mods\<Name>\hd\` wird angelegt und
|
||||||
|
öffnet sich.
|
||||||
|
4. Legen Sie die hochskalierten Bilder dort **mit demselben Namen und Unterordner** ab (`LOC01.png`,
|
||||||
|
`SHEETS\BUD_1.png`, `SPRITES\A01_04.png`), dann **Aktualisieren**.
|
||||||
|
|
||||||
|
Regeln für die Bilder:
|
||||||
|
|
||||||
|
- derselbe Bildausschnitt wie im Original: das ganze Bild 320×200, einschließlich des unteren Teils;
|
||||||
|
- beliebige Größe im Seitenverhältnis 16:10: 1280×800 (×4) ist eine gute Wahl, 2560×1600 geht auch;
|
||||||
|
- alle Teile eines Raums (`LOC03A`, `LOC03B`…) haben dieselbe Größe;
|
||||||
|
- PNG in RGB oder RGBA (Alpha wird ignoriert), ohne Interlacing;
|
||||||
|
- ein unvollständiges Paket funktioniert: Ein Hintergrund ohne PNG bleibt in 320×200.
|
||||||
|
|
||||||
|
Schritt für Schritt, Nachbearbeitung und Fehlerbehebung: [TEXTURES.en.md](TEXTURES.en.md).
|
||||||
|
Technische Details: [MODS.en.md](MODS.en.md).
|
||||||
|
|
||||||
|
## 10. Mods
|
||||||
|
|
||||||
|
Ein Mod ist ein Ordner in `mods\` im Hauptverzeichnis des Projekts:
|
||||||
|
|
||||||
|
```
|
||||||
|
mods\
|
||||||
|
mein_mod\
|
||||||
|
mod.ini Name, Autor, Beschreibung (vom Launcher angezeigt)
|
||||||
|
hd\ HD-Hintergründe (LOC01.png…), HD-Sprites (SHEETS\, SPRITES\)
|
||||||
|
files\ ersetzte Spieldateien (gleicher Name und Pfad wie auf der CD)
|
||||||
|
```
|
||||||
|
|
||||||
|
- Die Mods werden in alphabetischer Reihenfolge angewendet; bei derselben Datei gewinnt der letzte.
|
||||||
|
Stellen Sie `10_`, `20_` voran, um die Reihenfolge festzulegen.
|
||||||
|
- Ein Ordner, dessen Name mit `_` oder `.` beginnt, wird ignoriert.
|
||||||
|
- Im Launcher hat jeder Mod sein Kästchen; **Mods aktivieren** schaltet alle ab. Änderungen an den
|
||||||
|
Mods gelten ab dem nächsten Start; das HD-Paket lässt sich im Spiel auch mit F12 einstellen, und
|
||||||
|
F10 schaltet es ein oder aus.
|
||||||
|
|
||||||
|
`mod.ini`:
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[mod]
|
||||||
|
name=Mein Mod
|
||||||
|
author=Ich
|
||||||
|
description=Was der Mod macht
|
||||||
|
```
|
||||||
|
|
||||||
|
Vollständiges Format: [MODS.en.md](MODS.en.md).
|
||||||
|
|
||||||
|
## 11. Spielstände
|
||||||
|
|
||||||
|
Die Spielstände liegen im Ordner `saves\` des Projekts (`SAVEGM.01`, `SAVEGM.02`… und
|
||||||
|
`NOFILES.DTA`). Die Karte **Spielstände** des Launchers listet sie mit einem Vorschaubild des Orts
|
||||||
|
und dem Datum auf:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-de-carte-sauvegardes.jpg" alt="Karte Spielstände" width="900"></p>
|
||||||
|
|
||||||
|
Sie können dort außerdem:
|
||||||
|
|
||||||
|
- einen Spielstand **löschen**: Eine Kopie wird aufbewahrt, und die folgenden Spielstände werden so
|
||||||
|
neu nummeriert, wie das Spiel es erwartet;
|
||||||
|
- eine **Sicherung** aller Spielstände anlegen (`saves\backups\`);
|
||||||
|
- eine Sicherung **wiederherstellen**: Die aktuellen Spielstände werden vorher kopiert;
|
||||||
|
- **den Ordner öffnen**;
|
||||||
|
- einen Spielstand **spielen**: Die gelbe Schaltfläche startet das Spiel direkt mit diesem Spielstand.
|
||||||
|
|
||||||
|
**Automatische Speicherung**: Das Spiel speichert außerdem selbst beim Verlassen jedes Orts, in
|
||||||
|
`SAVEGM.99`, getrennt von Ihren Spielständen (es ersetzt sie nie). Sie erscheint oben in der Karte,
|
||||||
|
gelb umrandet, mit ihrer Schaltfläche **Spielen**. **Mein Spiel fortsetzen** wählt sie, wenn sie
|
||||||
|
neuer ist als Ihr letzter Spielstand. Ein Kästchen auf der Karte (oder F12, Reiter Jeu) schaltet sie
|
||||||
|
ab. Der Platz `SAVEGM.98` wird von der Schaltfläche **Nachspielen** der Fehlerberichte genutzt.
|
||||||
|
|
||||||
|
**Spielstände aus dem F12-Menü**: Im Spiel legt F12, Reiter Jeu, **Sauvegarder la partie** (Spiel
|
||||||
|
speichern) jedes Mal einen neuen Spielstand an, ohne Begrenzung und ohne etwas zu überschreiben,
|
||||||
|
zusammen mit einem Bild des Spiels in diesem Moment. Die Karte **Spielstände aus dem F12-Menü** des
|
||||||
|
Launchers listet sie auf (neueste zuerst), mit diesem Bild, dem Ort und dem Datum: **Spielen** startet
|
||||||
|
das Spiel damit, **Löschen** verschiebt die Datei nach einer Bestätigung in den Papierkorb. Sie
|
||||||
|
liegen in `%APPDATA%\DoubleTroubleRecomp\parties`, getrennt von den Spielständen des Originalspiels;
|
||||||
|
zum Laden nutzt der Launcher (wie das F12-Menü) den reservierten Platz `SAVEGM.97`.
|
||||||
|
|
||||||
|
Das Laden beim Start (diese Schaltfläche und **Mein Spiel fortsetzen**) braucht eine Engine, die die
|
||||||
|
Option `--charger` kennt: Ist das kompilierte Spiel älter, sagt der Launcher es Ihnen; kompilieren
|
||||||
|
Sie es nach der Aktualisierung des Projekts einfach neu.
|
||||||
|
|
||||||
|
Diese Aktionen sind gesperrt, solange das Spiel läuft. Um Ihre Spielstände zu behalten, sichern Sie
|
||||||
|
den Ordner `saves\`.
|
||||||
|
|
||||||
|
## 12. Funktionsweise
|
||||||
|
|
||||||
|
```
|
||||||
|
TUCKER.EXE / INTRO.EXE (Ihre Kopie, LE-Format für DOS/4GW)
|
||||||
|
│ tools/recomp.py: Disassemblierung (Capstone), eine C-Funktion pro x86-Funktion
|
||||||
|
▼
|
||||||
|
build/gen_*/*.c + runtime/ (CPU, FPU, DOS, VGA, Ton, Menü, Mods, HD-Paket)
|
||||||
|
│ MSVC
|
||||||
|
▼
|
||||||
|
build/tucker.exe ── SDL2 (Fenster, Tastatur, Maus, Ton) + OpenGL (Filter, HD-Hintergründe)
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Statische Rekompilierung**: Jede x86-Anweisung wird zu C, das auf einer emulierten CPU arbeitet
|
||||||
|
(Register, Stack, Flags). Das ursprüngliche Verhalten bleibt erhalten, mit der Geschwindigkeit
|
||||||
|
eines nativen Programms.
|
||||||
|
- **Laufzeit**: Sie ersetzt, was das Spiel von DOS und einem PC von 1996 erwartete: DOS/4GW-Speicher,
|
||||||
|
Dateien, Timer, VGA-Karte, Soundkarte (emulierter AIL-Treiber).
|
||||||
|
- **Overrides**: Manche Spielfunktionen sind von Hand in C neu geschrieben (`runtime/overrides.c`).
|
||||||
|
Moderner Ton, Anzeige, Mods und HD-Paket laufen darüber.
|
||||||
|
- **Rechtliches**: Das Repository enthält keine Spieldateien und keinen aus seinen ausführbaren
|
||||||
|
Dateien erzeugten Code. All das entsteht auf Ihrem PC, in `build\` und `mods\`, die vom Repository
|
||||||
|
ausgeschlossen sind.
|
||||||
|
|
||||||
|
Roadmap (auf Englisch): [ROADMAP.en.md](ROADMAP.en.md).
|
||||||
|
|
||||||
|
## 13. Fehlerbehebung
|
||||||
|
|
||||||
|
| Problem | Lösung |
|
||||||
|
|---|---|
|
||||||
|
| **„Spiel nicht gefunden“** | Der gewählte Ordner muss `TUCKER.EXE` und `INTRO.EXE` enthalten oder einen Unterordner `TUCKER`, der sie enthält. |
|
||||||
|
| **Python „nicht im PATH“**, oder `python` öffnet den Microsoft Store | Installieren Sie Python von python.org neu, mit Häkchen bei „Add python.exe to PATH“. Oder schalten Sie die Aliase ab unter *Einstellungen → Apps → Erweiterte App-Einstellungen → App-Ausführungsaliase* (python.exe, python3.exe). Öffnen Sie den Launcher erneut. |
|
||||||
|
| **MSVC nicht gefunden** | Installieren Sie die Build Tools 2022 mit „Desktopentwicklung mit C++“. Wenn Sie es später hinzufügen: Visual Studio Installer erneut starten → **Ändern**. |
|
||||||
|
| **`cargo build`: `link.exe` nicht gefunden** | Dieselbe Ursache: Build Tools fehlen. |
|
||||||
|
| **`cargo` nicht gefunden** | Rust ist nicht installiert, oder das Terminal wurde vor der Installation geöffnet: Öffnen Sie es erneut. |
|
||||||
|
| **Download von SDL2 schlägt fehl** | Laden Sie `SDL2-devel-2.32.10-VC.zip` von Hand herunter und entpacken Sie es nach `third_party\` (es muss `third_party\SDL2-2.32.10\include\SDL.h` geben), dann **Prüfen**. |
|
||||||
|
| **Kompilierung schlägt fehl** | Öffnen Sie das **Protokoll**, dann **Kopieren**, und hängen Sie den Text an Ihre Meldung an. **Erzeugen und kompilieren** beginnt von vorn. |
|
||||||
|
| **Kein Ton** | Setzen Sie im Launcher das Häkchen bei **Ton** (Option `--son`) und prüfen Sie die Lautstärken (F12). |
|
||||||
|
| **Schwarzer Bildschirm oder das Spiel öffnet sich nicht** | Aktualisieren Sie den Grafiktreiber (OpenGL 3.3 erforderlich). Setzen Sie das Häkchen bei **Ausführliches Protokoll** und starten Sie neu: Das Protokoll des Launchers zeigt die Ursache. |
|
||||||
|
| **„Spiel beendet, Code 0“** | Das ist ein normales Ende (Sie haben das Spiel verlassen). |
|
||||||
|
| **Keine HD-Hintergründe** | Prüfen Sie **Mods aktivieren**, **HD-Paket**, **Hintergründe** und das Kästchen des Mods; der Filter **CRT** zeigt immer die Original-Hintergründe. |
|
||||||
|
| **Bild zu klein / zu groß** | Fensterauflösung im Launcher oder mit F12, oder Vollbild (F11). |
|
||||||
|
| **Seltsame Einstellungen** | Löschen Sie `%APPDATA%\DoubleTroubleRecomp\settings.ini`: Das Spiel startet wieder mit den Standardwerten. |
|
||||||
|
|
||||||
|
Ein Problem melden: im Spiel **F12 → Signaler un bug** (Fehler melden). Wählen Sie die Art des
|
||||||
|
Fehlers, fügen Sie bei Bedarf einen Kommentar hinzu, dann **Écrire le rapport** (Bericht schreiben).
|
||||||
|
Das Spiel legt einen Ordner mit einem Bildschirmfoto, dem Spielzustand in diesem Moment und Ihren
|
||||||
|
Einstellungen an (nichts wird gesendet). Bei einem Absturz schreibt es selbst einen Bericht (Kästchen
|
||||||
|
**Rapport automatique si le jeu plante**).
|
||||||
|
|
||||||
|
Im Launcher listet die Karte **Fehlerberichte** (unter Spielstände) die letzten Berichte auf:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-de-carte-rapports.jpg" alt="Karte Fehlerberichte" width="720"></p>
|
||||||
|
|
||||||
|
- **Nachspielen** startet das Spiel mit dem Spielstand des Berichts, im Moment des Fehlers;
|
||||||
|
- **Zip** erstellt ein Zip zum Anhängen an Ihre Nachricht;
|
||||||
|
- **Öffnen** zeigt den Ordner;
|
||||||
|
- **Löschen** verschiebt den Bericht in den Papierkorb.
|
||||||
|
|
||||||
|
Eröffnen Sie dann ein Issue im Repository, mit dem Zip, Ihrer Windows-Version und Ihrer
|
||||||
|
Grafikkarte. Der Inhalt des Ordners ist in [SETTINGS.en.md](SETTINGS.en.md#bug-reports) beschrieben.
|
||||||
|
|
||||||
|
## 14. Aktualisieren, deinstallieren
|
||||||
|
|
||||||
|
**Aktualisieren**:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git pull
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
|
||||||
|
Dann im Launcher: **Einrichten → Erzeugen und kompilieren**.
|
||||||
|
|
||||||
|
**Deinstallieren**: Löschen Sie den Projektordner (behalten Sie `saves\` und `mods\`, wenn sie Ihnen
|
||||||
|
wichtig sind) und den Ordner `%APPDATA%\DoubleTroubleRecomp`. Die Werkzeuge (Build Tools, Python,
|
||||||
|
Rust, Upscayl) deinstallieren Sie über *Einstellungen → Apps*.
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Complete guide: install, build and play
|
# Complete guide: install, build and play
|
||||||
|
|
||||||
🇫🇷 [Français](GUIDE.md) · 🇺🇸 **English**
|
🇫🇷 [Français](GUIDE.md) · 🇺🇸 **English** · 🇩🇪 [Deutsch](GUIDE.de.md) · 🇪🇸 [Español](GUIDE.es.md) · 🇵🇱 [Polski](GUIDE.pl.md)
|
||||||
|
|
||||||
This guide starts from a Windows PC with nothing installed and takes you all the way to the game in
|
This guide starts from a Windows PC with nothing installed and takes you all the way to the game in
|
||||||
full screen, with filters, the HD pack and mods. Allow about half an hour, mostly for downloads.
|
full screen, with filters, the HD pack and mods. Allow about half an hour, mostly for downloads.
|
||||||
@@ -118,7 +118,10 @@ cargo build --release
|
|||||||
|
|
||||||
The first build downloads the Rust libraries and takes a few minutes. After that, run
|
The first build downloads the Rust libraries and takes a few minutes. After that, run
|
||||||
`launcher\target\release\DoubleTroubleLauncher.exe` directly (you can make a desktop shortcut).
|
`launcher\target\release\DoubleTroubleLauncher.exe` directly (you can make a desktop shortcut).
|
||||||
The launcher speaks French and English: **FR / EN** buttons at the top right.
|
|
||||||
|
The launcher speaks 5 languages: French, English, German, Spanish and Polish. Pick one at the top
|
||||||
|
right, in the **Language** menu (with a flag). The launcher's music follows the language: each
|
||||||
|
language has its own version of the theme song.
|
||||||
|
|
||||||
### First-time setup
|
### First-time setup
|
||||||
|
|
||||||
@@ -133,9 +136,13 @@ cannot be started yet:
|
|||||||
- capstone missing: **Install (pip)**;
|
- capstone missing: **Install (pip)**;
|
||||||
- SDL2 missing: **Download** (official SDL 2.32.10 archive, unzipped into `third_party\`);
|
- SDL2 missing: **Download** (official SDL 2.32.10 archive, unzipped into `third_party\`);
|
||||||
- Python or MSVC not found: go back to [step 2](#2-install-the-tools), then **Check**.
|
- Python or MSVC not found: go back to [step 2](#2-install-the-tools), then **Check**.
|
||||||
3. **Build**: **Generate and build**. The launcher translates `TUCKER.EXE` and `INTRO.EXE` to C
|
3. **Build**:
|
||||||
(about 1,500 functions), then compiles. It takes one to five minutes; the **Log** shows progress.
|
- **Game version**: the language of your CD. For now only the **French** version can be built;
|
||||||
At the end: "Game built".
|
the others (English, German, Spanish, Polish) are already in the list, marked "coming soon",
|
||||||
|
and will come later.
|
||||||
|
- **Generate and build**: the launcher translates `TUCKER.EXE` and `INTRO.EXE` to C
|
||||||
|
(about 1,500 functions), then compiles. It takes one to five minutes; the **Log** shows
|
||||||
|
progress. At the end: "Game built".
|
||||||
|
|
||||||
**Rebuild only** is for project updates that only touch the runtime: it does not regenerate the C.
|
**Rebuild only** is for project updates that only touch the runtime: it does not regenerate the C.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,495 @@
|
|||||||
|
<p align="center"><img src="images/title-guide.png" alt="Guía completa: instalar, compilar, jugar en 4K"></p>
|
||||||
|
|
||||||
|
# Guía completa: instalar, compilar y jugar
|
||||||
|
|
||||||
|
🇫🇷 [Français](GUIDE.md) · 🇺🇸 [English](GUIDE.en.md) · 🇩🇪 [Deutsch](GUIDE.de.md) · 🇪🇸 **Español** · 🇵🇱 [Polski](GUIDE.pl.md)
|
||||||
|
|
||||||
|
Esta guía parte de un PC con Windows sin nada instalado y te lleva hasta el juego en pantalla
|
||||||
|
completa, con filtros, pack HD y mods. Calcula una media hora, sobre todo por las descargas.
|
||||||
|
|
||||||
|
> ℹ️ Los documentos técnicos (ajustes, mods, texturas HD, hoja de ruta) solo existen en francés e
|
||||||
|
> inglés: los enlaces de abajo llevan a la versión inglesa.
|
||||||
|
|
||||||
|
## ⚡ En resumen
|
||||||
|
|
||||||
|
| Paso | Qué | Detalles |
|
||||||
|
|:---:|---|---|
|
||||||
|
| **1** | Instalar Build Tools 2022 (C++), Python 3.12 (casilla PATH) y Rust | [sección 2](#2-instalar-las-herramientas) |
|
||||||
|
| **2** | Obtener el proyecto: `git clone` o ZIP | [sección 3](#3-obtener-el-proyecto) |
|
||||||
|
| **3** | Compilar y abrir el launcher: `cargo build --release` | [sección 5](#5-con-el-launcher-recomendado) |
|
||||||
|
| **4** | En el launcher: elegir el juego y luego **Generar y compilar** | [sección 5](#primera-configuración) |
|
||||||
|
| **5** | ¡**JUGAR**! Después, si quieres, crear el pack HD | [secciones 8 y 9](#8-una-imagen-bonita-en-pantalla-grande) |
|
||||||
|
|
||||||
|
- [1. Lo que necesitas](#1-lo-que-necesitas)
|
||||||
|
- [2. Instalar las herramientas](#2-instalar-las-herramientas)
|
||||||
|
- [3. Obtener el proyecto](#3-obtener-el-proyecto)
|
||||||
|
- [4. Preparar el juego original](#4-preparar-el-juego-original)
|
||||||
|
- [5. Con el launcher (recomendado)](#5-con-el-launcher-recomendado)
|
||||||
|
- [6. Sin el launcher (línea de comandos)](#6-sin-el-launcher-línea-de-comandos)
|
||||||
|
- [7. En el juego](#7-en-el-juego)
|
||||||
|
- [8. Una imagen bonita en pantalla grande](#8-una-imagen-bonita-en-pantalla-grande)
|
||||||
|
- [9. Pack de fondos HD](#9-pack-de-fondos-hd)
|
||||||
|
- [10. Mods](#10-mods)
|
||||||
|
- [11. Partidas guardadas](#11-partidas-guardadas)
|
||||||
|
- [12. Cómo funciona](#12-cómo-funciona)
|
||||||
|
- [13. Solución de problemas](#13-solución-de-problemas)
|
||||||
|
- [14. Actualizar, desinstalar](#14-actualizar-desinstalar)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Lo que necesitas
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| **El juego original** | *Bud Tucker in Double Trouble* (Merit Studios, 1996): el CD, su imagen `.iso` o una copia de sus archivos, **versión francesa** (ver [§ 4](#4-preparar-el-juego-original)). El proyecto **no** incluye ningún archivo del juego. |
|
||||||
|
| **Sistema** | Windows 10 u 11, 64 bits. |
|
||||||
|
| **Gráficos** | Compatible con OpenGL 3.3: cualquier tarjeta o chip gráfico de los últimos diez años. |
|
||||||
|
| **Disco** | Unos 8 GB para las herramientas (sobre todo Visual Studio Build Tools), 700 MB para el proyecto compilado con el launcher y unos 350 MB por cada pack HD. |
|
||||||
|
|
||||||
|
El juego no se emula: su código se traduce a C y se compila en tu PC, por eso necesitas un
|
||||||
|
compilador. La traducción se hace **a partir de tu propia copia**: nada del juego pasa por Internet.
|
||||||
|
|
||||||
|
## 2. Instalar las herramientas
|
||||||
|
|
||||||
|
Instálalas en este orden. Haz doble clic en cada instalador y deja las opciones por defecto, salvo
|
||||||
|
que se indique lo contrario.
|
||||||
|
|
||||||
|
| Herramienta | Para qué | Dónde |
|
||||||
|
|---|---|---|
|
||||||
|
| **Visual Studio Build Tools 2022** | El compilador C de Microsoft (MSVC). Rust también lo usa. | [visualstudio.microsoft.com/downloads](https://visualstudio.microsoft.com/downloads/), sección «Tools for Visual Studio» |
|
||||||
|
| **Python 3.12** | Ejecuta el traductor x86 → C (`tools/recomp.py`). | [python.org/downloads](https://www.python.org/downloads/) |
|
||||||
|
| **Rust** | Compila el launcher. | [rustup.rs](https://rustup.rs/) (`rustup-init.exe`) |
|
||||||
|
| **Git** *(opcional)* | Para obtener el proyecto y actualizarlo. | [git-scm.com](https://git-scm.com/download/win) |
|
||||||
|
| **Upscayl** *(opcional)* | Para crear el pack HD (fondos, personajes y objetos) en un clic. No viene con el proyecto: instálalo si quieres el pack HD ([detalles](TEXTURES.en.md#1-install-upscayl)). | [upscayl.org](https://upscayl.org) |
|
||||||
|
|
||||||
|
Ten cuidado con:
|
||||||
|
|
||||||
|
- **Build Tools**: en el instalador, marca la carga de trabajo **«Desarrollo para el escritorio con
|
||||||
|
C++»** («Desktop development with C++»). Incluye MSVC v143 y el SDK de Windows. No hace falta nada
|
||||||
|
más.
|
||||||
|
- **Python**: en la primera pantalla, marca **«Add python.exe to PATH»**. Sin eso, ni el launcher ni
|
||||||
|
`build.bat` encuentran Python. El módulo `capstone` se puede instalar después con un clic desde el
|
||||||
|
launcher (o con `python -m pip install capstone`).
|
||||||
|
- **Rust**: `rustup-init.exe` propone la instalación por defecto (tecla **1**, Intro). Comprueba que
|
||||||
|
las Build Tools estén presentes: instálalas antes.
|
||||||
|
- **SDL2** (la biblioteca de ventana, teclado y sonido) no necesita instalación manual: el launcher
|
||||||
|
la descarga en el proyecto.
|
||||||
|
|
||||||
|
Después de instalar, **cierra y vuelve a abrir** tus ventanas de PowerShell para que vean los nuevos
|
||||||
|
programas.
|
||||||
|
|
||||||
|
## 3. Obtener el proyecto
|
||||||
|
|
||||||
|
Con Git, en PowerShell, donde quieras:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git clone https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp.git
|
||||||
|
cd DoubleTroubleRecomp
|
||||||
|
```
|
||||||
|
|
||||||
|
Sin Git: en la página del repositorio, usa el botón **Download** (o *Code → ZIP*) y descomprime el
|
||||||
|
archivo. Evita las carpetas sincronizadas (OneDrive): allí la compilación es lenta.
|
||||||
|
|
||||||
|
## 4. Preparar el juego original
|
||||||
|
|
||||||
|
> 💿 **Versión compatible por ahora: el CD francés, como imagen ISO**, la de [esta página de Abandonware France](https://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=662&fic=liens) (sección «Version ISO», allí se explica todo). Cómo comprobarlo: `TUCKER\TUCKER.EXE` ocupa **284 677 bytes**. Las versiones inglesa, alemana, española y polaca aún no son compatibles: su ejecutable es distinto ([detalles](TECHNIQUE.en.md#7-game-versions)).
|
||||||
|
|
||||||
|
El proyecto necesita la carpeta que contiene **`TUCKER.EXE`** e **`INTRO.EXE`**, junto con los
|
||||||
|
demás archivos del CD (imágenes, sonidos, vídeos). Tres opciones:
|
||||||
|
|
||||||
|
1. **Una copia en el disco (recomendado)**: copia la carpeta `TUCKER` del CD, por ejemplo en
|
||||||
|
`C:\Juegos\TUCKER`. No necesitarás el CD para jugar.
|
||||||
|
2. **El CD en el lector**: elige la unidad, por ejemplo `D:\`. El launcher encuentra solo la
|
||||||
|
subcarpeta `TUCKER`. El CD debe quedarse en el lector mientras juegas.
|
||||||
|
3. **Una imagen `.iso`**: el launcher la monta automáticamente en cada inicio (Windows lo hace sin
|
||||||
|
software adicional).
|
||||||
|
|
||||||
|
*Avanzado*: si también tienes la carpeta `C:\TUCKER` creada por la instalación DOS original, puedes
|
||||||
|
indicarla en el launcher («Avanzado: carpeta de instalación»). Es opcional: si no, el juego lo lee
|
||||||
|
todo del CD o de su copia.
|
||||||
|
|
||||||
|
## 5. Con el launcher (recomendado)
|
||||||
|
|
||||||
|
### Compilar y abrir el launcher
|
||||||
|
|
||||||
|
Una sola vez, en PowerShell, desde la carpeta del proyecto:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
.\target\release\DoubleTroubleLauncher.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
La primera compilación descarga las bibliotecas de Rust y tarda unos minutos. Después, ejecuta
|
||||||
|
directamente `launcher\target\release\DoubleTroubleLauncher.exe` (puedes crear un acceso directo en
|
||||||
|
el escritorio).
|
||||||
|
|
||||||
|
El launcher habla 5 idiomas: francés, inglés, alemán, español y polaco. Se elige arriba a la derecha,
|
||||||
|
en el menú **Language** (con bandera). La música del launcher sigue al idioma: cada idioma tiene su
|
||||||
|
versión de la canción principal.
|
||||||
|
|
||||||
|
### Primera configuración
|
||||||
|
|
||||||
|
En el primer inicio se abre la configuración, en tres pasos. A la izquierda, los pasos; a la derecha,
|
||||||
|
el juego, que todavía no se puede lanzar:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-es-1-premier-lancement.jpg" alt="Primer inicio: el juego todavía no se ha encontrado" width="900"></p>
|
||||||
|
|
||||||
|
1. **Juego original**: **Carpeta…** (copia o lector de CD) o **Imagen ISO…**. El punto verde «Juego
|
||||||
|
encontrado» confirma que `TUCKER.EXE` e `INTRO.EXE` están ahí.
|
||||||
|
2. **Requisitos**: se comprueban Python, capstone, MSVC y SDL2.
|
||||||
|
- falta capstone: **Instalar (pip)**;
|
||||||
|
- falta SDL2: **Descargar** (archivo oficial SDL 2.32.10, descomprimido en `third_party\`);
|
||||||
|
- Python o MSVC no encontrado: vuelve al [paso 2](#2-instalar-las-herramientas) y luego **Comprobar**.
|
||||||
|
3. **Compilación**:
|
||||||
|
- **Versión del juego**: el idioma de tu CD. Por ahora solo se puede compilar la versión
|
||||||
|
**francesa**; las demás (inglesa, alemana, española, polaca) ya aparecen en la lista, marcadas
|
||||||
|
«próximamente», y llegarán más adelante.
|
||||||
|
- **Generar y compilar**: el launcher traduce `TUCKER.EXE` e `INTRO.EXE` a C (unas 1500
|
||||||
|
funciones) y luego compila. Tarda de uno a cinco minutos; el **Registro** muestra el progreso.
|
||||||
|
Al final: «Juego compilado».
|
||||||
|
|
||||||
|
**Solo recompilar** sirve para las actualizaciones del proyecto que solo tocan el runtime: no vuelve
|
||||||
|
a generar el C.
|
||||||
|
|
||||||
|
Todo está en verde una vez hechos los tres pasos:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-es-2-configuration.jpg" alt="Configuración terminada: juego encontrado, requisitos presentes, juego compilado" width="900"></p>
|
||||||
|
|
||||||
|
Haz clic entonces en **Plegar la configuración** (abajo a la derecha): aparece la página principal.
|
||||||
|
**Configurar** la vuelve a abrir en cualquier momento.
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-es-3-accueil.jpg" alt="Página principal del launcher" width="900"></p>
|
||||||
|
|
||||||
|
### Jugar
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-es-carte-jouer.jpg" alt="Tarjeta Listo para jugar" width="900"></p>
|
||||||
|
|
||||||
|
- **Sonido**, **Saltar la intro**, **Registro detallado**: opciones de inicio.
|
||||||
|
- **Continuar mi partida**: arranca directamente en una partida guardada, sin la intro ni el menú del
|
||||||
|
juego. Por defecto, la última jugada; la lista de debajo permite elegir otra (con su miniatura), y
|
||||||
|
el launcher indica bajo **JUGAR** qué partida se cargará.
|
||||||
|
- **Pantalla**: pantalla completa, filtro, formato 4:3, sincronización vertical, resolución de la
|
||||||
|
ventana (1280 × 960, 1920 × 1080…).
|
||||||
|
- **Juego**: saltar los diálogos con un clic (un clic izquierdo corta la frase en curso), velocidad
|
||||||
|
al caminar de Bud (normal, × 1,5 o × 2, solo cuando camina porque tú se lo pides).
|
||||||
|
- **Volumen**: general, música, voces, efectos.
|
||||||
|
- **JUGAR** lanza el juego. El launcher sigue abierto y se actualiza cuando sales.
|
||||||
|
|
||||||
|
Los ajustes de pantalla y volumen son **los mismos que los del menú F12 del juego**: lo que cambias
|
||||||
|
en un lado aparece en el otro (archivo `%APPDATA%\DoubleTroubleRecomp\settings.ini`).
|
||||||
|
|
||||||
|
Otras tarjetas de la página principal:
|
||||||
|
|
||||||
|
- **Vista previa**: una vista previa de un fondo con el filtro elegido, calculada como en el juego.
|
||||||
|
Con un pack HD activo, la vista previa muestra el fondo HD (distintivo «HD»). Los fondos cambian
|
||||||
|
cada 7 segundos.
|
||||||
|
- **Zoom ×4**: marcado, un detalle al tamaño de una ventana de 1280 píxeles de ancho; desmarcado,
|
||||||
|
la imagen entera.
|
||||||
|
- **Comparar**: el original (píxeles en bruto) a la izquierda, la imagen del juego (filtro o HD) a
|
||||||
|
la derecha. Arrastra la línea amarilla, o haz clic en la imagen para colocarla.
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-es-carte-apercu.jpg" alt="Vista previa de los filtros" width="900"></p>
|
||||||
|
|
||||||
|
- **Partidas guardadas**: ver la [sección 11](#11-partidas-guardadas).
|
||||||
|
- **Mods y fondos HD**: ver las [secciones 9](#9-pack-de-fondos-hd) y [10](#10-mods).
|
||||||
|
|
||||||
|
El launcher guarda sus propias opciones (idioma, carpeta del juego, opciones, tamaño de la ventana)
|
||||||
|
en `%APPDATA%\DoubleTroubleRecomp\launcher.ini`.
|
||||||
|
|
||||||
|
## 6. Sin el launcher (línea de comandos)
|
||||||
|
|
||||||
|
Para los amantes del terminal. Mismos requisitos; instala SDL2 a mano: archivo
|
||||||
|
[`SDL2-devel-2.32.10-VC.zip`](https://github.com/libsdl-org/SDL/releases/tag/release-2.32.10),
|
||||||
|
descomprimido de forma que exista `third_party\SDL2-2.32.10\include\SDL.h`.
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
python -m pip install capstone
|
||||||
|
.\build.bat C:\Juegos\TUCKER
|
||||||
|
```
|
||||||
|
|
||||||
|
`build.bat` encuentra solo las Build Tools 2022 instaladas en la ubicación por defecto. Variantes:
|
||||||
|
|
||||||
|
| Comando | Efecto |
|
||||||
|
|---|---|
|
||||||
|
| `build.bat CARPETA` | genera el C a partir de `CARPETA\TUCKER.EXE` e `INTRO.EXE` y luego compila |
|
||||||
|
| `build.bat` | lo mismo, usando la variable `TUCKER_CD`, si no `..\extracted\iso\TUCKER` |
|
||||||
|
| `build.bat nogen` | recompila sin volver a generar el C |
|
||||||
|
|
||||||
|
Resultado: `build\tucker.exe`. Para jugar:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\build\tucker.exe --cd C:\Juegos\TUCKER --hd C:\Juegos\TUCKER --root C:\Juegos --son
|
||||||
|
```
|
||||||
|
|
||||||
|
Opciones principales (los nombres de las opciones están en francés; lista completa en [SETTINGS.en.md](SETTINGS.en.md)):
|
||||||
|
|
||||||
|
| Opción | Efecto |
|
||||||
|
|---|---|
|
||||||
|
| `--cd CARPETA` | archivos del CD (o de su copia) |
|
||||||
|
| `--hd CARPETA` | carpeta de instalación DOS `TUCKER` (si no, se reutiliza la carpeta del CD) |
|
||||||
|
| `--root CARPETA` | raíz de la unidad «C:» que ve el juego (la carpeta padre de `--hd`) |
|
||||||
|
| `--saves CARPETA` | carpeta de partidas guardadas (por defecto: `saves`) |
|
||||||
|
| `--son` | activa el sonido |
|
||||||
|
| `--sans-intro` / `--intro` | salta la intro / reproduce solo la intro |
|
||||||
|
| `--charger N` | arranca directamente en la partida `SAVEGM.N`, sin la intro (motor reciente, ver sección 11) |
|
||||||
|
| `--plein`, `--fenetre` | pantalla completa, ventana |
|
||||||
|
| `--resolution AxA` | ventana de A × A píxeles (por ejemplo `--resolution 1920x1080`); `--echelle N`: antiguo ajuste ×N |
|
||||||
|
| `--filtre nearest\|smooth\|xbr\|crt` | filtro de imagen |
|
||||||
|
| `--sans-mods`, `--sans-hd` | sin mods, sin pack HD |
|
||||||
|
| `-v` | registro detallado |
|
||||||
|
|
||||||
|
Las opciones de pantalla solo valen para la sesión; los ajustes permanentes están en `settings.ini`.
|
||||||
|
|
||||||
|
## 7. En el juego
|
||||||
|
|
||||||
|
| Tecla | Efecto |
|
||||||
|
|---|---|
|
||||||
|
| **F12** | menú de ajustes: volúmenes, pantalla completa, resolución, filtro, 4:3, sincronización, bordes difuminados en pantallas anchas, zonas clicables, pack HD (fondos, personajes y objetos, barra de acciones), salir del juego |
|
||||||
|
| **Esc** | cierra el menú F12 (si no, la tecla del juego original) |
|
||||||
|
| **F11** o **Alt+Intro** | pantalla completa / ventana |
|
||||||
|
| **F10** | pack HD sí/no, con un fundido (para comparar con la imagen original); una burbuja lo confirma |
|
||||||
|
| **Espacio** (mantenido) | muestra las zonas clicables de la sala: salidas en cian, objetos en verde, personajes en rosa, el resto en amarillo (se puede desactivar: launcher o F12) |
|
||||||
|
| Ratón | como en el juego original: verbos abajo, clic para actuar |
|
||||||
|
|
||||||
|
El menú F12 guarda sus cambios al cerrarse (el menú en sí está en francés por ahora). El juego guarda
|
||||||
|
y carga con su propio menú, como en 1996.
|
||||||
|
|
||||||
|
## 8. Una imagen bonita en pantalla grande
|
||||||
|
|
||||||
|
El juego siempre dibuja su imagen en 320×200; la tarjeta gráfica la amplía después con un filtro:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/filtres-en.jpg" alt="Comparación de los filtros Nítido, Suavizado, xBR, CRT y del pack HD" width="900"></p>
|
||||||
|
|
||||||
|
| Filtro | Aspecto | Consejo |
|
||||||
|
|---|---|---|
|
||||||
|
| **Nítido** (`nearest`) | píxeles en bruto | fiel, muy «pixel art» |
|
||||||
|
| **Suavizado** (`smooth`) | píxeles limpios, bordes suavizados | el mejor compromiso para los puristas |
|
||||||
|
| **xBR** | contornos redibujados, aspecto «dibujado» | muy bonito en pantallas 1440p o 4K |
|
||||||
|
| **CRT** | pantalla de tubo simulada | nostalgia; no muestra el pack HD |
|
||||||
|
|
||||||
|
- **Formato 4:3**: la imagen original se hizo para una pantalla 4:3 (píxeles más altos que anchos).
|
||||||
|
Déjalo activado para unas proporciones correctas; desactívalo para tener píxeles cuadrados.
|
||||||
|
- **Pantalla completa** usa la resolución del escritorio, sin cambiar el modo de vídeo. La imagen se
|
||||||
|
centra con bandas negras a los lados.
|
||||||
|
- **Sincronización vertical** elimina el tearing si lo ves.
|
||||||
|
- En una pantalla 1080p, 1440p o 4K, prueba **xBR** o **Suavizado**, con el **pack HD** activado.
|
||||||
|
|
||||||
|
## 9. Pack de fondos HD
|
||||||
|
|
||||||
|
> 🎨 **Tutorial completo (en inglés): [HD textures](TEXTURES.en.md)**: instalar Upscayl, exportar los
|
||||||
|
> fondos, ampliarlos con la herramienta que prefieras, retocarlos a mano, solución de problemas.
|
||||||
|
|
||||||
|
El pack HD sustituye en pantalla los fondos de las salas (320×200) por imágenes de alta definición
|
||||||
|
y, si el pack los incluye, a Bud, los personajes, los objetos y el cursor
|
||||||
|
([sprites HD](TEXTURES.en.md#i-hd-characters-and-objects-sprites)). La barra de acciones (verbos y
|
||||||
|
fondo) también pasa a HD; los textos siguen siendo los del juego. Las imágenes se crean **en tu PC a
|
||||||
|
partir de tu copia**: no se descarga ni se distribuye nada.
|
||||||
|
|
||||||
|
> ⚠️ **Por ahora: fondos HD sí, sprites HD no.** Los fondos HD se ven bien, pero los personajes y
|
||||||
|
> objetos HD (sprites) todavía fallan: imágenes cortadas, algunos personajes no aparecen. Se
|
||||||
|
> recomienda jugar con un pack HD **con «Personajes y objetos» desmarcado** (en el launcher, o en el
|
||||||
|
> juego con F12).
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-es-carte-mods.jpg" alt="Tarjeta Mods y fondos HD" width="900"></p>
|
||||||
|
|
||||||
|
### Con Upscayl (lo más fácil)
|
||||||
|
|
||||||
|
1. Instala [Upscayl](https://upscayl.org) ([paso a paso](TEXTURES.en.md#1-install-upscayl)). Mientras
|
||||||
|
falte, el launcher muestra un recuadro amarillo «Upscayl no está instalado».
|
||||||
|
2. En el launcher, tarjeta **Mods y fondos HD**, «Crear un pack HD con Upscayl»: elige un modelo,
|
||||||
|
deja marcados **Fondos**, **Cinemáticas** y **Barra de acciones** y luego **Crear el pack**. Las
|
||||||
|
148 imágenes (122 fondos, 24 imágenes de cinemáticas, la barra de acciones) se amplían ×4 en
|
||||||
|
unos minutos. **Personajes y objetos** (experimental, desmarcado por defecto) añade varios miles
|
||||||
|
de imágenes y tarda bastante más. Todo va a `mods\hd_upscayl` (o `mods\hd_upscayl_<modelo>`), con
|
||||||
|
**un solo modelo para todo el pack**. Desmarca **Mismo modelo para todo** para elegir un modelo
|
||||||
|
por parte (pack compuesto, en `mods\hd_perso`). El botón **Detener** (al lado, o en la barra
|
||||||
|
inferior) interrumpe la creación; **Reparar** rehace después las imágenes vacías. Para un pack de
|
||||||
|
fondos que ya existe: botón **+ sprites HD** en su línea. Las 24 imágenes fijas de las cinemáticas
|
||||||
|
(pirámide, mapas, periódicos…) se crean con los fondos. **Cierra los juegos y aplicaciones 3D
|
||||||
|
durante la creación**: Upscayl carga mucho la tarjeta gráfica. Si faltan imágenes tras un cuelgue,
|
||||||
|
botón **Reparar** en la línea del pack.
|
||||||
|
3. Comprueba que **Activar los mods**, **Pack HD** y **Fondos** estén marcados (por ahora,
|
||||||
|
desmarca **Personajes y objetos**: ver el recuadro de arriba) y juega. Cada casilla se puede
|
||||||
|
desactivar por separado, también en el juego con F12.
|
||||||
|
|
||||||
|
Los modelos dan aspectos distintos; puedes crear varios y cambiar con la casilla de cada mod:
|
||||||
|
|
||||||
|
| Modelo | Aspecto |
|
||||||
|
|---|---|
|
||||||
|
| `digital-art-4x` (por defecto) | colores planos limpios, contornos nítidos: encaja con el estilo de dibujo animado del juego |
|
||||||
|
| `high-fidelity-4x` | cercano al original, conserva el tramado de píxeles |
|
||||||
|
| `remacri-4x` | nítido y detallado, pensado más bien para fotos |
|
||||||
|
| `ultrasharp-4x` | muy nítido, puede acentuar los defectos |
|
||||||
|
| `ultramix-balanced-4x` | compromiso más suave |
|
||||||
|
| `upscayl-lite-4x`, `upscayl-standard-4x` | uso general; «lite» es más rápido |
|
||||||
|
|
||||||
|
Línea de comandos: `python tools\hd_export.py C:\Juegos\TUCKER mods\hd_upscayl\hd --upscayl [MODELO]`.
|
||||||
|
|
||||||
|
### Con la herramienta que prefieras
|
||||||
|
|
||||||
|
1. Launcher: **Exportar las imágenes originales** (una ventana resume lo que va a pasar; **Detener**
|
||||||
|
interrumpe la exportación). Los fondos (PNG 320×200) van a `mods\_decors_originaux` (el `_` hace
|
||||||
|
que el juego ignore esa carpeta), y después los personajes y objetos a sus subcarpetas `SHEETS` y
|
||||||
|
`SPRITES` (2-3 minutos). La carpeta se abre al terminar.
|
||||||
|
2. Amplíalas con lo que quieras: Upscayl, chaiNNer, waifu2x, Topaz, retoque a mano…
|
||||||
|
3. Launcher: escribe un nombre y luego **Nuevo mod**. Se crea la carpeta `mods\<nombre>\hd\` y se
|
||||||
|
abre.
|
||||||
|
4. Deja allí las imágenes ampliadas **con el mismo nombre y subcarpeta** (`LOC01.png`,
|
||||||
|
`SHEETS\BUD_1.png`, `SPRITES\A01_04.png`) y luego **Actualizar**.
|
||||||
|
|
||||||
|
Reglas de las imágenes:
|
||||||
|
|
||||||
|
- el mismo encuadre que el original: toda la imagen 320×200, parte inferior incluida;
|
||||||
|
- cualquier tamaño en proporción 16:10: 1280×800 (×4) es una buena elección, 2560×1600 también vale;
|
||||||
|
- todas las piezas de una sala (`LOC03A`, `LOC03B`…) tienen el mismo tamaño;
|
||||||
|
- PNG RGB o RGBA (el alfa se ignora), sin entrelazado;
|
||||||
|
- un pack parcial funciona: un fondo sin PNG se queda en 320×200.
|
||||||
|
|
||||||
|
Paso a paso, retoque y solución de problemas: [TEXTURES.en.md](TEXTURES.en.md). Detalles técnicos:
|
||||||
|
[MODS.en.md](MODS.en.md).
|
||||||
|
|
||||||
|
## 10. Mods
|
||||||
|
|
||||||
|
Un mod es una carpeta dentro de `mods\`, en la raíz del proyecto:
|
||||||
|
|
||||||
|
```
|
||||||
|
mods\
|
||||||
|
mi_mod\
|
||||||
|
mod.ini nombre, autor, descripción (los muestra el launcher)
|
||||||
|
hd\ fondos HD (LOC01.png…), sprites HD (SHEETS\, SPRITES\)
|
||||||
|
files\ archivos del juego sustituidos (mismo nombre y ruta que en el CD)
|
||||||
|
```
|
||||||
|
|
||||||
|
- Los mods se aplican por orden alfabético; para un mismo archivo, gana el último. Pon delante
|
||||||
|
`10_`, `20_` para fijar el orden.
|
||||||
|
- Una carpeta cuyo nombre empieza por `_` o `.` se ignora.
|
||||||
|
- En el launcher, cada mod tiene su casilla; **Activar los mods** los desactiva todos. Los cambios
|
||||||
|
en los mods se aplican en el siguiente inicio; el pack HD también se puede ajustar en el juego con
|
||||||
|
F12, y F10 lo activa o desactiva.
|
||||||
|
|
||||||
|
`mod.ini`:
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[mod]
|
||||||
|
name=Mi mod
|
||||||
|
author=Yo
|
||||||
|
description=Lo que hace el mod
|
||||||
|
```
|
||||||
|
|
||||||
|
Formato completo: [MODS.en.md](MODS.en.md).
|
||||||
|
|
||||||
|
## 11. Partidas guardadas
|
||||||
|
|
||||||
|
Las partidas se guardan en la carpeta `saves\` del proyecto (`SAVEGM.01`, `SAVEGM.02`… y
|
||||||
|
`NOFILES.DTA`). La tarjeta **Partidas guardadas** del launcher las enumera con una miniatura del
|
||||||
|
lugar y la fecha:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-es-carte-sauvegardes.jpg" alt="Tarjeta Partidas guardadas" width="900"></p>
|
||||||
|
|
||||||
|
También permite:
|
||||||
|
|
||||||
|
- **eliminar** una partida: se guarda una copia, y las partidas siguientes se renumeran como el juego
|
||||||
|
espera;
|
||||||
|
- hacer una **copia de seguridad** de todas las partidas (`saves\backups\`);
|
||||||
|
- **restaurar** una copia: las partidas actuales se copian antes;
|
||||||
|
- **abrir la carpeta**;
|
||||||
|
- **jugar** una partida: el botón amarillo lanza el juego directamente en esa partida.
|
||||||
|
|
||||||
|
**Guardado automático**: el juego también guarda por sí solo al salir de cada lugar, en `SAVEGM.99`,
|
||||||
|
aparte de tus partidas (nunca las sustituye). Aparece arriba de la tarjeta, enmarcado en amarillo,
|
||||||
|
con su botón **Jugar**. **Continuar mi partida** lo elige cuando es más reciente que tu última
|
||||||
|
partida. Una casilla de la tarjeta (o F12, pestaña Jeu) lo desactiva. La ranura `SAVEGM.98` la usa el
|
||||||
|
botón **Volver a jugar** de los informes de errores.
|
||||||
|
|
||||||
|
**Partidas del menú F12**: en el juego, F12, pestaña Jeu, **Sauvegarder la partie** (guardar la
|
||||||
|
partida) crea una partida nueva cada vez, sin límite y sin sobrescribir nada, junto con una imagen
|
||||||
|
del juego en ese momento. La tarjeta **Partidas del menú F12** del launcher las enumera (las más
|
||||||
|
recientes primero) con esa imagen, el lugar y la fecha: **Jugar** lanza el juego en ella,
|
||||||
|
**Eliminar** mueve el archivo a la papelera tras una confirmación. Se guardan en
|
||||||
|
`%APPDATA%\DoubleTroubleRecomp\parties`, aparte de las partidas del juego original; para cargar una,
|
||||||
|
el launcher (como el menú F12) pasa por la ranura reservada `SAVEGM.97`.
|
||||||
|
|
||||||
|
La carga al arrancar (ese botón y **Continuar mi partida**) necesita un motor que conozca la opción
|
||||||
|
`--charger`: si el juego compilado es más antiguo, el launcher te lo dice; basta con recompilarlo
|
||||||
|
después de actualizar el proyecto.
|
||||||
|
|
||||||
|
Estas acciones están bloqueadas mientras el juego está abierto. Para conservar tus partidas, haz una
|
||||||
|
copia de la carpeta `saves\`.
|
||||||
|
|
||||||
|
## 12. Cómo funciona
|
||||||
|
|
||||||
|
```
|
||||||
|
TUCKER.EXE / INTRO.EXE (tu copia, formato LE para DOS/4GW)
|
||||||
|
│ tools/recomp.py: desensamblado (Capstone), una función C por cada función x86
|
||||||
|
▼
|
||||||
|
build/gen_*/*.c + runtime/ (CPU, FPU, DOS, VGA, sonido, menú, mods, pack HD)
|
||||||
|
│ MSVC
|
||||||
|
▼
|
||||||
|
build/tucker.exe ── SDL2 (ventana, teclado, ratón, sonido) + OpenGL (filtros, fondos HD)
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Recompilación estática**: cada instrucción x86 se convierte en C que actúa sobre una CPU emulada
|
||||||
|
(registros, pila, flags). Se conserva el comportamiento original, a la velocidad de un programa
|
||||||
|
nativo.
|
||||||
|
- **Runtime**: sustituye lo que el juego esperaba de DOS y de un PC de 1996: memoria DOS/4GW,
|
||||||
|
archivos, temporizador, tarjeta VGA, tarjeta de sonido (controlador AIL emulado).
|
||||||
|
- **Overrides**: algunas funciones del juego están reescritas a mano en C (`runtime/overrides.c`). El
|
||||||
|
sonido moderno, la pantalla, los mods y el pack HD pasan por ahí.
|
||||||
|
- **Aviso legal**: el repositorio no contiene ningún archivo del juego ni código generado a partir de
|
||||||
|
sus ejecutables. Todo eso se produce en tu PC, en `build\` y `mods\`, excluidos del repositorio.
|
||||||
|
|
||||||
|
Hoja de ruta (en inglés): [ROADMAP.en.md](ROADMAP.en.md).
|
||||||
|
|
||||||
|
## 13. Solución de problemas
|
||||||
|
|
||||||
|
| Problema | Solución |
|
||||||
|
|---|---|
|
||||||
|
| **«Juego no encontrado»** | La carpeta elegida debe contener `TUCKER.EXE` e `INTRO.EXE`, o una subcarpeta `TUCKER` que los contenga. |
|
||||||
|
| **Python «no está en el PATH»**, o `python` abre Microsoft Store | Reinstala Python desde python.org con «Add python.exe to PATH» marcado. O desactiva los alias en *Configuración → Aplicaciones → Configuración avanzada de aplicaciones → Alias de ejecución de aplicaciones* (python.exe, python3.exe). Vuelve a abrir el launcher. |
|
||||||
|
| **MSVC no encontrado** | Instala las Build Tools 2022 con «Desarrollo para el escritorio con C++». Si lo añades después, vuelve a abrir el Visual Studio Installer → **Modificar**. |
|
||||||
|
| **`cargo build`: `link.exe` no encontrado** | La misma causa: faltan las Build Tools. |
|
||||||
|
| **`cargo` no encontrado** | Rust no está instalado, o el terminal se abrió antes de instalarlo: vuelve a abrirlo. |
|
||||||
|
| **Falla la descarga de SDL2** | Descarga `SDL2-devel-2.32.10-VC.zip` a mano y descomprímelo en `third_party\` (debe existir `third_party\SDL2-2.32.10\include\SDL.h`) y luego **Comprobar**. |
|
||||||
|
| **Falla la compilación** | Abre el **Registro**, luego **Copiar**, y adjunta el texto a tu informe. **Generar y compilar** empieza de cero. |
|
||||||
|
| **Sin sonido** | Marca **Sonido** en el launcher (opción `--son`) y comprueba los volúmenes (F12). |
|
||||||
|
| **Pantalla negra o el juego no se abre** | Actualiza el controlador gráfico (se necesita OpenGL 3.3). Marca **Registro detallado** y vuelve a lanzar: el registro del launcher muestra la causa. |
|
||||||
|
| **«juego terminado, código 0»** | Es una salida normal (has salido del juego). |
|
||||||
|
| **Sin fondos HD** | Comprueba **Activar los mods**, **Pack HD**, **Fondos** y la casilla del mod; el filtro **CRT** muestra siempre los fondos originales. |
|
||||||
|
| **Imagen demasiado pequeña / grande** | Resolución de la ventana en el launcher o en F12, o pantalla completa (F11). |
|
||||||
|
| **Ajustes raros** | Elimina `%APPDATA%\DoubleTroubleRecomp\settings.ini`: el juego vuelve a los valores por defecto. |
|
||||||
|
|
||||||
|
Para informar de un problema: en el juego, **F12 → Signaler un bug** (informar de un error). Elige el
|
||||||
|
tipo de error, añade un comentario si quieres y luego **Écrire le rapport** (escribir el informe). El
|
||||||
|
juego crea una carpeta con una captura de pantalla, el estado del juego en ese momento y tus ajustes
|
||||||
|
(no se envía nada). Si se cuelga, escribe un informe por sí solo (casilla **Rapport automatique si le
|
||||||
|
jeu plante**).
|
||||||
|
|
||||||
|
En el launcher, la tarjeta **Informes de errores** (bajo Partidas guardadas) enumera los últimos
|
||||||
|
informes:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-es-carte-rapports.jpg" alt="Tarjeta Informes de errores" width="720"></p>
|
||||||
|
|
||||||
|
- **Volver a jugar** relanza el juego en la partida del informe, en el momento del error;
|
||||||
|
- **Zip** crea un zip para adjuntar a tu mensaje;
|
||||||
|
- **Abrir** muestra la carpeta;
|
||||||
|
- **Eliminar** mueve el informe a la papelera.
|
||||||
|
|
||||||
|
Después abre una incidencia (issue) en el repositorio con el zip, tu versión de Windows y tu tarjeta
|
||||||
|
gráfica. El contenido de la carpeta se detalla en [SETTINGS.en.md](SETTINGS.en.md#bug-reports).
|
||||||
|
|
||||||
|
## 14. Actualizar, desinstalar
|
||||||
|
|
||||||
|
**Actualizar**:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git pull
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
|
||||||
|
Luego, en el launcher: **Configurar → Generar y compilar**.
|
||||||
|
|
||||||
|
**Desinstalar**: elimina la carpeta del proyecto (conserva `saves\` y `mods\` si te importan) y la
|
||||||
|
carpeta `%APPDATA%\DoubleTroubleRecomp`. Las herramientas (Build Tools, Python, Rust, Upscayl) se
|
||||||
|
desinstalan desde *Configuración → Aplicaciones*.
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Guide complet : installer, compiler et jouer
|
# Guide complet : installer, compiler et jouer
|
||||||
|
|
||||||
🇫🇷 **Français** · 🇺🇸 [English](GUIDE.en.md)
|
🇫🇷 **Français** · 🇺🇸 [English](GUIDE.en.md) · 🇩🇪 [Deutsch](GUIDE.de.md) · 🇪🇸 [Español](GUIDE.es.md) · 🇵🇱 [Polski](GUIDE.pl.md)
|
||||||
|
|
||||||
Ce guide part d'un PC Windows sur lequel rien n'est installé et va jusqu'au jeu en plein écran, avec
|
Ce guide part d'un PC Windows sur lequel rien n'est installé et va jusqu'au jeu en plein écran, avec
|
||||||
les filtres, le pack HD et les mods. Comptez une demi-heure, surtout pour les téléchargements.
|
les filtres, le pack HD et les mods. Comptez une demi-heure, surtout pour les téléchargements.
|
||||||
@@ -120,8 +120,11 @@ cargo build --release
|
|||||||
|
|
||||||
La première compilation télécharge les bibliothèques Rust et prend quelques minutes. Ensuite,
|
La première compilation télécharge les bibliothèques Rust et prend quelques minutes. Ensuite,
|
||||||
lancez directement `launcher\target\release\DoubleTroubleLauncher.exe` (vous pouvez créer un
|
lancez directement `launcher\target\release\DoubleTroubleLauncher.exe` (vous pouvez créer un
|
||||||
raccourci sur le bureau). Le launcher est en français et en anglais : boutons **FR / EN** en haut
|
raccourci sur le bureau).
|
||||||
à droite.
|
|
||||||
|
Le launcher parle 5 langues : français, anglais, allemand, espagnol et polonais. La langue se
|
||||||
|
choisit en haut à droite, dans le menu **Language** (avec drapeau). La musique du launcher suit la langue :
|
||||||
|
chaque langue a sa version de la chanson-titre.
|
||||||
|
|
||||||
### Première configuration
|
### Première configuration
|
||||||
|
|
||||||
@@ -137,9 +140,13 @@ le jeu, qui ne peut pas encore être lancé :
|
|||||||
- SDL2 absent : **Télécharger** (archive officielle de SDL 2.32.10, décompressée dans
|
- SDL2 absent : **Télécharger** (archive officielle de SDL 2.32.10, décompressée dans
|
||||||
`third_party\`) ;
|
`third_party\`) ;
|
||||||
- Python ou MSVC introuvable : revenez à l'[étape 2](#2-installer-les-outils), puis **Vérifier**.
|
- Python ou MSVC introuvable : revenez à l'[étape 2](#2-installer-les-outils), puis **Vérifier**.
|
||||||
3. **Compilation** : **Générer et compiler**. Le launcher traduit `TUCKER.EXE` et `INTRO.EXE` en C
|
3. **Compilation** :
|
||||||
(environ 1 500 fonctions), puis compile. Comptez de une à cinq minutes ; le **Journal** affiche
|
- **Version du jeu** : la langue de votre CD. Pour l'instant, seule la version **française** se
|
||||||
l'avancement. À la fin : « Jeu compilé ».
|
compile ; les autres (anglaise, allemande, espagnole, polonaise) figurent déjà dans la liste,
|
||||||
|
marquées « bientôt », et arriveront plus tard.
|
||||||
|
- **Générer et compiler** : le launcher traduit `TUCKER.EXE` et `INTRO.EXE` en C
|
||||||
|
(environ 1 500 fonctions), puis compile. Comptez de une à cinq minutes ; le **Journal**
|
||||||
|
affiche l'avancement. À la fin : « Jeu compilé ».
|
||||||
|
|
||||||
**Recompiler seulement** sert après une mise à jour du projet qui ne touche que le runtime : il ne
|
**Recompiler seulement** sert après une mise à jour du projet qui ne touche que le runtime : il ne
|
||||||
régénère pas le C.
|
régénère pas le C.
|
||||||
|
|||||||
@@ -0,0 +1,489 @@
|
|||||||
|
<p align="center"><img src="images/title-guide.png" alt="Pełny poradnik: instalacja, kompilacja, gra w 4K"></p>
|
||||||
|
|
||||||
|
# Pełny poradnik: instalacja, kompilacja i gra
|
||||||
|
|
||||||
|
🇫🇷 [Français](GUIDE.md) · 🇺🇸 [English](GUIDE.en.md) · 🇩🇪 [Deutsch](GUIDE.de.md) · 🇪🇸 [Español](GUIDE.es.md) · 🇵🇱 **Polski**
|
||||||
|
|
||||||
|
Ten poradnik zaczyna od komputera z Windows, na którym nic nie jest zainstalowane, i prowadzi aż do
|
||||||
|
gry na pełnym ekranie, z filtrami, pakietem HD i modami. Licz na około pół godziny, głównie na
|
||||||
|
pobieranie.
|
||||||
|
|
||||||
|
> ℹ️ Dokumenty techniczne (ustawienia, mody, tekstury HD, mapa drogowa) istnieją tylko po francusku
|
||||||
|
> i angielsku: linki poniżej prowadzą do wersji angielskiej.
|
||||||
|
|
||||||
|
## ⚡ W skrócie
|
||||||
|
|
||||||
|
| Krok | Co | Szczegóły |
|
||||||
|
|:---:|---|---|
|
||||||
|
| **1** | Zainstaluj Build Tools 2022 (C++), Python 3.12 (pole PATH) i Rust | [sekcja 2](#2-instalacja-narzędzi) |
|
||||||
|
| **2** | Pobierz projekt: `git clone` lub ZIP | [sekcja 3](#3-pobranie-projektu) |
|
||||||
|
| **3** | Skompiluj i otwórz launcher: `cargo build --release` | [sekcja 5](#5-z-launcherem-zalecane) |
|
||||||
|
| **4** | W launcherze: wybierz grę, potem **Wygeneruj i skompiluj** | [sekcja 5](#pierwsza-konfiguracja) |
|
||||||
|
| **5** | **GRAJ**! Potem, jeśli chcesz, utwórz pakiet HD | [sekcje 8 i 9](#8-piękny-obraz-na-dużym-ekranie) |
|
||||||
|
|
||||||
|
- [1. Czego potrzebujesz](#1-czego-potrzebujesz)
|
||||||
|
- [2. Instalacja narzędzi](#2-instalacja-narzędzi)
|
||||||
|
- [3. Pobranie projektu](#3-pobranie-projektu)
|
||||||
|
- [4. Przygotowanie oryginalnej gry](#4-przygotowanie-oryginalnej-gry)
|
||||||
|
- [5. Z launcherem (zalecane)](#5-z-launcherem-zalecane)
|
||||||
|
- [6. Bez launchera (wiersz poleceń)](#6-bez-launchera-wiersz-poleceń)
|
||||||
|
- [7. W grze](#7-w-grze)
|
||||||
|
- [8. Piękny obraz na dużym ekranie](#8-piękny-obraz-na-dużym-ekranie)
|
||||||
|
- [9. Pakiet teł HD](#9-pakiet-teł-hd)
|
||||||
|
- [10. Mody](#10-mody)
|
||||||
|
- [11. Zapisy gry](#11-zapisy-gry)
|
||||||
|
- [12. Jak to działa](#12-jak-to-działa)
|
||||||
|
- [13. Rozwiązywanie problemów](#13-rozwiązywanie-problemów)
|
||||||
|
- [14. Aktualizacja, odinstalowanie](#14-aktualizacja-odinstalowanie)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Czego potrzebujesz
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| **Oryginalna gra** | *Bud Tucker in Double Trouble* (Merit Studios, 1996): płyta CD, jej obraz `.iso` lub kopia jej plików, **wersja francuska** (patrz [§ 4](#4-przygotowanie-oryginalnej-gry)). Projekt **nie** zawiera żadnych plików gry. |
|
||||||
|
| **System** | Windows 10 lub 11, 64-bitowy. |
|
||||||
|
| **Grafika** | Zgodna z OpenGL 3.3: każda karta lub układ graficzny z ostatnich dziesięciu lat. |
|
||||||
|
| **Dysk** | Około 8 GB na narzędzia (głównie Visual Studio Build Tools), 700 MB na skompilowany projekt z launcherem i około 350 MB na każdy pakiet HD. |
|
||||||
|
|
||||||
|
Gra nie jest emulowana: jej kod jest tłumaczony na C i kompilowany na twoim komputerze, dlatego
|
||||||
|
potrzebny jest kompilator. Tłumaczenie powstaje **z twojej własnej kopii**: nic z gry nie przechodzi
|
||||||
|
przez Internet.
|
||||||
|
|
||||||
|
## 2. Instalacja narzędzi
|
||||||
|
|
||||||
|
Zainstaluj je w tej kolejności. Kliknij dwukrotnie każdy instalator i zostaw ustawienia domyślne,
|
||||||
|
chyba że napisano inaczej.
|
||||||
|
|
||||||
|
| Narzędzie | Po co | Gdzie |
|
||||||
|
|---|---|---|
|
||||||
|
| **Visual Studio Build Tools 2022** | Kompilator C od Microsoftu (MSVC). Rust też go używa. | [visualstudio.microsoft.com/downloads](https://visualstudio.microsoft.com/downloads/), sekcja „Tools for Visual Studio” |
|
||||||
|
| **Python 3.12** | Uruchamia tłumacza x86 → C (`tools/recomp.py`). | [python.org/downloads](https://www.python.org/downloads/) |
|
||||||
|
| **Rust** | Kompiluje launcher. | [rustup.rs](https://rustup.rs/) (`rustup-init.exe`) |
|
||||||
|
| **Git** *(opcjonalnie)* | Do pobrania projektu i jego aktualizacji. | [git-scm.com](https://git-scm.com/download/win) |
|
||||||
|
| **Upscayl** *(opcjonalnie)* | Do utworzenia pakietu HD (tła, postacie i przedmioty) jednym kliknięciem. Nie jest dołączony do projektu: zainstaluj go, jeśli chcesz pakiet HD ([szczegóły](TEXTURES.en.md#1-install-upscayl)). | [upscayl.org](https://upscayl.org) |
|
||||||
|
|
||||||
|
Zwróć uwagę na:
|
||||||
|
|
||||||
|
- **Build Tools**: w instalatorze zaznacz pakiet roboczy **„Programowanie aplikacji klasycznych
|
||||||
|
w języku C++”** („Desktop development with C++”). Zawiera MSVC v143 i Windows SDK. Nic więcej nie
|
||||||
|
jest potrzebne.
|
||||||
|
- **Python**: na pierwszym ekranie zaznacz **„Add python.exe to PATH”**. Bez tego ani launcher, ani
|
||||||
|
`build.bat` nie znajdą Pythona. Moduł `capstone` można potem zainstalować jednym kliknięciem
|
||||||
|
z launchera (albo poleceniem `python -m pip install capstone`).
|
||||||
|
- **Rust**: `rustup-init.exe` proponuje instalację domyślną (klawisz **1**, Enter). Sprawdza, czy są
|
||||||
|
Build Tools: zainstaluj je najpierw.
|
||||||
|
- **SDL2** (biblioteka okna, klawiatury i dźwięku) nie wymaga ręcznej instalacji: launcher pobiera
|
||||||
|
ją do projektu.
|
||||||
|
|
||||||
|
Po instalacji **zamknij i otwórz ponownie** okna PowerShell, żeby widziały nowe programy.
|
||||||
|
|
||||||
|
## 3. Pobranie projektu
|
||||||
|
|
||||||
|
Z Gitem, w PowerShell, w dowolnym miejscu:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git clone https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp.git
|
||||||
|
cd DoubleTroubleRecomp
|
||||||
|
```
|
||||||
|
|
||||||
|
Bez Gita: na stronie repozytorium użyj przycisku **Download** (lub *Code → ZIP*) i rozpakuj archiwum.
|
||||||
|
Unikaj folderów synchronizowanych (OneDrive): kompilacja jest tam powolna.
|
||||||
|
|
||||||
|
## 4. Przygotowanie oryginalnej gry
|
||||||
|
|
||||||
|
> 💿 **Obecnie obsługiwana wersja: francuskie CD jako obraz ISO**, ta z [tej strony Abandonware France](https://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=662&fic=liens) (sekcja „Version ISO”, tam wszystko jest wyjaśnione). Jak sprawdzić: `TUCKER\TUCKER.EXE` ma **284 677 bajtów**. Wersje angielska, niemiecka, hiszpańska i polska nie są jeszcze obsługiwane: ich plik wykonywalny jest inny ([szczegóły](TECHNIQUE.en.md#7-game-versions)).
|
||||||
|
|
||||||
|
Projekt potrzebuje folderu zawierającego **`TUCKER.EXE`** i **`INTRO.EXE`** razem z pozostałymi
|
||||||
|
plikami z CD (obrazy, dźwięki, filmy). Trzy możliwości:
|
||||||
|
|
||||||
|
1. **Kopia na dysku (zalecane)**: skopiuj folder `TUCKER` z płyty, na przykład do
|
||||||
|
`C:\Gry\TUCKER`. Do gry nie będziesz potrzebować płyty.
|
||||||
|
2. **Płyta w napędzie**: wybierz napęd, na przykład `D:\`. Launcher sam znajdzie podfolder
|
||||||
|
`TUCKER`. Płyta musi zostać w napędzie podczas gry.
|
||||||
|
3. **Obraz `.iso`**: launcher montuje go automatycznie przy każdym uruchomieniu (Windows robi to bez
|
||||||
|
dodatkowego oprogramowania).
|
||||||
|
|
||||||
|
*Zaawansowane*: jeśli masz też folder `C:\TUCKER` utworzony przez oryginalną instalację DOS, możesz
|
||||||
|
go wskazać w launcherze („Zaawansowane: folder instalacji”). To opcjonalne: w przeciwnym razie gra
|
||||||
|
czyta wszystko z płyty lub jej kopii.
|
||||||
|
|
||||||
|
## 5. Z launcherem (zalecane)
|
||||||
|
|
||||||
|
### Kompilacja i otwarcie launchera
|
||||||
|
|
||||||
|
Jednorazowo, w PowerShell, w folderze projektu:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
.\target\release\DoubleTroubleLauncher.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
Pierwsza kompilacja pobiera biblioteki Rusta i trwa kilka minut. Potem uruchamiaj bezpośrednio
|
||||||
|
`launcher\target\release\DoubleTroubleLauncher.exe` (możesz utworzyć skrót na pulpicie).
|
||||||
|
|
||||||
|
Launcher mówi w 5 językach: francuskim, angielskim, niemieckim, hiszpańskim i polskim. Wybierasz go
|
||||||
|
w prawym górnym rogu, w menu **Language** (z flagą). Muzyka launchera podąża za językiem: każdy
|
||||||
|
język ma własną wersję piosenki tytułowej.
|
||||||
|
|
||||||
|
### Pierwsza konfiguracja
|
||||||
|
|
||||||
|
Przy pierwszym uruchomieniu otwiera się konfiguracja w trzech krokach. Po lewej kroki, po prawej
|
||||||
|
gra, której nie da się jeszcze uruchomić:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-pl-1-premier-lancement.jpg" alt="Pierwsze uruchomienie: gra nie została jeszcze znaleziona" width="900"></p>
|
||||||
|
|
||||||
|
1. **Oryginalna gra**: **Folder…** (kopia lub napęd CD) albo **Obraz ISO…**. Zielona kropka „Gra
|
||||||
|
znaleziona” potwierdza, że `TUCKER.EXE` i `INTRO.EXE` są na miejscu.
|
||||||
|
2. **Wymagania**: sprawdzane są Python, capstone, MSVC i SDL2.
|
||||||
|
- brak capstone: **Zainstaluj (pip)**;
|
||||||
|
- brak SDL2: **Pobierz** (oficjalne archiwum SDL 2.32.10, rozpakowane do `third_party\`);
|
||||||
|
- nie znaleziono Pythona lub MSVC: wróć do [kroku 2](#2-instalacja-narzędzi), potem **Sprawdź**.
|
||||||
|
3. **Kompilacja**:
|
||||||
|
- **Wersja gry**: język twojej płyty. Na razie da się skompilować tylko wersję **francuską**;
|
||||||
|
pozostałe (angielska, niemiecka, hiszpańska, polska) są już na liście z dopiskiem „wkrótce”
|
||||||
|
i pojawią się później.
|
||||||
|
- **Wygeneruj i skompiluj**: launcher tłumaczy `TUCKER.EXE` i `INTRO.EXE` na C (około 1500
|
||||||
|
funkcji), a potem kompiluje. Trwa to od jednej do pięciu minut; **Dziennik** pokazuje postęp.
|
||||||
|
Na koniec: „Gra skompilowana”.
|
||||||
|
|
||||||
|
**Tylko skompiluj ponownie** służy do aktualizacji projektu, które dotyczą tylko środowiska
|
||||||
|
uruchomieniowego: nie generuje ponownie kodu C.
|
||||||
|
|
||||||
|
Po trzech krokach wszystko jest zielone:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-pl-2-configuration.jpg" alt="Konfiguracja zakończona: gra znaleziona, wymagania spełnione, gra skompilowana" width="900"></p>
|
||||||
|
|
||||||
|
Kliknij wtedy **Zwiń konfigurację** (na dole po prawej): pojawia się strona główna. **Konfiguruj**
|
||||||
|
otwiera ją ponownie w każdej chwili.
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-pl-3-accueil.jpg" alt="Strona główna launchera" width="900"></p>
|
||||||
|
|
||||||
|
### Gra
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-pl-carte-jouer.jpg" alt="Karta Gotowe do gry" width="900"></p>
|
||||||
|
|
||||||
|
- **Dźwięk**, **Pomiń intro**, **Szczegółowy dziennik**: opcje uruchamiania.
|
||||||
|
- **Wznów moją grę**: startuje bezpośrednio od zapisu gry, z pominięciem intro i menu gry. Domyślnie
|
||||||
|
ostatnio grany; lista poniżej pozwala wybrać inny (z miniaturą), a launcher pokazuje pod **GRAJ**,
|
||||||
|
który zapis zostanie wczytany.
|
||||||
|
- **Obraz**: pełny ekran, filtr, format 4:3, synchronizacja pionowa, rozdzielczość okna
|
||||||
|
(1280 × 960, 1920 × 1080…).
|
||||||
|
- **Gra**: pomijanie dialogów kliknięciem (lewy przycisk przerywa bieżącą kwestię), szybkość chodu
|
||||||
|
Buda (normalna, × 1,5 lub × 2, tylko gdy idzie na twoje polecenie).
|
||||||
|
- **Głośność**: ogólna, muzyka, głosy, efekty.
|
||||||
|
- **GRAJ** uruchamia grę. Launcher zostaje otwarty i odświeża się po wyjściu z gry.
|
||||||
|
|
||||||
|
Ustawienia obrazu i głośności są **takie same jak w menu F12 w grze**: co zmienisz po jednej stronie,
|
||||||
|
pojawi się po drugiej (plik `%APPDATA%\DoubleTroubleRecomp\settings.ini`).
|
||||||
|
|
||||||
|
Inne karty strony głównej:
|
||||||
|
|
||||||
|
- **Podgląd**: podgląd tła z wybranym filtrem, liczony tak jak w grze. Przy aktywnym pakiecie HD
|
||||||
|
podgląd pokazuje tło HD (plakietka „HD”). Tła zmieniają się co 7 sekund.
|
||||||
|
- **Zoom ×4**: zaznaczony pokazuje fragment w rozmiarze okna o szerokości 1280 pikseli;
|
||||||
|
odznaczony pokazuje cały obraz.
|
||||||
|
- **Porównaj**: oryginał (surowe piksele) po lewej, obraz gry (filtr lub HD) po prawej. Przeciągnij
|
||||||
|
żółtą linię albo kliknij w obraz, żeby ją ustawić.
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-pl-carte-apercu.jpg" alt="Podgląd filtrów" width="900"></p>
|
||||||
|
|
||||||
|
- **Zapisy gry**: patrz [sekcja 11](#11-zapisy-gry).
|
||||||
|
- **Mody i tła HD**: patrz [sekcje 9](#9-pakiet-teł-hd) i [10](#10-mody).
|
||||||
|
|
||||||
|
Launcher zapisuje własne wybory (język, folder gry, opcje, rozmiar okna) w
|
||||||
|
`%APPDATA%\DoubleTroubleRecomp\launcher.ini`.
|
||||||
|
|
||||||
|
## 6. Bez launchera (wiersz poleceń)
|
||||||
|
|
||||||
|
Dla miłośników terminala. Te same wymagania; SDL2 zainstaluj ręcznie: archiwum
|
||||||
|
[`SDL2-devel-2.32.10-VC.zip`](https://github.com/libsdl-org/SDL/releases/tag/release-2.32.10),
|
||||||
|
rozpakowane tak, aby istniał plik `third_party\SDL2-2.32.10\include\SDL.h`.
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
python -m pip install capstone
|
||||||
|
.\build.bat C:\Gry\TUCKER
|
||||||
|
```
|
||||||
|
|
||||||
|
`build.bat` sam znajduje Build Tools 2022 zainstalowane w domyślnym miejscu. Warianty:
|
||||||
|
|
||||||
|
| Polecenie | Działanie |
|
||||||
|
|---|---|
|
||||||
|
| `build.bat FOLDER` | generuje C z `FOLDER\TUCKER.EXE` i `INTRO.EXE`, potem kompiluje |
|
||||||
|
| `build.bat` | to samo, z użyciem zmiennej `TUCKER_CD`, a jeśli jej nie ma, `..\extracted\iso\TUCKER` |
|
||||||
|
| `build.bat nogen` | kompiluje ponownie bez generowania C |
|
||||||
|
|
||||||
|
Wynik: `build\tucker.exe`. Żeby zagrać:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\build\tucker.exe --cd C:\Gry\TUCKER --hd C:\Gry\TUCKER --root C:\Gry --son
|
||||||
|
```
|
||||||
|
|
||||||
|
Najważniejsze opcje (nazwy opcji są po francusku; pełna lista w [SETTINGS.en.md](SETTINGS.en.md)):
|
||||||
|
|
||||||
|
| Opcja | Działanie |
|
||||||
|
|---|---|
|
||||||
|
| `--cd FOLDER` | pliki z CD (lub ich kopii) |
|
||||||
|
| `--hd FOLDER` | folder instalacji DOS `TUCKER` (w przeciwnym razie używany jest folder CD) |
|
||||||
|
| `--root FOLDER` | katalog główny dysku „C:” widzianego przez grę (folder nadrzędny `--hd`) |
|
||||||
|
| `--saves FOLDER` | folder zapisów gry (domyślnie: `saves`) |
|
||||||
|
| `--son` | włącza dźwięk |
|
||||||
|
| `--sans-intro` / `--intro` | pomija intro / odtwarza tylko intro |
|
||||||
|
| `--charger N` | startuje bezpośrednio od zapisu `SAVEGM.N`, bez intro (nowszy silnik, patrz sekcja 11) |
|
||||||
|
| `--plein`, `--fenetre` | pełny ekran, okno |
|
||||||
|
| `--resolution SxW` | okno o rozmiarze S × W pikseli (na przykład `--resolution 1920x1080`); `--echelle N`: dawne ustawienie ×N |
|
||||||
|
| `--filtre nearest\|smooth\|xbr\|crt` | filtr obrazu |
|
||||||
|
| `--sans-mods`, `--sans-hd` | bez modów, bez pakietu HD |
|
||||||
|
| `-v` | szczegółowy dziennik |
|
||||||
|
|
||||||
|
Opcje obrazu obowiązują tylko w danej sesji; trwałe ustawienia są w `settings.ini`.
|
||||||
|
|
||||||
|
## 7. W grze
|
||||||
|
|
||||||
|
| Klawisz | Działanie |
|
||||||
|
|---|---|
|
||||||
|
| **F12** | menu ustawień: głośności, pełny ekran, rozdzielczość, filtr, 4:3, synchronizacja, rozmyte krawędzie na szerokich ekranach, obszary klikalne, pakiet HD (tła, postacie i przedmioty, pasek akcji), wyjście z gry |
|
||||||
|
| **Esc** | zamyka menu F12 (w przeciwnym razie klawisz oryginalnej gry) |
|
||||||
|
| **F11** lub **Alt+Enter** | pełny ekran / okno |
|
||||||
|
| **F10** | pakiet HD wł./wył., z przejściem (do porównania z oryginalnym obrazem); potwierdza to dymek |
|
||||||
|
| **Spacja** (przytrzymana) | pokazuje klikalne obszary pomieszczenia: wyjścia na turkusowo, przedmioty na zielono, postacie na różowo, resztę na żółto (można wyłączyć: launcher lub F12) |
|
||||||
|
| Mysz | jak w oryginalnej grze: czasowniki na dole, kliknięcie, by działać |
|
||||||
|
|
||||||
|
Menu F12 zapisuje zmiany przy zamknięciu (samo menu jest na razie po francusku). Gra zapisuje
|
||||||
|
i wczytuje stan przez własne menu, jak w 1996 roku.
|
||||||
|
|
||||||
|
## 8. Piękny obraz na dużym ekranie
|
||||||
|
|
||||||
|
Gra zawsze rysuje obraz w rozdzielczości 320×200; karta graficzna powiększa go następnie filtrem:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/filtres-en.jpg" alt="Porównanie filtrów Ostry, Wygładzony, xBR, CRT i pakietu HD" width="900"></p>
|
||||||
|
|
||||||
|
| Filtr | Wygląd | Rada |
|
||||||
|
|---|---|---|
|
||||||
|
| **Ostry** (`nearest`) | surowe piksele | wierny oryginałowi, bardzo „pixel art” |
|
||||||
|
| **Wygładzony** (`smooth`) | wyraźne piksele, zmiękczone krawędzie | najlepszy kompromis dla purystów |
|
||||||
|
| **xBR** | przerysowane kontury, wygląd „rysunku” | bardzo ładny na ekranie 1440p lub 4K |
|
||||||
|
| **CRT** | symulowany ekran kineskopowy | nostalgia; nie pokazuje pakietu HD |
|
||||||
|
|
||||||
|
- **Format 4:3**: oryginalny obraz był robiony dla ekranu 4:3 (piksele wyższe niż szersze). Zostaw
|
||||||
|
włączony, aby proporcje były poprawne; wyłącz, aby mieć kwadratowe piksele.
|
||||||
|
- **Pełny ekran** używa rozdzielczości pulpitu, bez zmiany trybu wideo. Obraz jest wyśrodkowany,
|
||||||
|
z czarnymi pasami po bokach.
|
||||||
|
- **Synchronizacja pionowa** usuwa rozrywanie obrazu, jeśli je widzisz.
|
||||||
|
- Na ekranie 1080p, 1440p lub 4K wypróbuj **xBR** lub **Wygładzony** z włączonym **pakietem HD**.
|
||||||
|
|
||||||
|
## 9. Pakiet teł HD
|
||||||
|
|
||||||
|
> 🎨 **Pełny samouczek (po angielsku): [HD textures](TEXTURES.en.md)**: instalacja Upscayl, eksport
|
||||||
|
> teł, powiększanie wybranym narzędziem, ręczny retusz, rozwiązywanie problemów.
|
||||||
|
|
||||||
|
Pakiet HD zastępuje na ekranie tła pomieszczeń (320×200) obrazami wysokiej rozdzielczości, a jeśli
|
||||||
|
pakiet je zawiera, także Buda, postacie, przedmioty i kursor
|
||||||
|
([sprite'y HD](TEXTURES.en.md#i-hd-characters-and-objects-sprites)). Pasek akcji (czasowniki i tło)
|
||||||
|
też przechodzi na HD; teksty pozostają oryginalne. Obrazy powstają **na twoim komputerze, z twojej
|
||||||
|
kopii**: nic nie jest pobierane ani rozpowszechniane.
|
||||||
|
|
||||||
|
> ⚠️ **Na razie: tła HD tak, sprite'y HD nie.** Tła HD wyglądają dobrze, ale postacie i przedmioty HD
|
||||||
|
> (sprite'y) wciąż mają błędy: ucięte obrazki, niektóre postacie się nie pojawiają. Zalecamy grać
|
||||||
|
> z pakietem HD **z odznaczonym „Postacie i przedmioty”** (w launcherze lub w grze klawiszem F12).
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-pl-carte-mods.jpg" alt="Karta Mody i tła HD" width="900"></p>
|
||||||
|
|
||||||
|
### Z Upscayl (najprościej)
|
||||||
|
|
||||||
|
1. Zainstaluj [Upscayl](https://upscayl.org) ([krok po kroku](TEXTURES.en.md#1-install-upscayl)).
|
||||||
|
Dopóki go brak, launcher pokazuje żółte pole „Upscayl nie jest zainstalowany”.
|
||||||
|
2. W launcherze, karta **Mody i tła HD**, „Utwórz pakiet HD za pomocą Upscayl”: wybierz model,
|
||||||
|
zostaw zaznaczone **Tła**, **Przerywniki** i **Pasek akcji**, potem **Utwórz pakiet**. 148 obrazów
|
||||||
|
(122 tła, 24 obrazy przerywników, pasek akcji) zostaje powiększonych ×4 w kilka minut. **Postacie
|
||||||
|
i przedmioty** (eksperymentalne, domyślnie odznaczone) dodaje kilka tysięcy obrazów i trwa
|
||||||
|
znacznie dłużej. Wszystko trafia do `mods\hd_upscayl` (lub `mods\hd_upscayl_<model>`), z **jednym
|
||||||
|
modelem dla całego pakietu**. Odznacz **Jeden model do wszystkiego**, aby wybrać model dla każdej
|
||||||
|
części (pakiet złożony, w `mods\hd_perso`). Przycisk **Zatrzymaj** (obok lub na dolnym pasku)
|
||||||
|
przerywa tworzenie; **Napraw** odtwarza potem puste obrazy. Dla istniejącego pakietu teł: przycisk
|
||||||
|
**+ sprite'y HD** w jego wierszu. 24 nieruchome obrazy przerywników (piramida, mapy, gazety…)
|
||||||
|
powstają razem z tłami. **Podczas tworzenia zamknij gry i aplikacje 3D**: Upscayl mocno obciąża
|
||||||
|
kartę graficzną. Jeśli po awarii brakuje obrazów, użyj przycisku **Napraw** w wierszu pakietu.
|
||||||
|
3. Upewnij się, że **Włącz mody**, **Pakiet HD** i **Tła** są zaznaczone (na razie odznacz
|
||||||
|
**Postacie i przedmioty**: patrz ramka wyżej), i graj. Każde pole można wyłączyć osobno, w grze
|
||||||
|
także klawiszem F12.
|
||||||
|
|
||||||
|
Modele dają różny wygląd; możesz utworzyć kilka i przełączać je polem wyboru każdego moda:
|
||||||
|
|
||||||
|
| Model | Wygląd |
|
||||||
|
|---|---|
|
||||||
|
| `digital-art-4x` (domyślny) | czyste jednolite kolory, ostre kontury: pasuje do kreskówkowego stylu gry |
|
||||||
|
| `high-fidelity-4x` | bliski oryginałowi, zachowuje dithering pikseli |
|
||||||
|
| `remacri-4x` | ostry i szczegółowy, raczej do zdjęć |
|
||||||
|
| `ultrasharp-4x` | bardzo ostry, może uwydatniać wady |
|
||||||
|
| `ultramix-balanced-4x` | łagodniejszy kompromis |
|
||||||
|
| `upscayl-lite-4x`, `upscayl-standard-4x` | ogólnego przeznaczenia; „lite” jest szybszy |
|
||||||
|
|
||||||
|
Wiersz poleceń: `python tools\hd_export.py C:\Gry\TUCKER mods\hd_upscayl\hd --upscayl [MODEL]`.
|
||||||
|
|
||||||
|
### Dowolnym narzędziem
|
||||||
|
|
||||||
|
1. Launcher: **Eksportuj oryginalne obrazy** (okno podsumowuje, co się stanie; **Zatrzymaj**
|
||||||
|
przerywa eksport). Tła (PNG 320×200) trafiają do `mods\_decors_originaux` (znak `_` sprawia, że
|
||||||
|
gra ignoruje ten folder), a potem postacie i przedmioty do jego podfolderów `SHEETS` i `SPRITES`
|
||||||
|
(2–3 minuty). Na koniec folder się otwiera.
|
||||||
|
2. Powiększ je czym chcesz: Upscayl, chaiNNer, waifu2x, Topaz, ręczny retusz…
|
||||||
|
3. Launcher: wpisz nazwę, potem **Nowy mod**. Folder `mods\<nazwa>\hd\` zostaje utworzony
|
||||||
|
i otwarty.
|
||||||
|
4. Umieść tam powiększone obrazy **pod tą samą nazwą i w tym samym podfolderze** (`LOC01.png`,
|
||||||
|
`SHEETS\BUD_1.png`, `SPRITES\A01_04.png`), potem **Odśwież**.
|
||||||
|
|
||||||
|
Zasady dla obrazów:
|
||||||
|
|
||||||
|
- ten sam kadr co oryginał: cały obraz 320×200, łącznie z dolną częścią;
|
||||||
|
- dowolny rozmiar w proporcjach 16:10: 1280×800 (×4) to dobry wybór, 2560×1600 też działa;
|
||||||
|
- wszystkie części jednego pomieszczenia (`LOC03A`, `LOC03B`…) mają ten sam rozmiar;
|
||||||
|
- PNG RGB lub RGBA (kanał alfa jest ignorowany), bez przeplotu;
|
||||||
|
- częściowy pakiet działa: tło bez PNG zostaje w 320×200.
|
||||||
|
|
||||||
|
Krok po kroku, retusz i rozwiązywanie problemów: [TEXTURES.en.md](TEXTURES.en.md). Szczegóły
|
||||||
|
techniczne: [MODS.en.md](MODS.en.md).
|
||||||
|
|
||||||
|
## 10. Mody
|
||||||
|
|
||||||
|
Mod to folder w `mods\` w katalogu głównym projektu:
|
||||||
|
|
||||||
|
```
|
||||||
|
mods\
|
||||||
|
moj_mod\
|
||||||
|
mod.ini nazwa, autor, opis (wyświetlane przez launcher)
|
||||||
|
hd\ tła HD (LOC01.png…), sprite'y HD (SHEETS\, SPRITES\)
|
||||||
|
files\ zastąpione pliki gry (ta sama nazwa i ścieżka co na CD)
|
||||||
|
```
|
||||||
|
|
||||||
|
- Mody są stosowane w kolejności alfabetycznej; dla tego samego pliku wygrywa ostatni. Dodaj
|
||||||
|
przedrostek `10_`, `20_`, aby ustalić kolejność.
|
||||||
|
- Folder, którego nazwa zaczyna się od `_` lub `.`, jest ignorowany.
|
||||||
|
- W launcherze każdy mod ma swoje pole wyboru; **Włącz mody** wyłącza je wszystkie. Zmiany w modach
|
||||||
|
działają od następnego uruchomienia; pakiet HD można też ustawić w grze klawiszem F12, a F10 go
|
||||||
|
włącza lub wyłącza.
|
||||||
|
|
||||||
|
`mod.ini`:
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[mod]
|
||||||
|
name=Mój mod
|
||||||
|
author=Ja
|
||||||
|
description=Co robi mod
|
||||||
|
```
|
||||||
|
|
||||||
|
Pełny format: [MODS.en.md](MODS.en.md).
|
||||||
|
|
||||||
|
## 11. Zapisy gry
|
||||||
|
|
||||||
|
Zapisy gry są przechowywane w folderze `saves\` projektu (`SAVEGM.01`, `SAVEGM.02`… i
|
||||||
|
`NOFILES.DTA`). Karta **Zapisy gry** w launcherze pokazuje je z miniaturą miejsca i datą:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-pl-carte-sauvegardes.jpg" alt="Karta Zapisy gry" width="900"></p>
|
||||||
|
|
||||||
|
Pozwala też:
|
||||||
|
|
||||||
|
- **usunąć** zapis: kopia zostaje zachowana, a kolejne zapisy są przenumerowane tak, jak oczekuje
|
||||||
|
tego gra;
|
||||||
|
- zrobić **kopię zapasową** wszystkich zapisów (`saves\backups\`);
|
||||||
|
- **przywrócić** kopię: bieżące zapisy są najpierw kopiowane;
|
||||||
|
- **otworzyć folder**;
|
||||||
|
- **zagrać** zapis: żółty przycisk uruchamia grę bezpośrednio od tego zapisu.
|
||||||
|
|
||||||
|
**Automatyczny zapis**: gra zapisuje też sama przy opuszczaniu każdego miejsca, w `SAVEGM.99`,
|
||||||
|
osobno od twoich zapisów (nigdy ich nie zastępuje). Pojawia się na górze karty, w żółtej ramce,
|
||||||
|
z własnym przyciskiem **Graj**. **Wznów moją grę** wybiera go, gdy jest nowszy niż twój ostatni
|
||||||
|
zapis. Pole na karcie (lub F12, zakładka Jeu) go wyłącza. Miejsce `SAVEGM.98` jest używane przez
|
||||||
|
przycisk **Zagraj ponownie** w raportach błędów.
|
||||||
|
|
||||||
|
**Zapisy z menu F12**: w grze F12, zakładka Jeu, **Sauvegarder la partie** (zapisz grę) tworzy za
|
||||||
|
każdym razem nowy zapis, bez limitu i bez nadpisywania czegokolwiek, razem z obrazem gry w tej
|
||||||
|
chwili. Karta **Zapisy z menu F12** w launcherze pokazuje je (najnowsze na górze) z tym obrazem,
|
||||||
|
miejscem i datą: **Graj** uruchamia od niego grę, **Usuń** przenosi plik do kosza po potwierdzeniu.
|
||||||
|
Są przechowywane w `%APPDATA%\DoubleTroubleRecomp\parties`, osobno od zapisów oryginalnej gry; aby
|
||||||
|
wczytać jeden z nich, launcher (podobnie jak menu F12) korzysta z zarezerwowanego miejsca
|
||||||
|
`SAVEGM.97`.
|
||||||
|
|
||||||
|
Wczytywanie przy starcie (ten przycisk i **Wznów moją grę**) wymaga silnika znającego opcję
|
||||||
|
`--charger`: jeśli skompilowana gra jest starsza, launcher o tym powie; wystarczy ją ponownie
|
||||||
|
skompilować po aktualizacji projektu.
|
||||||
|
|
||||||
|
Te działania są zablokowane, gdy gra jest uruchomiona. Aby zachować swoje zapisy, zrób kopię folderu
|
||||||
|
`saves\`.
|
||||||
|
|
||||||
|
## 12. Jak to działa
|
||||||
|
|
||||||
|
```
|
||||||
|
TUCKER.EXE / INTRO.EXE (twoja kopia, format LE dla DOS/4GW)
|
||||||
|
│ tools/recomp.py: deasemblacja (Capstone), jedna funkcja C na każdą funkcję x86
|
||||||
|
▼
|
||||||
|
build/gen_*/*.c + runtime/ (CPU, FPU, DOS, VGA, dźwięk, menu, mody, pakiet HD)
|
||||||
|
│ MSVC
|
||||||
|
▼
|
||||||
|
build/tucker.exe ── SDL2 (okno, klawiatura, mysz, dźwięk) + OpenGL (filtry, tła HD)
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Rekompilacja statyczna**: każda instrukcja x86 staje się kodem C działającym na emulowanym CPU
|
||||||
|
(rejestry, stos, flagi). Oryginalne zachowanie zostaje zachowane, z szybkością natywnego programu.
|
||||||
|
- **Środowisko uruchomieniowe**: zastępuje to, czego gra oczekiwała od DOS-u i komputera z 1996
|
||||||
|
roku: pamięć DOS/4GW, pliki, zegar, karta VGA, karta dźwiękowa (emulowany sterownik AIL).
|
||||||
|
- **Overrides**: niektóre funkcje gry są przepisane ręcznie w C (`runtime/overrides.c`). Przez nie
|
||||||
|
przechodzi nowoczesny dźwięk, obraz, mody i pakiet HD.
|
||||||
|
- **Kwestie prawne**: repozytorium nie zawiera żadnych plików gry ani kodu wygenerowanego z jej
|
||||||
|
plików wykonywalnych. Wszystko to powstaje na twoim komputerze, w `build\` i `mods\`, wyłączonych
|
||||||
|
z repozytorium.
|
||||||
|
|
||||||
|
Mapa drogowa (po angielsku): [ROADMAP.en.md](ROADMAP.en.md).
|
||||||
|
|
||||||
|
## 13. Rozwiązywanie problemów
|
||||||
|
|
||||||
|
| Problem | Rozwiązanie |
|
||||||
|
|---|---|
|
||||||
|
| **„Nie znaleziono gry”** | Wybrany folder musi zawierać `TUCKER.EXE` i `INTRO.EXE` albo podfolder `TUCKER`, który je zawiera. |
|
||||||
|
| **Python „brak w PATH”** albo `python` otwiera Microsoft Store | Zainstaluj ponownie Pythona z python.org z zaznaczonym „Add python.exe to PATH”. Albo wyłącz aliasy w *Ustawienia → Aplikacje → Zaawansowane ustawienia aplikacji → Aliasy wykonywania aplikacji* (python.exe, python3.exe). Otwórz ponownie launcher. |
|
||||||
|
| **Nie znaleziono MSVC** | Zainstaluj Build Tools 2022 z „Programowanie aplikacji klasycznych w języku C++”. Jeśli dodajesz to później, uruchom ponownie Visual Studio Installer → **Modyfikuj**. |
|
||||||
|
| **`cargo build`: nie znaleziono `link.exe`** | Ta sama przyczyna: brak Build Tools. |
|
||||||
|
| **Nie znaleziono `cargo`** | Rust nie jest zainstalowany albo terminal otwarto przed instalacją: otwórz go ponownie. |
|
||||||
|
| **Pobieranie SDL2 się nie udaje** | Pobierz ręcznie `SDL2-devel-2.32.10-VC.zip` i rozpakuj do `third_party\` (musi istnieć `third_party\SDL2-2.32.10\include\SDL.h`), potem **Sprawdź**. |
|
||||||
|
| **Kompilacja się nie udaje** | Otwórz **Dziennik**, potem **Kopiuj**, i dołącz tekst do zgłoszenia. **Wygeneruj i skompiluj** zaczyna od zera. |
|
||||||
|
| **Brak dźwięku** | Zaznacz **Dźwięk** w launcherze (opcja `--son`) i sprawdź głośności (F12). |
|
||||||
|
| **Czarny ekran albo gra się nie otwiera** | Zaktualizuj sterownik karty graficznej (wymagany OpenGL 3.3). Zaznacz **Szczegółowy dziennik** i uruchom ponownie: dziennik launchera pokaże przyczynę. |
|
||||||
|
| **„gra zakończona, kod 0”** | To normalne zakończenie (gra została zamknięta). |
|
||||||
|
| **Brak teł HD** | Sprawdź **Włącz mody**, **Pakiet HD**, **Tła** i pole wyboru moda; filtr **CRT** zawsze pokazuje oryginalne tła. |
|
||||||
|
| **Obraz za mały / za duży** | Rozdzielczość okna w launcherze lub w F12 albo pełny ekran (F11). |
|
||||||
|
| **Dziwne ustawienia** | Usuń `%APPDATA%\DoubleTroubleRecomp\settings.ini`: gra wróci do ustawień domyślnych. |
|
||||||
|
|
||||||
|
Aby zgłosić problem: w grze **F12 → Signaler un bug** (zgłoś błąd). Wybierz rodzaj błędu, dodaj
|
||||||
|
komentarz, jeśli chcesz, potem **Écrire le rapport** (napisz raport). Gra tworzy folder ze zrzutem
|
||||||
|
ekranu, stanem gry w tej chwili i twoimi ustawieniami (nic nie jest wysyłane). Gdy gra się zawiesi,
|
||||||
|
sama pisze raport (pole **Rapport automatique si le jeu plante**).
|
||||||
|
|
||||||
|
W launcherze karta **Raporty błędów** (pod Zapisy gry) pokazuje ostatnie raporty:
|
||||||
|
|
||||||
|
<p align="center"><img src="images/launcher-pl-carte-rapports.jpg" alt="Karta Raporty błędów" width="720"></p>
|
||||||
|
|
||||||
|
- **Zagraj ponownie** uruchamia grę od zapisu z raportu, w chwili wystąpienia błędu;
|
||||||
|
- **Zip** tworzy plik zip do dołączenia do wiadomości;
|
||||||
|
- **Otwórz** pokazuje folder;
|
||||||
|
- **Usuń** przenosi raport do kosza.
|
||||||
|
|
||||||
|
Następnie otwórz zgłoszenie (issue) w repozytorium z plikiem zip, wersją Windows i kartą graficzną.
|
||||||
|
Zawartość folderu jest opisana w [SETTINGS.en.md](SETTINGS.en.md#bug-reports).
|
||||||
|
|
||||||
|
## 14. Aktualizacja, odinstalowanie
|
||||||
|
|
||||||
|
**Aktualizacja**:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git pull
|
||||||
|
cd launcher
|
||||||
|
cargo build --release
|
||||||
|
```
|
||||||
|
|
||||||
|
Potem w launcherze: **Konfiguruj → Wygeneruj i skompiluj**.
|
||||||
|
|
||||||
|
**Odinstalowanie**: usuń folder projektu (zachowaj `saves\` i `mods\`, jeśli ci na nich zależy)
|
||||||
|
oraz folder `%APPDATA%\DoubleTroubleRecomp`. Narzędzia (Build Tools, Python, Rust, Upscayl)
|
||||||
|
odinstalujesz w *Ustawienia → Aplikacje*.
|
||||||
|
After Width: | Height: | Size: 148 KiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 217 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 214 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 143 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 209 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,217 @@
|
|||||||
|
# Traductions du launcher : voir src/i18n.rs. Colonnes : fr (clé, comme dans le code), en, de, es, pl.
|
||||||
|
Soutenir le projet : offrez-moi un café (buymeacoffee.com/linkatplug) Support the project: buy me a coffee (buymeacoffee.com/linkatplug) Das Projekt unterstützen: spendieren Sie mir einen Kaffee (buymeacoffee.com/linkatplug) Apoya el proyecto: invítame a un café (buymeacoffee.com/linkatplug) Wesprzyj projekt: postaw mi kawę (buymeacoffee.com/linkatplug)
|
||||||
|
(écran) (screen) (Bildschirm) (pantalla) (ekran)
|
||||||
|
Mods et décors HD Mods & HD backgrounds Mods & HD-Hintergründe Mods y fondos HD Mody i tła HD
|
||||||
|
Activer les mods Enable mods Mods aktivieren Activar los mods Włącz mody
|
||||||
|
Pack HD HD pack HD-Paket Pack HD Pakiet HD
|
||||||
|
Décors Backgrounds Hintergründe Fondos Tła
|
||||||
|
Personnages et objets Characters and objects Figuren und Objekte Personajes y objetos Postacie i przedmioty
|
||||||
|
Expérimental, encore bogué (images coupées, personnages absents) : à décocher pour le moment. Experimental, still buggy (cut-off pictures, missing characters): untick for now. Experimentell, noch fehlerhaft (abgeschnittene Bilder, fehlende Figuren): vorerst deaktivieren. Experimental, todavía con errores (imágenes cortadas, personajes ausentes): desmárcalo por ahora. Eksperymentalne, wciąż z błędami (ucięte obrazy, brakujące postacie): na razie odznacz.
|
||||||
|
(expérimental) (experimental) (experimentell) (experimental) (eksperymentalne)
|
||||||
|
Barre d'actions Action bar Aktionsleiste Barra de acciones Pasek akcji
|
||||||
|
Verbes, fond de la barre et panneau d'options en HD (PANEL1, PANEL2 du pack). Verbs, bar background and options panel in HD (the pack's PANEL1, PANEL2). Verben, Leistenhintergrund und Optionsfeld in HD (PANEL1, PANEL2 des Pakets). Verbos, fondo de la barra y panel de opciones en HD (PANEL1, PANEL2 del pack). Czasowniki, tło paska i panel opcji w HD (PANEL1, PANEL2 z pakietu).
|
||||||
|
Le filtre CRT affiche les décors d'origine. The CRT filter shows the original backgrounds. Der CRT-Filter zeigt die Original-Hintergründe. El filtro CRT muestra los fondos originales. Filtr CRT pokazuje oryginalne tła.
|
||||||
|
Aucun mod installé. No mod installed. Kein Mod installiert. No hay ningún mod instalado. Brak zainstalowanych modów.
|
||||||
|
images pictures Bilder imágenes obrazów
|
||||||
|
sprites sprites Sprites sprites sprite'ów
|
||||||
|
+ sprites HD + HD sprites + HD-Sprites + sprites HD + sprite'y HD
|
||||||
|
Compléter les sprites HD Complete the HD sprites HD-Sprites vervollständigen Completar los sprites HD Uzupełnij sprite'y HD
|
||||||
|
Crée les personnages, objets et curseur en HD avec le même modèle que les décors ({model}). Prend du temps. Creates the characters, objects and cursor in HD with the same model as the backgrounds ({model}). Takes a while. Erstellt Figuren, Objekte und Mauszeiger in HD mit demselben Modell wie die Hintergründe ({model}). Dauert eine Weile. Crea los personajes, objetos y cursor en HD con el mismo modelo que los fondos ({model}). Tarda un rato. Tworzy postacie, przedmioty i kursor w HD tym samym modelem co tła ({model}). Trochę to trwa.
|
||||||
|
+ barre d'actions + action bar + Aktionsleiste + barra de acciones + pasek akcji
|
||||||
|
Ajoute la barre d'actions en HD (PANEL1, PANEL2) avec le même modèle que le pack ({model}). Quelques secondes. Adds the action bar in HD (PANEL1, PANEL2) with the same model as the pack ({model}). A few seconds. Fügt die Aktionsleiste in HD hinzu (PANEL1, PANEL2), mit demselben Modell wie das Paket ({model}). Ein paar Sekunden. Añade la barra de acciones en HD (PANEL1, PANEL2) con el mismo modelo que el pack ({model}). Unos segundos. Dodaje pasek akcji w HD (PANEL1, PANEL2) tym samym modelem co pakiet ({model}). Kilka sekund.
|
||||||
|
Réparer Repair Reparieren Reparar Napraw
|
||||||
|
Refait seulement les images vides du pack (après un plantage ou un export interrompu), avec son modèle ({model}). Fermez jeux et applis 3D pendant ce temps. Redoes only the empty pictures of the pack (after a crash or an interrupted export), with its model ({model}). Close games and 3D apps meanwhile. Erstellt nur die leeren Bilder des Pakets neu (nach einem Absturz oder abgebrochenen Export), mit seinem Modell ({model}). Schließen Sie währenddessen Spiele und 3D-Programme. Rehace solo las imágenes vacías del pack (tras un cuelgue o una exportación interrumpida), con su modelo ({model}). Cierra juegos y aplicaciones 3D mientras tanto. Tworzy ponownie tylko puste obrazy pakietu (po awarii lub przerwanym eksporcie), jego modelem ({model}). W tym czasie zamknij gry i aplikacje 3D.
|
||||||
|
fichiers files Dateien archivos plików
|
||||||
|
Ouvrir le dossier des mods Open mods folder Mod-Ordner öffnen Abrir la carpeta de mods Otwórz folder modów
|
||||||
|
Actualiser Refresh Aktualisieren Actualizar Odśwież
|
||||||
|
Créer un pack HD avec Upscayl Create an HD pack with Upscayl HD-Paket mit Upscayl erstellen Crear un pack HD con Upscayl Utwórz pakiet HD za pomocą Upscayl
|
||||||
|
Même modèle pour tout One model for everything Ein Modell für alles Mismo modelo para todo Jeden model do wszystkiego
|
||||||
|
Décoché : un modèle par partie (par exemple les décors avec un modèle, la barre d'actions avec un autre), dans mods\\hd_perso. Les modèles ne rendent pas les couleurs pareil : le mélange peut se voir. Unticked: one model per part (for instance backgrounds with one model, the action bar with another), in mods\\hd_perso. Models don't render colours the same way: the mix may show. Deaktiviert: ein Modell pro Teil (zum Beispiel Hintergründe mit einem Modell, die Aktionsleiste mit einem anderen), in mods\\hd_perso. Die Modelle geben Farben nicht gleich wieder: die Mischung kann auffallen. Desmarcado: un modelo por parte (por ejemplo los fondos con un modelo y la barra de acciones con otro), en mods\\hd_perso. Los modelos no reproducen igual los colores: la mezcla puede notarse. Odznaczone: jeden model na część (na przykład tła jednym modelem, pasek akcji innym), w mods\\hd_perso. Modele różnie oddają kolory: mieszanka może być widoczna.
|
||||||
|
Les 122 décors des pièces. The 122 room backgrounds. Die 122 Raumhintergründe. Los 122 fondos de las salas. 122 tła pomieszczeń.
|
||||||
|
Les 24 images fixes des cinématiques : pyramide, cartes, journaux, écrans de partie… The 24 still cutscene pictures: pyramid, maps, newspapers, part screens… Die 24 Standbilder der Zwischensequenzen: Pyramide, Karten, Zeitungen, Kapitelbildschirme… Las 24 imágenes fijas de las cinemáticas: pirámide, mapas, periódicos, pantallas de partes… 24 nieruchome obrazy przerywników: piramida, mapy, gazety, ekrany części…
|
||||||
|
Verbes, fond de la barre et panneau d'options (PANEL1, PANEL2). Verbs, bar background and options panel (PANEL1, PANEL2). Verben, Leistenhintergrund und Optionsfeld (PANEL1, PANEL2). Verbos, fondo de la barra y panel de opciones (PANEL1, PANEL2). Czasowniki, tło paska i panel opcji (PANEL1, PANEL2).
|
||||||
|
Expérimental, encore bogué : plusieurs milliers d'images, nettement plus long. Experimental, still buggy: thousands of images, much longer. Experimentell, noch fehlerhaft: mehrere tausend Bilder, deutlich länger. Experimental, todavía con errores: varios miles de imágenes, bastante más largo. Eksperymentalne, wciąż z błędami: kilka tysięcy obrazów, znacznie dłużej.
|
||||||
|
Créer le pack Create pack Paket erstellen Crear el pack Utwórz pakiet
|
||||||
|
Arrêter Stop Stoppen Detener Zatrzymaj
|
||||||
|
Décors, cinématiques et barre d'actions : 148 images, quelques minutes ; personnages et objets : plusieurs milliers d'images, nettement plus long. Fermez les jeux et applis 3D pendant la création. Dossier : Backgrounds, cutscenes and action bar: 148 images, a few minutes; characters and objects: thousands of images, much longer. Close games and 3D apps while it runs. Folder: Hintergründe, Zwischensequenzen und Aktionsleiste: 148 Bilder, ein paar Minuten; Figuren und Objekte: mehrere tausend Bilder, deutlich länger. Schließen Sie während der Erstellung Spiele und 3D-Programme. Ordner: Fondos, cinemáticas y barra de acciones: 148 imágenes, unos minutos; personajes y objetos: varios miles de imágenes, bastante más largo. Cierra los juegos y aplicaciones 3D durante la creación. Carpeta: Tła, przerywniki i pasek akcji: 148 obrazów, kilka minut; postacie i przedmioty: kilka tysięcy obrazów, znacznie dłużej. Podczas tworzenia zamknij gry i aplikacje 3D. Folder:
|
||||||
|
Upscayl n'est pas installé Upscayl is not installed Upscayl ist nicht installiert Upscayl no está instalado Upscayl nie jest zainstalowany
|
||||||
|
Ce logiciel gratuit crée le pack HD (décors, cinématiques, barre d'actions) en un clic (il faut une carte graphique compatible Vulkan). Installez-le, puis cliquez sur Actualiser. This free program creates the HD pack (backgrounds, cutscenes, action bar) in one click (it needs a Vulkan-capable graphics card). Install it, then click Refresh. Dieses kostenlose Programm erstellt das HD-Paket (Hintergründe, Zwischensequenzen, Aktionsleiste) mit einem Klick (eine Vulkan-fähige Grafikkarte ist nötig). Installieren Sie es und klicken Sie dann auf Aktualisieren. Este programa gratuito crea el pack HD (fondos, cinemáticas, barra de acciones) con un clic (necesita una tarjeta gráfica compatible con Vulkan). Instálalo y luego pulsa Actualizar. Ten darmowy program tworzy pakiet HD (tła, przerywniki, pasek akcji) jednym kliknięciem (wymaga karty graficznej obsługującej Vulkan). Zainstaluj go, a potem kliknij Odśwież.
|
||||||
|
Télécharger Upscayl Download Upscayl Upscayl herunterladen Descargar Upscayl Pobierz Upscayl
|
||||||
|
Guide des textures HD HD textures guide Anleitung HD-Texturen Guía de texturas HD Poradnik tekstur HD
|
||||||
|
Faire son propre pack HD Make your own HD pack Eigenes HD-Paket erstellen Hacer tu propio pack HD Stwórz własny pakiet HD
|
||||||
|
(tutoriel) (tutorial) (Anleitung) (tutorial) (poradnik)
|
||||||
|
Exporter les images d'origine Export original images Original-Bilder exportieren Exportar las imágenes originales Eksportuj oryginalne obrazy
|
||||||
|
Décors, cinématiques et barre d'actions (148 PNG 320×200), puis personnages et objets (sous-dossiers SHEETS et SPRITES, 2 à 3 min), à agrandir avec l'outil de votre choix. Dossier : Backgrounds, cutscenes and action bar (148 320×200 PNGs), then characters and objects (SHEETS and SPRITES subfolders, 2-3 min), to upscale with any tool. Folder: Hintergründe, Zwischensequenzen und Aktionsleiste (148 PNG 320×200), dann Figuren und Objekte (Unterordner SHEETS und SPRITES, 2–3 Min.), zum Hochskalieren mit einem Werkzeug Ihrer Wahl. Ordner: Fondos, cinemáticas y barra de acciones (148 PNG de 320×200), luego personajes y objetos (subcarpetas SHEETS y SPRITES, 2-3 min), para ampliar con la herramienta que prefieras. Carpeta: Tła, przerywniki i pasek akcji (148 PNG 320×200), potem postacie i przedmioty (podfoldery SHEETS i SPRITES, 2–3 min), do powiększenia dowolnym narzędziem. Folder:
|
||||||
|
Nom du mod Mod name Name des Mods Nombre del mod Nazwa moda
|
||||||
|
Nouveau mod New mod Neuer Mod Nuevo mod Nowy mod
|
||||||
|
Crée mods\\<nom>\\hd : déposez-y les PNG agrandis sous le même nom et dans le même sous-dossier (LOC01.png, CLIO1.png, PANEL2.png, SHEETS\\BUD_1.png, SPRITES\\A01_04.png), image entière agrandie du même facteur (×4 : 1280×800 pour un décor). Creates mods\\<name>\\hd: drop the upscaled PNGs there with the same name and subfolder (LOC01.png, CLIO1.png, PANEL2.png, SHEETS\\BUD_1.png, SPRITES\\A01_04.png), whole image upscaled by the same factor (×4: 1280×800 for a background). Erstellt mods\\<name>\\hd: legen Sie dort die hochskalierten PNG mit demselben Namen und im selben Unterordner ab (LOC01.png, CLIO1.png, PANEL2.png, SHEETS\\BUD_1.png, SPRITES\\A01_04.png), ganzes Bild um denselben Faktor vergrößert (×4: 1280×800 für einen Hintergrund). Crea mods\\<nombre>\\hd: deja ahí los PNG ampliados con el mismo nombre y en la misma subcarpeta (LOC01.png, CLIO1.png, PANEL2.png, SHEETS\\BUD_1.png, SPRITES\\A01_04.png), imagen entera ampliada con el mismo factor (×4: 1280×800 para un fondo). Tworzy mods\\<nazwa>\\hd: wrzuć tam powiększone PNG pod tą samą nazwą i w tym samym podfolderze (LOC01.png, CLIO1.png, PANEL2.png, SHEETS\\BUD_1.png, SPRITES\\A01_04.png), cały obraz powiększony tym samym współczynnikiem (×4: 1280×800 dla tła).
|
||||||
|
En jeu : le pack HD se règle aussi avec F12. In game: the HD pack can also be set with F12. Im Spiel: Das HD-Paket lässt sich auch mit F12 einstellen. En el juego: el pack HD también se ajusta con F12. W grze: pakiet HD można też ustawić klawiszem F12.
|
||||||
|
Exporter les images d'origine ? Export the original pictures? Original-Bilder exportieren? ¿Exportar las imágenes originales? Wyeksportować oryginalne obrazy?
|
||||||
|
Le launcher va extraire les images du jeu en PNG, à leur taille d'origine : The launcher will extract the game's pictures as PNG, at their original size: Der Launcher extrahiert die Bilder des Spiels als PNG in Originalgröße: El launcher va a extraer las imágenes del juego en PNG, a su tamaño original: Launcher wyodrębni obrazy z gry jako PNG, w oryginalnym rozmiarze:
|
||||||
|
• décors, cinématiques et barre d'actions : 148 images 320×200, quelques secondes ; • backgrounds, cutscenes and action bar: 148 320×200 pictures, a few seconds; • Hintergründe, Zwischensequenzen und Aktionsleiste: 148 Bilder 320×200, ein paar Sekunden; • fondos, cinemáticas y barra de acciones: 148 imágenes de 320×200, unos segundos; • tła, przerywniki i pasek akcji: 148 obrazów 320×200, kilka sekund;
|
||||||
|
• puis personnages et objets (SHEETS et SPRITES) : plusieurs milliers d'images, 2 à 3 minutes. • then characters and objects (SHEETS and SPRITES): thousands of pictures, 2-3 minutes. • dann Figuren und Objekte (SHEETS und SPRITES): mehrere tausend Bilder, 2–3 Minuten. • luego personajes y objetos (SHEETS y SPRITES): varios miles de imágenes, 2-3 minutos. • potem postacie i przedmioty (SHEETS i SPRITES): kilka tysięcy obrazów, 2–3 minuty.
|
||||||
|
Rien n'est agrandi : ce sont les images à retoucher ou agrandir avec l'outil de votre choix. Elles vont dans Nothing is upscaled: these are the pictures to retouch or upscale with any tool. They go to Nichts wird vergrößert: Es sind die Bilder zum Bearbeiten oder Hochskalieren mit einem Werkzeug Ihrer Wahl. Sie kommen nach No se amplía nada: son las imágenes para retocar o ampliar con la herramienta que prefieras. Van a Nic nie jest powiększane: to obrazy do poprawienia lub powiększenia dowolnym narzędziem. Trafią do
|
||||||
|
(ignoré par le jeu), qui s'ouvrira à la fin. Le bouton Arrêter interrompt l'export à tout moment. (ignored by the game), which opens at the end. The Stop button interrupts the export at any time. (vom Spiel ignoriert), der sich am Ende öffnet. Die Schaltfläche Stoppen bricht den Export jederzeit ab. (ignorada por el juego), que se abrirá al final. El botón Detener interrumpe la exportación en cualquier momento. (ignorowany przez grę), który otworzy się na końcu. Przycisk Zatrzymaj w każdej chwili przerywa eksport.
|
||||||
|
Lancer l'export Start the export Export starten Iniciar la exportación Rozpocznij eksport
|
||||||
|
Annuler Cancel Abbrechen Cancelar Anuluj
|
||||||
|
Créé : Created: Erstellt: Creado: Utworzono:
|
||||||
|
Parties du menu F12 F12 menu saves Spielstände aus dem F12-Menü Partidas del menú F12 Zapisy z menu F12
|
||||||
|
En jeu : F12, onglet Jeu, « Sauvegarder la partie ». Autant de parties que vous voulez, chacune avec l'image du moment. In game: F12, Jeu tab, “Sauvegarder la partie”. As many saves as you like, each with a picture of the moment. Im Spiel: F12, Reiter „Jeu“, „Sauvegarder la partie“. So viele Spielstände, wie Sie wollen, jeder mit einem Bild des Moments. En el juego: F12, pestaña «Jeu», «Sauvegarder la partie». Tantas partidas como quieras, cada una con la imagen del momento. W grze: F12, zakładka „Jeu”, „Sauvegarder la partie”. Tyle zapisów, ile chcesz, każdy z obrazem z tej chwili.
|
||||||
|
Aucune partie pour l'instant. No save yet. Noch kein Spielstand. Ninguna partida por ahora. Na razie brak zapisów.
|
||||||
|
Lieu Location Ort Lugar Miejsce
|
||||||
|
Mettre à la corbeille Move to the bin In den Papierkorb Mover a la papelera Przenieś do kosza
|
||||||
|
Supprimer Delete Löschen Eliminar Usuń
|
||||||
|
Jouer Play Spielen Jugar Graj
|
||||||
|
Lance le jeu directement sur cette partie. Starts the game straight on this save. Startet das Spiel direkt mit diesem Spielstand. Inicia el juego directamente en esta partida. Uruchamia grę bezpośrednio od tego zapisu.
|
||||||
|
Tout afficher Show all Alle anzeigen Mostrar todo Pokaż wszystko
|
||||||
|
Afficher moins Show less Weniger anzeigen Mostrar menos Pokaż mniej
|
||||||
|
Ouvrir le dossier Open folder Ordner öffnen Abrir la carpeta Otwórz folder
|
||||||
|
Partie mise à la corbeille. Save moved to the bin. Spielstand in den Papierkorb verschoben. Partida movida a la papelera. Zapis przeniesiony do kosza.
|
||||||
|
Impossible de supprimer cette partie. Couldn't delete this save. Dieser Spielstand konnte nicht gelöscht werden. No se pudo eliminar esta partida. Nie udało się usunąć tego zapisu.
|
||||||
|
Partie {s} retirée (une copie est gardée dans backups). Save {s} removed (a copy was kept in backups). Spielstand {s} entfernt (eine Kopie bleibt in backups). Partida {s} eliminada (se guarda una copia en backups). Zapis {s} usunięty (kopia zostaje w backups).
|
||||||
|
Copie de sécurité créée : Backup created: Sicherung erstellt: Copia de seguridad creada: Utworzono kopię zapasową:
|
||||||
|
Copie restaurée (les sauvegardes d'avant sont gardées dans backups). Backup restored (previous saves kept in backups). Sicherung wiederhergestellt (die vorherigen Spielstände bleiben in backups). Copia restaurada (las partidas anteriores se guardan en backups). Kopia przywrócona (wcześniejsze zapisy zostają w backups).
|
||||||
|
Net Sharp Scharf Nítido Ostry
|
||||||
|
Lissé Smooth Geglättet Suavizado Wygładzony
|
||||||
|
xBR xBR xBR xBR xBR
|
||||||
|
CRT CRT CRT CRT CRT
|
||||||
|
Aperçu Preview Vorschau Vista previa Podgląd
|
||||||
|
Filtre Filter Filter Filtro Filtr
|
||||||
|
Comparer Compare Vergleichen Comparar Porównaj
|
||||||
|
Original à gauche, image du jeu à droite : faites glisser le séparateur. Original on the left, game picture on the right: drag the divider. Original links, Spielbild rechts: ziehen Sie den Trenner. Original a la izquierda, imagen del juego a la derecha: arrastra el separador. Oryginał po lewej, obraz gry po prawej: przeciągnij separator.
|
||||||
|
Sauvegardes Saved games Spielstände Partidas guardadas Zapisy gry
|
||||||
|
Aucune sauvegarde pour l'instant. No saved game yet. Noch kein Spielstand. Ninguna partida guardada por ahora. Na razie brak zapisów.
|
||||||
|
Sauvegarde automatique Automatic save Automatische Speicherung Guardado automático Automatyczny zapis
|
||||||
|
Reprend là où le jeu a sauvegardé tout seul, au dernier changement de lieu. Resumes where the game saved by itself, at the last change of location. Setzt dort fort, wo das Spiel beim letzten Ortswechsel selbst gespeichert hat. Continúa donde el juego guardó solo, en el último cambio de lugar. Wznawia tam, gdzie gra sama zapisała stan przy ostatniej zmianie miejsca.
|
||||||
|
Partie Save Spielstand Partida Zapis
|
||||||
|
dernière jouée last played zuletzt gespielt la última jugada ostatnio grany
|
||||||
|
Confirmer Confirm Bestätigen Confirmar Potwierdź
|
||||||
|
Lance le jeu directement sur cette sauvegarde. Starts the game straight on this save. Startet das Spiel direkt mit diesem Spielstand. Inicia el juego directamente en esta partida guardada. Uruchamia grę bezpośrednio od tego zapisu.
|
||||||
|
Copie de sécurité Back up Sichern Copia de seguridad Kopia zapasowa
|
||||||
|
Sauvegarde automatique à chaque changement de lieu Automatic save at each change of location Automatisch speichern bei jedem Ortswechsel Guardado automático en cada cambio de lugar Automatyczny zapis przy każdej zmianie miejsca
|
||||||
|
Le jeu sauvegarde tout seul en quittant chaque lieu, à part de vos parties (il ne les remplace jamais). Aussi dans F12, onglet Jeu. The game saves by itself when leaving each location, apart from your saves (it never replaces them). Also in F12, Game tab. Das Spiel speichert beim Verlassen jedes Ortes selbst, getrennt von Ihren Spielständen (es ersetzt sie nie). Auch unter F12, Reiter „Jeu“. El juego guarda solo al salir de cada lugar, aparte de tus partidas (nunca las reemplaza). También en F12, pestaña «Jeu». Gra sama zapisuje stan przy opuszczaniu każdego miejsca, oddzielnie od twoich zapisów (nigdy ich nie zastępuje). Także w F12, zakładka „Jeu”.
|
||||||
|
Copies de sécurité Backups Sicherungen Copias de seguridad Kopie zapasowe
|
||||||
|
Remplacer mes sauvegardes Replace my saves Meine Spielstände ersetzen Reemplazar mis partidas Zastąp moje zapisy
|
||||||
|
Restaurer Restore Wiederherstellen Restaurar Przywróć
|
||||||
|
Fermez le jeu pour gérer les sauvegardes. Close the game to manage saves. Schließen Sie das Spiel, um die Spielstände zu verwalten. Cierra el juego para gestionar las partidas. Zamknij grę, aby zarządzać zapisami.
|
||||||
|
Rapports de bug Bug reports Fehlerberichte Informes de errores Raporty błędów
|
||||||
|
En jeu : F12, puis « Signaler un bug ». Rien n'est envoyé : joignez le dossier (ou son zip) à votre message. In game: F12, then “Report a bug”. Nothing is sent: attach the folder (or its zip) to your message. Im Spiel: F12, dann „Signaler un bug“. Es wird nichts gesendet: Hängen Sie den Ordner (oder sein Zip) an Ihre Nachricht an. En el juego: F12 y luego «Signaler un bug». No se envía nada: adjunta la carpeta (o su zip) a tu mensaje. W grze: F12, potem „Signaler un bug”. Nic nie jest wysyłane: dołącz folder (lub jego zip) do swojej wiadomości.
|
||||||
|
Rapport automatique si le jeu plante Automatic report if the game crashes Automatischer Bericht bei Absturz Informe automático si el juego se cuelga Automatyczny raport, gdy gra się zawiesi
|
||||||
|
Le jeu écrit un rapport tout seul s'il plante (pas si c'est le pilote de la carte graphique qui plante). The game writes a report by itself if it crashes (not if the graphics driver crashes). Das Spiel schreibt bei einem Absturz selbst einen Bericht (nicht, wenn der Grafiktreiber abstürzt). El juego escribe un informe solo si se cuelga (no si es el controlador de la tarjeta gráfica el que falla). Gra sama zapisuje raport, gdy się zawiesi (nie wtedy, gdy zawiesi się sterownik karty graficznej).
|
||||||
|
Aucun rapport. No report. Kein Bericht. Ningún informe. Brak raportów.
|
||||||
|
lieu location Ort lugar miejsce
|
||||||
|
Ouvrir Open Öffnen Abrir Otwórz
|
||||||
|
Crée un zip du rapport, prêt à joindre à un message. Makes a zip of the report, ready to attach to a message. Erstellt ein Zip des Berichts, bereit zum Anhängen an eine Nachricht. Crea un zip del informe, listo para adjuntar a un mensaje. Tworzy zip raportu, gotowy do dołączenia do wiadomości.
|
||||||
|
Rejouer Replay Nachspielen Volver a jugar Zagraj ponownie
|
||||||
|
Lance le jeu sur la partie enregistrée par le rapport, au moment du bug. Starts the game on the save stored by the report, at the moment of the bug. Startet das Spiel mit dem im Bericht gespeicherten Spielstand, im Moment des Fehlers. Inicia el juego en la partida guardada por el informe, en el momento del error. Uruchamia grę od zapisu zachowanego w raporcie, w chwili błędu.
|
||||||
|
autres more weitere más więcej
|
||||||
|
Ouvrir le dossier des rapports Open the reports folder Berichtsordner öffnen Abrir la carpeta de informes Otwórz folder raportów
|
||||||
|
Création du zip… Making the zip… Zip wird erstellt… Creando el zip… Tworzenie zipa…
|
||||||
|
Rapport mis à la corbeille. Report moved to the bin. Bericht in den Papierkorb verschoben. Informe movido a la papelera. Raport przeniesiony do kosza.
|
||||||
|
Impossible de supprimer ce rapport. Couldn't delete this report. Dieser Bericht konnte nicht gelöscht werden. No se pudo eliminar este informe. Nie udało się usunąć tego raportu.
|
||||||
|
Dossier du jeu (CD ou copie) Game folder (CD or copy) Spielordner (CD oder Kopie) Carpeta del juego (CD o copia) Folder gry (CD lub kopia)
|
||||||
|
Image ISO du jeu Game ISO image ISO-Abbild des Spiels Imagen ISO del juego Obraz ISO gry
|
||||||
|
Dossier d'installation (TUCKER) Install folder (TUCKER) Installationsordner (TUCKER) Carpeta de instalación (TUCKER) Folder instalacji (TUCKER)
|
||||||
|
Création du pack HD… Creating the HD pack… HD-Paket wird erstellt… Creando el pack HD… Tworzenie pakietu HD…
|
||||||
|
Export des images… Exporting pictures… Bilder werden exportiert… Exportando las imágenes… Eksportowanie obrazów…
|
||||||
|
Compilation en cours… Working… Wird bearbeitet… Trabajando… Trwa praca…
|
||||||
|
jeu terminé, code game exited, code Spiel beendet, Code juego terminado, código gra zakończona, kod
|
||||||
|
DoubleTroubleRecomp · PORTAGE PC NATIF DoubleTroubleRecomp · NATIVE PC PORT DoubleTroubleRecomp · NATIVE PC-PORTIERUNG DoubleTroubleRecomp · PORT NATIVO PARA PC DoubleTroubleRecomp · NATYWNY PORT NA PC
|
||||||
|
Interface Interface Oberfläche Interfaz Interfejs
|
||||||
|
Taille des textes et des boutons du launcher. Auto : suit la taille de la fenêtre. Size of the launcher's text and buttons. Auto: follows the window size. Größe der Texte und Schaltflächen des Launchers. Auto: folgt der Fenstergröße. Tamaño de los textos y botones del launcher. Auto: sigue el tamaño de la ventana. Rozmiar tekstów i przycisków launchera. Auto: dopasowuje się do rozmiaru okna.
|
||||||
|
Jeu trouvé Game found Spiel gefunden Juego encontrado Gra znaleziona
|
||||||
|
Jeu introuvable Game not found Spiel nicht gefunden Juego no encontrado Nie znaleziono gry
|
||||||
|
Prérequis Requirements Voraussetzungen Requisitos Wymagania
|
||||||
|
Build prêt Build ready Build bereit Compilación lista Kompilacja gotowa
|
||||||
|
Pas encore compilé Not built yet Noch nicht kompiliert Aún no compilado Jeszcze nie skompilowano
|
||||||
|
Arrête la tâche en cours Stops the running task Stoppt die laufende Aufgabe Detiene la tarea en curso Zatrzymuje bieżące zadanie
|
||||||
|
Masquer le journal Hide log Protokoll ausblenden Ocultar el registro Ukryj dziennik
|
||||||
|
Journal Log Protokoll Registro Dziennik
|
||||||
|
Replier la configuration Collapse setup Einrichtung einklappen Plegar la configuración Zwiń konfigurację
|
||||||
|
Configurer Setup Einrichten Configurar Konfiguruj
|
||||||
|
étape step Schritt paso krok
|
||||||
|
préparation… preparing… Vorbereitung… preparando… przygotowanie…
|
||||||
|
· moins d'une minute · under a minute · weniger als eine Minute · menos de un minuto · mniej niż minuta
|
||||||
|
· encore ≈ {d} · ≈ {d} left · noch ≈ {d} · faltan ≈ {d} · zostało ≈ {d}
|
||||||
|
Mettre la musique en pause Pause the music Musik pausieren Pausar la música Wstrzymaj muzykę
|
||||||
|
Jouer la musique Play the music Musik abspielen Reproducir la música Odtwórz muzykę
|
||||||
|
Version française French version Französische Version Versión francesa Wersja francuska
|
||||||
|
Version anglaise (US) English (US) version Englische Version (US) Versión inglesa (EE. UU.) Wersja angielska (USA)
|
||||||
|
Version allemande German version Deutsche Version Versión alemana Wersja niemiecka
|
||||||
|
Version espagnole Spanish version Spanische Version Versión española Wersja hiszpańska
|
||||||
|
Version polonaise Polish version Polnische Version Versión polaca Wersja polska
|
||||||
|
Volume : Volume Lautstärke: Volumen: Głośność:
|
||||||
|
Muet Mute Stumm Silencio Wycisz
|
||||||
|
Coupe la musique maintenant et aux prochains démarrages Stops the music now and at the next launches Schaltet die Musik jetzt und bei den nächsten Starts stumm Silencia la música ahora y en los próximos inicios Wycisza muzykę teraz i przy kolejnych uruchomieniach
|
||||||
|
Effacer Clear Leeren Borrar Wyczyść
|
||||||
|
Copier Copy Kopieren Copiar Kopiuj
|
||||||
|
Installation Setup Installation Instalación Instalacja
|
||||||
|
Jeu original Original game Originalspiel Juego original Oryginalna gra
|
||||||
|
Jeu compilé Game built Spiel kompiliert Juego compilado Gra skompilowana
|
||||||
|
Configurer / recompiler… Setup / rebuild… Einrichten / neu kompilieren… Configurar / recompilar… Konfiguruj / skompiluj ponownie…
|
||||||
|
1. Jeu original 1. Original game 1. Originalspiel 1. Juego original 1. Oryginalna gra
|
||||||
|
Dossier du CD, lecteur (ex. E:\\) ou image .iso. Les fichiers sont lus, jamais modifiés. CD folder, drive (e.g. E:\\) or .iso image. Files are read, never modified. CD-Ordner, Laufwerk (z. B. E:\\) oder .iso-Abbild. Die Dateien werden gelesen, nie verändert. Carpeta del CD, unidad (p. ej. E:\\) o imagen .iso. Los archivos se leen, nunca se modifican. Folder płyty CD, napęd (np. E:\\) lub obraz .iso. Pliki są tylko odczytywane, nigdy zmieniane.
|
||||||
|
Dossier… Folder… Ordner… Carpeta… Folder…
|
||||||
|
Image ISO… ISO image… ISO-Abbild… Imagen ISO… Obraz ISO…
|
||||||
|
Choisissez le jeu Choose the game Wählen Sie das Spiel Elige el juego Wybierz grę
|
||||||
|
Avancé : dossier d'installation Advanced: install folder Erweitert: Installationsordner Avanzado: carpeta de instalación Zaawansowane: folder instalacji
|
||||||
|
Optionnel : dossier TUCKER créé par l'installation DOS (C:\\TUCKER). Vide = automatique. Optional: TUCKER folder created by the DOS install (C:\\TUCKER). Empty = automatic. Optional: der von der DOS-Installation erstellte Ordner TUCKER (C:\\TUCKER). Leer = automatisch. Opcional: carpeta TUCKER creada por la instalación de DOS (C:\\TUCKER). Vacío = automático. Opcjonalnie: folder TUCKER utworzony przez instalację DOS (C:\\TUCKER). Puste = automatycznie.
|
||||||
|
2. Prérequis 2. Requirements 2. Voraussetzungen 2. Requisitos 2. Wymagania
|
||||||
|
Vérifier Check Prüfen Comprobar Sprawdź
|
||||||
|
absent de PATH not in PATH nicht im PATH no está en el PATH brak w PATH
|
||||||
|
non installé not installed nicht installiert no instalado nie zainstalowano
|
||||||
|
Installer (pip) Install (pip) Installieren (pip) Instalar (pip) Zainstaluj (pip)
|
||||||
|
introuvable not found nicht gefunden no encontrado nie znaleziono
|
||||||
|
absent missing fehlt falta brak
|
||||||
|
Télécharger Download Herunterladen Descargar Pobierz
|
||||||
|
3. Compilation 3. Build 3. Kompilierung 3. Compilación 3. Kompilacja
|
||||||
|
Traduit TUCKER.EXE et INTRO.EXE en C, puis compile. Quelques minutes la première fois. Translates TUCKER.EXE and INTRO.EXE to C, then compiles. Takes a few minutes the first time. Übersetzt TUCKER.EXE und INTRO.EXE nach C und kompiliert dann. Beim ersten Mal ein paar Minuten. Traduce TUCKER.EXE e INTRO.EXE a C y luego compila. Unos minutos la primera vez. Tłumaczy TUCKER.EXE i INTRO.EXE na C, a potem kompiluje. Za pierwszym razem kilka minut.
|
||||||
|
Version du jeu Game version Spielversion Versión del juego Wersja gry
|
||||||
|
bientôt coming soon bald próximamente wkrótce
|
||||||
|
Langue de votre CD. Pour l'instant, seule la version française du jeu se compile : les autres versions (anglaise, allemande, espagnole, polonaise) arriveront plus tard. Language of your CD. For now, only the French version of the game can be built: the other versions (English, German, Spanish, Polish) will come later. Sprache Ihrer CD. Derzeit lässt sich nur die französische Version des Spiels kompilieren: Die anderen Versionen (Englisch, Deutsch, Spanisch, Polnisch) folgen später. Idioma de tu CD. Por ahora solo se puede compilar la versión francesa del juego: las demás versiones (inglesa, alemana, española, polaca) llegarán más adelante. Język twojej płyty CD. Na razie da się skompilować tylko francuską wersję gry: pozostałe wersje (angielska, niemiecka, hiszpańska, polska) pojawią się później.
|
||||||
|
Générer et compiler Generate and build Erzeugen und kompilieren Generar y compilar Wygeneruj i skompiluj
|
||||||
|
Recompiler seulement Rebuild only Nur neu kompilieren Solo recompilar Tylko skompiluj ponownie
|
||||||
|
Terminé Done Fertig Terminado Gotowe
|
||||||
|
Échec, voir le journal Failed, see the log Fehlgeschlagen, siehe Protokoll Error, mira el registro Niepowodzenie, zobacz dziennik
|
||||||
|
Le moteur compilé ne sait pas encore charger une sauvegarde au démarrage : recompilez-le quand il sera à jour. En attendant, le jeu démarre normalement. The compiled engine cannot load a save at startup yet: rebuild it once it is updated. Until then, the game starts normally. Die kompilierte Engine kann beim Start noch keinen Spielstand laden: Kompilieren Sie sie neu, sobald sie aktualisiert ist. Bis dahin startet das Spiel normal. El motor compilado todavía no sabe cargar una partida al iniciar: recompílalo cuando esté actualizado. Mientras tanto, el juego arranca normalmente. Skompilowany silnik nie potrafi jeszcze wczytać zapisu przy starcie: skompiluj go ponownie, gdy zostanie zaktualizowany. Do tego czasu gra uruchamia się normalnie.
|
||||||
|
Aucune sauvegarde : la partie commencera depuis le début. No saved game: the game will start from the beginning. Kein Spielstand: Das Spiel beginnt von vorn. Ninguna partida guardada: el juego empezará desde el principio. Brak zapisów: gra zacznie się od początku.
|
||||||
|
La dernière jouée The last one played Der zuletzt gespielte La última jugada Ostatnio grany
|
||||||
|
(dernière) (last) (zuletzt) (última) (ostatni)
|
||||||
|
Prêt à jouer Ready to play Spielbereit Listo para jugar Gotowe do gry
|
||||||
|
Son Sound Ton Sonido Dźwięk
|
||||||
|
Passer l'intro Skip intro Intro überspringen Saltar la intro Pomiń intro
|
||||||
|
Reprendre ma partie Resume my game Mein Spiel fortsetzen Continuar mi partida Wznów moją grę
|
||||||
|
Démarre directement sur une sauvegarde, sans l'intro ni le menu du jeu. Starts straight on a saved game, skipping the intro and the game menu. Startet direkt mit einem Spielstand, ohne Intro und Spielmenü. Empieza directamente en una partida guardada, sin la intro ni el menú del juego. Uruchamia grę od razu od zapisu, bez intra i menu gry.
|
||||||
|
Journal détaillé Verbose log Ausführliches Protokoll Registro detallado Szczegółowy dziennik
|
||||||
|
Affichage Display Anzeige Pantalla Obraz
|
||||||
|
Plein écran Fullscreen Vollbild Pantalla completa Pełny ekran
|
||||||
|
Format 4:3 (comme un écran VGA) 4:3 aspect (like a VGA screen) Format 4:3 (wie ein VGA-Bildschirm) Formato 4:3 (como una pantalla VGA) Format 4:3 (jak ekran VGA)
|
||||||
|
Synchronisation verticale Vertical sync Vertikale Synchronisation Sincronización vertical Synchronizacja pionowa
|
||||||
|
Bords flous (écran large) Blurred edges (wide screen) Unscharfe Ränder (Breitbild) Bordes difuminados (pantalla ancha) Rozmyte krawędzie (szeroki ekran)
|
||||||
|
Sur un écran plus large que l'image, les bords sont remplis par l'image du jeu floutée et assombrie au lieu de bandes noires. On a screen wider than the picture, the edges are filled with the game picture, blurred and darkened, instead of black bars. Auf einem Bildschirm, der breiter als das Bild ist, werden die Ränder statt mit schwarzen Balken mit dem unscharfen, abgedunkelten Spielbild gefüllt. En una pantalla más ancha que la imagen, los bordes se rellenan con la imagen del juego difuminada y oscurecida en lugar de franjas negras. Na ekranie szerszym niż obraz krawędzie są wypełniane rozmytym i przyciemnionym obrazem gry zamiast czarnych pasów.
|
||||||
|
Zones cliquables (maintenir Espace) Clickable areas (hold Space) Klickbare Bereiche (Leertaste halten) Zonas clicables (mantener Espacio) Obszary klikalne (przytrzymaj Spację)
|
||||||
|
En jeu, maintenir Espace montre les zones cliquables : sorties en cyan, objets en vert, personnages en rose, le reste en jaune. In game, holding Space shows the clickable areas: exits in cyan, objects in green, characters in pink, the rest in yellow. Im Spiel zeigt das Halten der Leertaste die klickbaren Bereiche: Ausgänge in Cyan, Objekte in Grün, Figuren in Rosa, der Rest in Gelb. En el juego, mantener Espacio muestra las zonas clicables: salidas en cian, objetos en verde, personajes en rosa, el resto en amarillo. W grze przytrzymanie Spacji pokazuje obszary klikalne: wyjścia na niebiesko, przedmioty na zielono, postacie na różowo, reszta na żółto.
|
||||||
|
Résolution de la fenêtre Window resolution Fensterauflösung Resolución de la ventana Rozdzielczość okna
|
||||||
|
Jeu Game Spiel Juego Gra
|
||||||
|
Passer les dialogues au clic Skip dialogue lines with a click Dialoge per Klick überspringen Saltar los diálogos con un clic Pomijaj dialogi kliknięciem
|
||||||
|
Un clic gauche pendant une réplique coupe la voix et fait disparaître la bulle. Ce clic ne lance pas d'action. A left click during a line cuts the voice and removes the speech bubble. That click starts no action. Ein Linksklick während einer Dialogzeile bricht die Stimme ab und blendet die Sprechblase aus. Dieser Klick löst keine Aktion aus. Un clic izquierdo durante una frase corta la voz y hace desaparecer el bocadillo. Ese clic no lanza ninguna acción. Kliknięcie lewym przyciskiem w trakcie kwestii ucina głos i usuwa dymek. To kliknięcie nie uruchamia żadnej akcji.
|
||||||
|
Vitesse de marche de Bud Bud's walking speed Gehgeschwindigkeit von Bud Velocidad al caminar de Bud Szybkość chodu Buda
|
||||||
|
Normale Normal Normal Normal Normalna
|
||||||
|
× 1,5 × 1.5 × 1,5 × 1,5 × 1,5
|
||||||
|
× 2 × 2 × 2 × 2 × 2
|
||||||
|
Seulement quand Bud marche à votre demande : les scènes, la musique et les voix gardent leur vitesse. Only when Bud walks at your request: cutscenes, music and voices keep their speed. Nur wenn Bud auf Ihren Befehl geht: Zwischensequenzen, Musik und Stimmen behalten ihr Tempo. Solo cuando Bud camina porque tú se lo pides: las escenas, la música y las voces mantienen su velocidad. Tylko gdy Bud idzie na twoje polecenie: scenki, muzyka i głosy zachowują swoją prędkość.
|
||||||
|
Volumes Volume Lautstärke Volumen Głośność
|
||||||
|
Général Master Gesamt General Ogólna
|
||||||
|
Musique Music Musik Música Muzyka
|
||||||
|
Voix Voices Stimmen Voces Głosy
|
||||||
|
Bruitages Effects Effekte Efectos Efekty
|
||||||
|
EN JEU… PLAYING… IM SPIEL… JUGANDO… W GRZE…
|
||||||
|
JOUER PLAY SPIELEN JUGAR GRAJ
|
||||||
|
Compilez d'abord le jeu (étape 3). Build the game first (step 3). Kompilieren Sie zuerst das Spiel (Schritt 3). Compila primero el juego (paso 3). Najpierw skompiluj grę (krok 3).
|
||||||
|
Démarre sur la sauvegarde automatique (lieu {loc}). Starts on the automatic save (location {loc}). Startet mit der automatischen Speicherung (Ort {loc}). Empieza en el guardado automático (lugar {loc}). Startuje od automatycznego zapisu (miejsce {loc}).
|
||||||
|
Démarre sur la partie {n} (lieu {loc}). Starts on save {n} (location {loc}). Startet mit Spielstand {n} (Ort {loc}). Empieza en la partida {n} (lugar {loc}). Startuje od zapisu {n} (miejsce {loc}).
|
||||||
|
Le jeu s'est arrêté avec le code The game stopped with code Das Spiel wurde beendet mit Code El juego se detuvo con el código Gra zakończyła się z kodem
|
||||||
|
En jeu : F12 réglages · F11 plein écran. In game: F12 settings · F11 fullscreen. Im Spiel: F12 Einstellungen · F11 Vollbild. En el juego: F12 ajustes · F11 pantalla completa. W grze: F12 ustawienia · F11 pełny ekran.
|
||||||
|
Dossier du projet introuvable : placez le launcher dans DoubleTroubleRecomp (à côté de build.bat). Project folder not found: put the launcher inside DoubleTroubleRecomp (next to build.bat). Projektordner nicht gefunden: Legen Sie den Launcher in DoubleTroubleRecomp ab (neben build.bat). No se encuentra la carpeta del proyecto: coloca el launcher en DoubleTroubleRecomp (junto a build.bat). Nie znaleziono folderu projektu: umieść launcher w DoubleTroubleRecomp (obok build.bat).
|
||||||
|
Décors (122) Backgrounds (122) Hintergründe (122) Fondos (122) Tła (122)
|
||||||
|
Cinématiques (24) Cutscenes (24) Zwischensequenzen (24) Cinemáticas (24) Przerywniki (24)
|
||||||
|
@@ -0,0 +1,136 @@
|
|||||||
|
//! Traductions de l'interface. Le code garde ses textes en français et en anglais (`tr("…", "…")`) ; les
|
||||||
|
//! autres langues viennent de assets/i18n.tsv, une ligne par texte, colonnes séparées par des tabulations :
|
||||||
|
//! français (la clé, exactement comme dans le code), anglais (pour les traducteurs), allemand, espagnol,
|
||||||
|
//! polonais. Dans une cellule, `\n` est un retour à la ligne et `\t` une tabulation. Un texte absent ou
|
||||||
|
//! une cellule vide retombe sur l'anglais. Les lignes qui commencent par # sont des commentaires.
|
||||||
|
|
||||||
|
use crate::Lang;
|
||||||
|
use std::collections::HashMap;
|
||||||
|
use std::sync::OnceLock;
|
||||||
|
|
||||||
|
const TSV: &str = include_str!("../assets/i18n.tsv");
|
||||||
|
|
||||||
|
fn unescape(s: &str) -> String {
|
||||||
|
let mut out = String::with_capacity(s.len());
|
||||||
|
let mut it = s.chars();
|
||||||
|
while let Some(c) = it.next() {
|
||||||
|
if c != '\\' {
|
||||||
|
out.push(c);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
match it.next() {
|
||||||
|
Some('n') => out.push('\n'),
|
||||||
|
Some('t') => out.push('\t'),
|
||||||
|
Some('\\') => out.push('\\'),
|
||||||
|
Some(o) => {
|
||||||
|
out.push('\\');
|
||||||
|
out.push(o);
|
||||||
|
}
|
||||||
|
None => out.push('\\'),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
out
|
||||||
|
}
|
||||||
|
|
||||||
|
/// clé française → [allemand, espagnol, polonais]
|
||||||
|
fn table() -> &'static HashMap<String, [&'static str; 3]> {
|
||||||
|
static T: OnceLock<HashMap<String, [&'static str; 3]>> = OnceLock::new();
|
||||||
|
T.get_or_init(|| parse(TSV))
|
||||||
|
}
|
||||||
|
|
||||||
|
fn parse(text: &str) -> HashMap<String, [&'static str; 3]> {
|
||||||
|
let leak = |s: &str| -> &'static str { Box::leak(unescape(s).into_boxed_str()) };
|
||||||
|
text.lines()
|
||||||
|
.filter(|l| !l.trim().is_empty() && !l.starts_with('#'))
|
||||||
|
.filter_map(|l| {
|
||||||
|
let c: Vec<&str> = l.split('\t').collect();
|
||||||
|
(c.len() >= 5).then(|| (unescape(c[0]), [leak(c[2]), leak(c[3]), leak(c[4])]))
|
||||||
|
})
|
||||||
|
.collect()
|
||||||
|
}
|
||||||
|
|
||||||
|
/// le texte dans la langue voulue
|
||||||
|
pub fn tr(lang: Lang, fr: &'static str, en: &'static str) -> &'static str {
|
||||||
|
let col = match lang {
|
||||||
|
Lang::Fr => return fr,
|
||||||
|
Lang::En => return en,
|
||||||
|
Lang::De => 0,
|
||||||
|
Lang::Es => 1,
|
||||||
|
Lang::Pl => 2,
|
||||||
|
};
|
||||||
|
table().get(fr).map(|t| t[col]).filter(|t| !t.is_empty()).unwrap_or(en)
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
/// paires tr("fr", "en") / .t("fr", "en") du code, telles qu'écrites (échappements compris)
|
||||||
|
fn source_pairs() -> Vec<(String, String)> {
|
||||||
|
let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("src");
|
||||||
|
let mut out = Vec::new();
|
||||||
|
for (f, needle) in [("main.rs", "tr("), ("main.rs", ".t(")] {
|
||||||
|
let s = std::fs::read_to_string(dir.join(f)).unwrap();
|
||||||
|
let b = s.as_bytes();
|
||||||
|
let mut i = 0;
|
||||||
|
while let Some(p) = s[i..].find(needle).map(|p| p + i) {
|
||||||
|
i = p + needle.len();
|
||||||
|
let mut j = i;
|
||||||
|
let lit = |j: &mut usize| -> Option<String> {
|
||||||
|
while *j < b.len() && (b[*j] as char).is_whitespace() {
|
||||||
|
*j += 1;
|
||||||
|
}
|
||||||
|
if b.get(*j) != Some(&b'"') {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
let start = *j + 1;
|
||||||
|
let mut k = start;
|
||||||
|
while k < b.len() && b[k] != b'"' {
|
||||||
|
k += if b[k] == b'\\' { 2 } else { 1 };
|
||||||
|
}
|
||||||
|
*j = k + 1;
|
||||||
|
Some(s[start..k].to_string())
|
||||||
|
};
|
||||||
|
// tr(lang, "fr", "en") ou tr("fr", "en")
|
||||||
|
let save = j;
|
||||||
|
if s[j..].trim_start().starts_with("lang,") {
|
||||||
|
j = j + s[j..].find("lang,").unwrap() + 5;
|
||||||
|
} else if s[j..].trim_start().starts_with("self.cfg.lang,") {
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
j = save;
|
||||||
|
}
|
||||||
|
let Some(fr) = lit(&mut j) else { continue };
|
||||||
|
while j < b.len() && (b[j] as char).is_whitespace() {
|
||||||
|
j += 1;
|
||||||
|
}
|
||||||
|
if b.get(j) != Some(&b',') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
j += 1;
|
||||||
|
let Some(en) = lit(&mut j) else { continue };
|
||||||
|
out.push((fr, en));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
out
|
||||||
|
}
|
||||||
|
|
||||||
|
/// chaque texte de l'interface a sa traduction allemande, espagnole et polonaise
|
||||||
|
#[test]
|
||||||
|
fn every_text_translated() {
|
||||||
|
let t = parse(TSV);
|
||||||
|
let rust_unescape = |s: &str| s.replace("\\\"", "\"").replace("\\n", "\n").replace("\\\\", "\\");
|
||||||
|
let missing: Vec<String> = source_pairs()
|
||||||
|
.into_iter()
|
||||||
|
.map(|(fr, _)| rust_unescape(&fr))
|
||||||
|
.filter(|fr| t.get(fr).is_none_or(|c| c.iter().any(|x| x.is_empty())))
|
||||||
|
.collect();
|
||||||
|
assert!(missing.is_empty(), "{} texte(s) sans traduction :\n{}", missing.len(), missing.join("\n"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn falls_back_to_english() {
|
||||||
|
assert_eq!(tr(Lang::De, "texte inconnu", "unknown text"), "unknown text");
|
||||||
|
assert_eq!(tr(Lang::Fr, "texte inconnu", "unknown text"), "texte inconnu");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
mod art;
|
mod art;
|
||||||
mod mods;
|
mod mods;
|
||||||
|
mod i18n;
|
||||||
mod music;
|
mod music;
|
||||||
mod parties;
|
mod parties;
|
||||||
mod preview;
|
mod preview;
|
||||||
@@ -41,6 +42,30 @@ const MAX_LOG: usize = 5000;
|
|||||||
enum Lang {
|
enum Lang {
|
||||||
Fr,
|
Fr,
|
||||||
En,
|
En,
|
||||||
|
De,
|
||||||
|
Es,
|
||||||
|
Pl,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Lang {
|
||||||
|
/// même ordre que les drapeaux (paint_flag) et les musiques (music::TRACKS)
|
||||||
|
const ALL: [Lang; 5] = [Lang::Fr, Lang::En, Lang::De, Lang::Es, Lang::Pl];
|
||||||
|
|
||||||
|
fn index(self) -> usize {
|
||||||
|
self as usize
|
||||||
|
}
|
||||||
|
|
||||||
|
fn code(self) -> &'static str {
|
||||||
|
["fr", "en", "de", "es", "pl"][self.index()]
|
||||||
|
}
|
||||||
|
|
||||||
|
fn name(self) -> &'static str {
|
||||||
|
["Français", "English", "Deutsch", "Español", "Polski"][self.index()]
|
||||||
|
}
|
||||||
|
|
||||||
|
fn from_code(c: &str) -> Lang {
|
||||||
|
Lang::ALL.into_iter().find(|l| l.code() == c).unwrap_or(Lang::Fr)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------ configuration
|
// ------------------------------------------------------------------ configuration
|
||||||
@@ -114,7 +139,7 @@ impl Config {
|
|||||||
let (k, v) = (k.trim(), v.trim());
|
let (k, v) = (k.trim(), v.trim());
|
||||||
let b = v == "1";
|
let b = v == "1";
|
||||||
match k {
|
match k {
|
||||||
"lang" => c.lang = if v == "en" { Lang::En } else { Lang::Fr },
|
"lang" => c.lang = Lang::from_code(v),
|
||||||
"game_path" => c.game_path = v.to_string(),
|
"game_path" => c.game_path = v.to_string(),
|
||||||
"install_dir" => c.install_dir = v.to_string(),
|
"install_dir" => c.install_dir = v.to_string(),
|
||||||
"sound" => c.sound = b,
|
"sound" => c.sound = b,
|
||||||
@@ -147,7 +172,7 @@ impl Config {
|
|||||||
let text = format!(
|
let text = format!(
|
||||||
"lang={}\ngame_path={}\ninstall_dir={}\nsound={}\nskip_intro={}\nresume={}\nresume_slot={}\nverbose={}\n\
|
"lang={}\ngame_path={}\ninstall_dir={}\nsound={}\nskip_intro={}\nresume={}\nresume_slot={}\nverbose={}\n\
|
||||||
window_width={}\nwindow_height={}\nmaximized={}\nwindow_x={}\nwindow_y={}\npreview_zoom={}\npreview_compare={}\nmusic_mute={}\nmusic_volume={}\nui_scale={}\n",
|
window_width={}\nwindow_height={}\nmaximized={}\nwindow_x={}\nwindow_y={}\npreview_zoom={}\npreview_compare={}\nmusic_mute={}\nmusic_volume={}\nui_scale={}\n",
|
||||||
if self.lang == Lang::En { "en" } else { "fr" },
|
self.lang.code(),
|
||||||
self.game_path,
|
self.game_path,
|
||||||
self.install_dir,
|
self.install_dir,
|
||||||
b(self.sound),
|
b(self.sound),
|
||||||
@@ -541,18 +566,14 @@ const COFFEE_URL: &str = "https://buymeacoffee.com/linkatplug";
|
|||||||
|
|
||||||
/// signature en bas de la fenêtre : tasse dessinée (pas d'image embarquée) et « By LinkAtPlug », en jaune comme
|
/// signature en bas de la fenêtre : tasse dessinée (pas d'image embarquée) et « By LinkAtPlug », en jaune comme
|
||||||
/// les boutons, le tout cliquable vers la page Buy Me a Coffee ; soulignée au survol
|
/// les boutons, le tout cliquable vers la page Buy Me a Coffee ; soulignée au survol
|
||||||
fn coffee_link(ui: &mut egui::Ui, en: bool) {
|
fn coffee_link(ui: &mut egui::Ui, lang: Lang) {
|
||||||
let text = egui::WidgetText::from(RichText::new("By LinkAtPlug").color(ACCENT));
|
let text = egui::WidgetText::from(RichText::new("By LinkAtPlug").color(ACCENT));
|
||||||
let galley = text.into_galley(ui, Some(egui::TextWrapMode::Extend), f32::INFINITY, egui::TextStyle::Body);
|
let galley = text.into_galley(ui, Some(egui::TextWrapMode::Extend), f32::INFINITY, egui::TextStyle::Body);
|
||||||
let icon = 20.0;
|
let icon = 20.0;
|
||||||
let k = icon / 14.0; // tasse dessinée sur une grille de 14 px, agrandie
|
let k = icon / 14.0; // tasse dessinée sur une grille de 14 px, agrandie
|
||||||
let size = egui::vec2(icon + 6.0 + galley.size().x, icon.max(galley.size().y));
|
let size = egui::vec2(icon + 6.0 + galley.size().x, icon.max(galley.size().y));
|
||||||
let (rect, resp) = ui.allocate_exact_size(size, egui::Sense::click());
|
let (rect, resp) = ui.allocate_exact_size(size, egui::Sense::click());
|
||||||
let resp = resp.on_hover_cursor(egui::CursorIcon::PointingHand).on_hover_text(if en {
|
let resp = resp.on_hover_cursor(egui::CursorIcon::PointingHand).on_hover_text(i18n::tr(lang, "Soutenir le projet : offrez-moi un café (buymeacoffee.com/linkatplug)", "Support the project: buy me a coffee (buymeacoffee.com/linkatplug)"));
|
||||||
"Support the project: buy me a coffee (buymeacoffee.com/linkatplug)"
|
|
||||||
} else {
|
|
||||||
"Soutenir le projet : offrez-moi un café (buymeacoffee.com/linkatplug)"
|
|
||||||
});
|
|
||||||
let col = ACCENT;
|
let col = ACCENT;
|
||||||
let p = ui.painter();
|
let p = ui.painter();
|
||||||
// tasse : corps, anse, soucoupe et deux volutes de vapeur
|
// tasse : corps, anse, soucoupe et deux volutes de vapeur
|
||||||
@@ -591,7 +612,7 @@ const RESOLUTIONS: &[(u32, u32)] = &[
|
|||||||
|
|
||||||
/// liste déroulante de la taille de fenêtre en pixels (window_width / window_height) : résolutions courantes
|
/// liste déroulante de la taille de fenêtre en pixels (window_width / window_height) : résolutions courantes
|
||||||
/// qui tiennent à l'écran, celle de l'écran, et la taille actuelle (y compris l'ancien réglage ×N)
|
/// qui tiennent à l'écran, celle de l'écran, et la taille actuelle (y compris l'ancien réglage ×N)
|
||||||
fn resolution_combo(ui: &mut egui::Ui, gs: &mut settings::GameSettings, screen: Option<(u32, u32)>, en: bool) {
|
fn resolution_combo(ui: &mut egui::Ui, gs: &mut settings::GameSettings, screen: Option<(u32, u32)>, lang: Lang) {
|
||||||
let cur = if gs.window_width > 0 && gs.window_height > 0 {
|
let cur = if gs.window_width > 0 && gs.window_height > 0 {
|
||||||
(gs.window_width, gs.window_height)
|
(gs.window_width, gs.window_height)
|
||||||
} else {
|
} else {
|
||||||
@@ -606,7 +627,7 @@ fn resolution_combo(ui: &mut egui::Ui, gs: &mut settings::GameSettings, screen:
|
|||||||
list.sort();
|
list.sort();
|
||||||
list.dedup();
|
list.dedup();
|
||||||
let label = |r: (u32, u32)| {
|
let label = |r: (u32, u32)| {
|
||||||
let note = if Some(r) == screen { if en { " (screen)" } else { " (écran)" } } else { "" };
|
let note = if Some(r) == screen { i18n::tr(lang, " (écran)", " (screen)") } else { "" };
|
||||||
format!("{} × {}{note}", r.0, r.1)
|
format!("{} × {}{note}", r.0, r.1)
|
||||||
};
|
};
|
||||||
egui::ComboBox::from_id_salt("resolution").selected_text(label(cur)).show_ui(ui, |ui| {
|
egui::ComboBox::from_id_salt("resolution").selected_text(label(cur)).show_ui(ui, |ui| {
|
||||||
@@ -861,6 +882,23 @@ struct App {
|
|||||||
|
|
||||||
/// drapeaux dessinés (pas d'émoji dans la police) : 0 = France, 1 = États-Unis
|
/// drapeaux dessinés (pas d'émoji dans la police) : 0 = France, 1 = États-Unis
|
||||||
fn paint_flag(p: &egui::Painter, r: Rect, which: usize) {
|
fn paint_flag(p: &egui::Painter, r: Rect, which: usize) {
|
||||||
|
// bandes horizontales (couleur, hauteur relative)
|
||||||
|
let bands: &[(Color32, f32)] = match which {
|
||||||
|
2 => &[(Color32::from_rgb(0x00, 0x00, 0x00), 1.0), (Color32::from_rgb(0xDD, 0x00, 0x00), 1.0), (Color32::from_rgb(0xFF, 0xCE, 0x00), 1.0)],
|
||||||
|
3 => &[(Color32::from_rgb(0xAA, 0x15, 0x1B), 1.0), (Color32::from_rgb(0xF1, 0xBF, 0x00), 2.0), (Color32::from_rgb(0xAA, 0x15, 0x1B), 1.0)],
|
||||||
|
4 => &[(Color32::WHITE, 1.0), (Color32::from_rgb(0xDC, 0x14, 0x3C), 1.0)],
|
||||||
|
_ => &[],
|
||||||
|
};
|
||||||
|
if !bands.is_empty() {
|
||||||
|
let total: f32 = bands.iter().map(|b| b.1).sum();
|
||||||
|
let mut y = r.top();
|
||||||
|
for (c, h) in bands {
|
||||||
|
let hh = r.height() * h / total;
|
||||||
|
p.rect_filled(Rect::from_min_size(egui::pos2(r.left(), y), egui::vec2(r.width(), hh)), 0.0, *c);
|
||||||
|
y += hh;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
if which == 0 {
|
if which == 0 {
|
||||||
let w = r.width() / 3.0;
|
let w = r.width() / 3.0;
|
||||||
for (i, c) in [Color32::from_rgb(0x00, 0x55, 0xA4), Color32::WHITE, Color32::from_rgb(0xEF, 0x41, 0x35)].into_iter().enumerate() {
|
for (i, c) in [Color32::from_rgb(0x00, 0x55, 0xA4), Color32::WHITE, Color32::from_rgb(0xEF, 0x41, 0x35)].into_iter().enumerate() {
|
||||||
@@ -956,11 +994,12 @@ fn model_combo(ui: &mut egui::Ui, salt: impl std::hash::Hash + std::fmt::Debug,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// tutoriel des textures HD (wiki du dépôt)
|
/// tutoriel des textures HD (wiki du dépôt)
|
||||||
fn textures_guide(en: bool) -> &'static str {
|
fn textures_guide(lang: Lang) -> &'static str {
|
||||||
if en {
|
// tutoriel en français ou en anglais seulement (doc technique)
|
||||||
"https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki/HD-Textures"
|
if lang == Lang::Fr {
|
||||||
} else {
|
|
||||||
"https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki/Textures-HD"
|
"https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki/Textures-HD"
|
||||||
|
} else {
|
||||||
|
"https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp/wiki/HD-Textures"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -986,7 +1025,7 @@ impl App {
|
|||||||
let (tx, rx) = channel();
|
let (tx, rx) = channel();
|
||||||
let cfg = Config::load();
|
let cfg = Config::load();
|
||||||
// la version suit la langue du launcher : VF en français, VUS en anglais
|
// la version suit la langue du launcher : VF en français, VUS en anglais
|
||||||
let mut player = music::Player::new(if cfg.lang == Lang::En { 1 } else { 0 }, cfg.music_volume);
|
let mut player = music::Player::new(cfg.lang.index(), cfg.music_volume);
|
||||||
if !cfg.music_mute {
|
if !cfg.music_mute {
|
||||||
player.play();
|
player.play();
|
||||||
}
|
}
|
||||||
@@ -1088,7 +1127,7 @@ impl App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn t(&self, fr: &'static str, en: &'static str) -> &'static str {
|
fn t(&self, fr: &'static str, en: &'static str) -> &'static str {
|
||||||
if self.cfg.lang == Lang::En { en } else { fr }
|
i18n::tr(self.cfg.lang, fr, en)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ui_handle(&self) -> Ui {
|
fn ui_handle(&self) -> Ui {
|
||||||
@@ -1250,8 +1289,8 @@ impl App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn mods_card(&mut self, ui: &mut egui::Ui) {
|
fn mods_card(&mut self, ui: &mut egui::Ui) {
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let tr = |fr: &'static str, e: &'static str| if en { e } else { fr };
|
let tr = |fr: &'static str, e: &'static str| i18n::tr(lang, fr, e);
|
||||||
let running = self.game_running;
|
let running = self.game_running;
|
||||||
let busy = self.busy != Busy::No;
|
let busy = self.busy != Busy::No;
|
||||||
let can_create = !busy && self.checks.game_dir.is_some() && self.checks.python.is_some();
|
let can_create = !busy && self.checks.game_dir.is_some() && self.checks.python.is_some();
|
||||||
@@ -1313,19 +1352,17 @@ impl App {
|
|||||||
}
|
}
|
||||||
// pack de décors sans sprites (ou incomplet) : les créer avec le même modèle
|
// pack de décors sans sprites (ou incomplet) : les créer avec le même modèle
|
||||||
if let (Some(model), true, true) = (&m.model, m.hd_images > 0 && !m.hd_sprites_complete, self.upscayl.is_some()) {
|
if let (Some(model), true, true) = (&m.model, m.hd_images > 0 && !m.hd_sprites_complete, self.upscayl.is_some()) {
|
||||||
let label = match (m.hd_sprites, en) {
|
let label = if m.hd_sprites == 0 {
|
||||||
(0, false) => "+ sprites HD",
|
tr("+ sprites HD", "+ HD sprites")
|
||||||
(0, true) => "+ HD sprites",
|
} else {
|
||||||
(_, false) => "Compléter les sprites HD",
|
tr("Compléter les sprites HD", "Complete the HD sprites")
|
||||||
(_, true) => "Complete the HD sprites",
|
|
||||||
};
|
};
|
||||||
if ui
|
if ui
|
||||||
.add_enabled(can_create, egui::Button::new(label).small())
|
.add_enabled(can_create, egui::Button::new(label).small())
|
||||||
.on_hover_text(if en {
|
.on_hover_text(tr(
|
||||||
format!("Creates the characters, objects and cursor in HD with the same model as the backgrounds ({model}). Takes a while.")
|
"Crée les personnages, objets et curseur en HD avec le même modèle que les décors ({model}). Prend du temps.",
|
||||||
} else {
|
"Creates the characters, objects and cursor in HD with the same model as the backgrounds ({model}). Takes a while.",
|
||||||
format!("Crée les personnages, objets et curseur en HD avec le même modèle que les décors ({model}). Prend du temps.")
|
).replace("{model}", model))
|
||||||
})
|
|
||||||
.clicked()
|
.clicked()
|
||||||
{
|
{
|
||||||
add_sprites = Some((m.path.clone(), model.clone()));
|
add_sprites = Some((m.path.clone(), model.clone()));
|
||||||
@@ -1335,11 +1372,10 @@ impl App {
|
|||||||
if let (Some(model), true, true) = (&m.model, m.hd_images > 0 && !m.has_panel, self.upscayl.is_some()) {
|
if let (Some(model), true, true) = (&m.model, m.hd_images > 0 && !m.has_panel, self.upscayl.is_some()) {
|
||||||
if ui
|
if ui
|
||||||
.add_enabled(can_create, egui::Button::new(tr("+ barre d'actions", "+ action bar")).small())
|
.add_enabled(can_create, egui::Button::new(tr("+ barre d'actions", "+ action bar")).small())
|
||||||
.on_hover_text(if en {
|
.on_hover_text(tr(
|
||||||
format!("Adds the action bar in HD (PANEL1, PANEL2) with the same model as the pack ({model}). A few seconds.")
|
"Ajoute la barre d'actions en HD (PANEL1, PANEL2) avec le même modèle que le pack ({model}). Quelques secondes.",
|
||||||
} else {
|
"Adds the action bar in HD (PANEL1, PANEL2) with the same model as the pack ({model}). A few seconds.",
|
||||||
format!("Ajoute la barre d'actions en HD (PANEL1, PANEL2) avec le même modèle que le pack ({model}). Quelques secondes.")
|
).replace("{model}", model))
|
||||||
})
|
|
||||||
.clicked()
|
.clicked()
|
||||||
{
|
{
|
||||||
add_bar = Some((m.path.clone(), model.clone()));
|
add_bar = Some((m.path.clone(), model.clone()));
|
||||||
@@ -1349,11 +1385,10 @@ impl App {
|
|||||||
if let (Some(model), true, true) = (&m.model, m.hd_images + m.hd_sprites > 0, self.upscayl.is_some()) {
|
if let (Some(model), true, true) = (&m.model, m.hd_images + m.hd_sprites > 0, self.upscayl.is_some()) {
|
||||||
if ui
|
if ui
|
||||||
.add_enabled(can_create, egui::Button::new(tr("Réparer", "Repair")).small())
|
.add_enabled(can_create, egui::Button::new(tr("Réparer", "Repair")).small())
|
||||||
.on_hover_text(if en {
|
.on_hover_text(tr(
|
||||||
format!("Redoes only the empty pictures of the pack (after a crash or an interrupted export), with its model ({model}). Close games and 3D apps meanwhile.")
|
"Refait seulement les images vides du pack (après un plantage ou un export interrompu), avec son modèle ({model}). Fermez jeux et applis 3D pendant ce temps.",
|
||||||
} else {
|
"Redoes only the empty pictures of the pack (after a crash or an interrupted export), with its model ({model}). Close games and 3D apps meanwhile.",
|
||||||
format!("Refait seulement les images vides du pack (après un plantage ou un export interrompu), avec son modèle ({model}). Fermez jeux et applis 3D pendant ce temps.")
|
).replace("{model}", model))
|
||||||
})
|
|
||||||
.clicked()
|
.clicked()
|
||||||
{
|
{
|
||||||
repair = Some((m.path.clone(), model.clone()));
|
repair = Some((m.path.clone(), model.clone()));
|
||||||
@@ -1456,14 +1491,14 @@ impl App {
|
|||||||
ui.horizontal_wrapped(|ui| {
|
ui.horizontal_wrapped(|ui| {
|
||||||
ui.hyperlink_to(tr("Télécharger Upscayl", "Download Upscayl"), "https://upscayl.org");
|
ui.hyperlink_to(tr("Télécharger Upscayl", "Download Upscayl"), "https://upscayl.org");
|
||||||
ui.label(RichText::new("·").weak());
|
ui.label(RichText::new("·").weak());
|
||||||
ui.hyperlink_to(tr("Guide des textures HD", "HD textures guide"), textures_guide(en));
|
ui.hyperlink_to(tr("Guide des textures HD", "HD textures guide"), textures_guide(lang));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ui.separator();
|
ui.separator();
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.label(RichText::new(tr("Faire son propre pack HD", "Make your own HD pack")).strong());
|
ui.label(RichText::new(tr("Faire son propre pack HD", "Make your own HD pack")).strong());
|
||||||
ui.hyperlink_to(tr("(tutoriel)", "(tutorial)"), textures_guide(en));
|
ui.hyperlink_to(tr("(tutoriel)", "(tutorial)"), textures_guide(lang));
|
||||||
});
|
});
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
if ui
|
if ui
|
||||||
@@ -1534,7 +1569,7 @@ impl App {
|
|||||||
self.export_confirm = true;
|
self.export_confirm = true;
|
||||||
}
|
}
|
||||||
if self.export_confirm {
|
if self.export_confirm {
|
||||||
self.export_dialog(ui, en);
|
self.export_dialog(ui, lang);
|
||||||
}
|
}
|
||||||
if new_mod {
|
if new_mod {
|
||||||
self.new_mod();
|
self.new_mod();
|
||||||
@@ -1542,8 +1577,8 @@ impl App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// confirmation avant l'export : ce qu'il fait, combien de temps, où ça va
|
/// confirmation avant l'export : ce qu'il fait, combien de temps, où ça va
|
||||||
fn export_dialog(&mut self, ui: &mut egui::Ui, en: bool) {
|
fn export_dialog(&mut self, ui: &mut egui::Ui, lang: Lang) {
|
||||||
let tr = |fr: &'static str, e: &'static str| if en { e } else { fr };
|
let tr = |fr: &'static str, e: &'static str| i18n::tr(lang, fr, e);
|
||||||
let mut go = false;
|
let mut go = false;
|
||||||
let mut cancel = false;
|
let mut cancel = false;
|
||||||
let modal = egui::Modal::new(ui.scope_id().with("export_confirm")).show(ui.ctx(), |ui| {
|
let modal = egui::Modal::new(ui.scope_id().with("export_confirm")).show(ui.ctx(), |ui| {
|
||||||
@@ -1605,13 +1640,13 @@ impl App {
|
|||||||
|
|
||||||
fn new_mod(&mut self) {
|
fn new_mod(&mut self) {
|
||||||
let Some(mdir) = self.mods_dir() else { return };
|
let Some(mdir) = self.mods_dir() else { return };
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
self.mod_msg = Some(match mods::create_mod(&mdir, &self.new_mod_name) {
|
self.mod_msg = Some(match mods::create_mod(&mdir, &self.new_mod_name) {
|
||||||
Ok(hd) => {
|
Ok(hd) => {
|
||||||
saves::open_folder(&hd);
|
saves::open_folder(&hd);
|
||||||
self.new_mod_name.clear();
|
self.new_mod_name.clear();
|
||||||
self.reload_mods();
|
self.reload_mods();
|
||||||
(true, if en { format!("Created: {}", hd.display()) } else { format!("Créé : {}", hd.display()) })
|
(true, format!("{} {}", i18n::tr(lang, "Créé :", "Created:"), hd.display()))
|
||||||
}
|
}
|
||||||
Err(e) => (false, e),
|
Err(e) => (false, e),
|
||||||
});
|
});
|
||||||
@@ -1639,8 +1674,8 @@ impl App {
|
|||||||
|
|
||||||
/// parties enregistrées depuis le menu F12 du jeu (illimitées, avec l'image du jeu au moment de la sauvegarde)
|
/// parties enregistrées depuis le menu F12 du jeu (illimitées, avec l'image du jeu au moment de la sauvegarde)
|
||||||
fn parties_card(&mut self, ui: &mut egui::Ui) {
|
fn parties_card(&mut self, ui: &mut egui::Ui) {
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let tr = |fr: &'static str, e: &'static str| if en { e } else { fr };
|
let tr = |fr: &'static str, e: &'static str| i18n::tr(lang, fr, e);
|
||||||
const SHOWN: usize = 6;
|
const SHOWN: usize = 6;
|
||||||
let total = self.parties.len();
|
let total = self.parties.len();
|
||||||
let shown = if self.parties_all { total } else { total.min(SHOWN) };
|
let shown = if self.parties_all { total } else { total.min(SHOWN) };
|
||||||
@@ -1789,7 +1824,7 @@ impl App {
|
|||||||
|
|
||||||
fn save_action(&mut self, act: SaveAct) {
|
fn save_action(&mut self, act: SaveAct) {
|
||||||
let Some(dir) = self.saves_dir() else { return };
|
let Some(dir) = self.saves_dir() else { return };
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let result = match act {
|
let result = match act {
|
||||||
SaveAct::AskDelete(s) => {
|
SaveAct::AskDelete(s) => {
|
||||||
self.save_confirm = Some(s);
|
self.save_confirm = Some(s);
|
||||||
@@ -1813,15 +1848,15 @@ impl App {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SaveAct::Delete(s) => saves::delete(&dir, s).map(|_| {
|
SaveAct::Delete(s) => saves::delete(&dir, s).map(|_| {
|
||||||
if en { format!("Save {s} removed (a copy was kept in backups).") }
|
i18n::tr(lang, "Partie {s} retirée (une copie est gardée dans backups).", "Save {s} removed (a copy was kept in backups).")
|
||||||
else { format!("Partie {s} retirée (une copie est gardée dans backups).") }
|
.replace("{s}", &s.to_string())
|
||||||
}),
|
}),
|
||||||
SaveAct::Backup => saves::backup(&dir, "").map(|n| {
|
SaveAct::Backup => saves::backup(&dir, "").map(|n| {
|
||||||
if en { format!("Backup created: {n}") } else { format!("Copie de sécurité créée : {n}") }
|
format!("{} {n}", i18n::tr(lang, "Copie de sécurité créée :", "Backup created:"))
|
||||||
}),
|
}),
|
||||||
SaveAct::Restore(p) => saves::restore(&dir, &p).map(|_| {
|
SaveAct::Restore(p) => saves::restore(&dir, &p).map(|_| {
|
||||||
if en { "Backup restored (previous saves kept in backups).".to_string() }
|
i18n::tr(lang, "Copie restaurée (les sauvegardes d'avant sont gardées dans backups).", "Backup restored (previous saves kept in backups).")
|
||||||
else { "Copie restaurée (les sauvegardes d'avant sont gardées dans backups).".to_string() }
|
.to_string()
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
self.save_confirm = None;
|
self.save_confirm = None;
|
||||||
@@ -1840,15 +1875,15 @@ impl App {
|
|||||||
if n == 0 {
|
if n == 0 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let running = self.game_running;
|
let running = self.game_running;
|
||||||
let names = if en { ["Sharp", "Smooth", "xBR", "CRT"] } else { ["Net", "Lissé", "xBR", "CRT"] };
|
let names = [i18n::tr(lang, "Net", "Sharp"), i18n::tr(lang, "Lissé", "Smooth"), i18n::tr(lang, "xBR", "xBR"), i18n::tr(lang, "CRT", "CRT")];
|
||||||
card(ui, |ui| {
|
card(ui, |ui| {
|
||||||
title(ui, if en { "Preview" } else { "Aperçu" });
|
title(ui, i18n::tr(lang, "Aperçu", "Preview"));
|
||||||
ui.horizontal_wrapped(|ui| {
|
ui.horizontal_wrapped(|ui| {
|
||||||
ui.add_enabled_ui(!running, |ui| {
|
ui.add_enabled_ui(!running, |ui| {
|
||||||
ui.horizontal_wrapped(|ui| {
|
ui.horizontal_wrapped(|ui| {
|
||||||
ui.label(if en { "Filter" } else { "Filtre" });
|
ui.label(i18n::tr(lang, "Filtre", "Filter"));
|
||||||
for (i, nm) in names.iter().enumerate() {
|
for (i, nm) in names.iter().enumerate() {
|
||||||
ui.selectable_value(&mut self.gs.filter, i, *nm);
|
ui.selectable_value(&mut self.gs.filter, i, *nm);
|
||||||
}
|
}
|
||||||
@@ -1857,8 +1892,8 @@ impl App {
|
|||||||
});
|
});
|
||||||
ui.separator();
|
ui.separator();
|
||||||
ui.checkbox(&mut self.cfg.preview_zoom, "Zoom ×4");
|
ui.checkbox(&mut self.cfg.preview_zoom, "Zoom ×4");
|
||||||
ui.checkbox(&mut self.cfg.preview_compare, if en { "Compare" } else { "Comparer" })
|
ui.checkbox(&mut self.cfg.preview_compare, i18n::tr(lang, "Comparer", "Compare"))
|
||||||
.on_hover_text(if en { "Original on the left, game picture on the right: drag the divider." } else { "Original à gauche, image du jeu à droite : faites glisser le séparateur." });
|
.on_hover_text(i18n::tr(lang, "Original à gauche, image du jeu à droite : faites glisser le séparateur.", "Original on the left, game picture on the right: drag the divider."));
|
||||||
});
|
});
|
||||||
let w = ui.available_width();
|
let w = ui.available_width();
|
||||||
let h = (w / 1.9).round();
|
let h = (w / 1.9).round();
|
||||||
@@ -1943,8 +1978,8 @@ impl App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn saves_card(&mut self, ui: &mut egui::Ui) {
|
fn saves_card(&mut self, ui: &mut egui::Ui) {
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let tr = |fr: &'static str, e: &'static str| if en { e } else { fr };
|
let tr = |fr: &'static str, e: &'static str| i18n::tr(lang, fr, e);
|
||||||
let running = self.game_running;
|
let running = self.game_running;
|
||||||
let rows: Vec<(u32, u32, String)> = self
|
let rows: Vec<(u32, u32, String)> = self
|
||||||
.saves
|
.saves
|
||||||
@@ -2091,8 +2126,8 @@ impl App {
|
|||||||
|
|
||||||
/// rapports de bug : les plus récents, avec de quoi les ouvrir, les zipper, rejouer leur partie ou les jeter
|
/// rapports de bug : les plus récents, avec de quoi les ouvrir, les zipper, rejouer leur partie ou les jeter
|
||||||
fn reports_card(&mut self, ui: &mut egui::Ui) {
|
fn reports_card(&mut self, ui: &mut egui::Ui) {
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let tr = |fr: &'static str, e: &'static str| if en { e } else { fr };
|
let tr = |fr: &'static str, e: &'static str| i18n::tr(lang, fr, e);
|
||||||
const SHOWN: usize = 5;
|
const SHOWN: usize = 5;
|
||||||
let rows: Vec<(PathBuf, String, String, String, Option<u32>, Option<PathBuf>)> = self
|
let rows: Vec<(PathBuf, String, String, String, Option<u32>, Option<PathBuf>)> = self
|
||||||
.reports
|
.reports
|
||||||
@@ -2599,22 +2634,21 @@ impl App {
|
|||||||
let lr = Rect::from_min_size(egui::pos2(rect.right() - 260.0, rect.top() + 10.0), egui::vec2(250.0, 28.0));
|
let lr = Rect::from_min_size(egui::pos2(rect.right() - 260.0, rect.top() + 10.0), egui::vec2(250.0, 28.0));
|
||||||
let lang_before = self.cfg.lang;
|
let lang_before = self.cfg.lang;
|
||||||
ui.scope_builder(egui::UiBuilder::new().max_rect(lr).layout(egui::Layout::right_to_left(egui::Align::Center)), |ui| {
|
ui.scope_builder(egui::UiBuilder::new().max_rect(lr).layout(egui::Layout::right_to_left(egui::Align::Center)), |ui| {
|
||||||
let name = |l: Lang| if l == Lang::En { "English" } else { "Français" };
|
egui::ComboBox::from_id_salt("lang").width(110.0).selected_text(self.cfg.lang.name()).show_ui(ui, |ui| {
|
||||||
egui::ComboBox::from_id_salt("lang").width(110.0).selected_text(name(self.cfg.lang)).show_ui(ui, |ui| {
|
for l in Lang::ALL {
|
||||||
for l in [Lang::Fr, Lang::En] {
|
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
let (r, _) = ui.allocate_exact_size(egui::vec2(22.0, 14.0), egui::Sense::hover());
|
let (r, _) = ui.allocate_exact_size(egui::vec2(22.0, 14.0), egui::Sense::hover());
|
||||||
paint_flag(ui.painter(), r, if l == Lang::En { 1 } else { 0 });
|
paint_flag(ui.painter(), r, l.index());
|
||||||
ui.selectable_value(&mut self.cfg.lang, l, name(l));
|
ui.selectable_value(&mut self.cfg.lang, l, l.name());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let (r, _) = ui.allocate_exact_size(egui::vec2(24.0, 16.0), egui::Sense::hover());
|
let (r, _) = ui.allocate_exact_size(egui::vec2(24.0, 16.0), egui::Sense::hover());
|
||||||
paint_flag(ui.painter(), r, if self.cfg.lang == Lang::En { 1 } else { 0 });
|
paint_flag(ui.painter(), r, self.cfg.lang.index());
|
||||||
ui.label(RichText::new("Language").strong());
|
ui.label(RichText::new("Language").strong());
|
||||||
});
|
});
|
||||||
// taille de l'interface
|
// taille de l'interface
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let sr = lr.translate(egui::vec2(0.0, 34.0));
|
let sr = lr.translate(egui::vec2(0.0, 34.0));
|
||||||
ui.scope_builder(egui::UiBuilder::new().max_rect(sr).layout(egui::Layout::right_to_left(egui::Align::Center)), |ui| {
|
ui.scope_builder(egui::UiBuilder::new().max_rect(sr).layout(egui::Layout::right_to_left(egui::Align::Center)), |ui| {
|
||||||
let name = |v: u32| if v == 0 { "Auto".to_string() } else { format!("{v} %") };
|
let name = |v: u32| if v == 0 { "Auto".to_string() } else { format!("{v} %") };
|
||||||
@@ -2623,15 +2657,11 @@ impl App {
|
|||||||
ui.selectable_value(&mut self.cfg.ui_scale, v, name(v));
|
ui.selectable_value(&mut self.cfg.ui_scale, v, name(v));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
ui.label(RichText::new("Interface").strong()).on_hover_text(if en {
|
ui.label(RichText::new(self.t("Interface", "Interface")).strong()).on_hover_text(i18n::tr(lang, "Taille des textes et des boutons du launcher. Auto : suit la taille de la fenêtre.", "Size of the launcher's text and buttons. Auto: follows the window size."));
|
||||||
"Size of the launcher's text and buttons. Auto: follows the window size."
|
|
||||||
} else {
|
|
||||||
"Taille des textes et des boutons du launcher. Auto : suit la taille de la fenêtre."
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
// changer de langue change aussi de version de la musique
|
// changer de langue change aussi de version de la musique
|
||||||
if self.cfg.lang != lang_before {
|
if self.cfg.lang != lang_before {
|
||||||
self.player.set_track(if self.cfg.lang == Lang::En { 1 } else { 0 });
|
self.player.set_track(self.cfg.lang.index());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2686,7 +2716,7 @@ impl App {
|
|||||||
self.config_open = Some(!open);
|
self.config_open = Some(!open);
|
||||||
}
|
}
|
||||||
ui.add_space(10.0);
|
ui.add_space(10.0);
|
||||||
coffee_link(ui, self.cfg.lang == Lang::En);
|
coffee_link(ui, self.cfg.lang);
|
||||||
ui.min_rect().left()
|
ui.min_rect().left()
|
||||||
})
|
})
|
||||||
.inner;
|
.inner;
|
||||||
@@ -2720,10 +2750,10 @@ impl App {
|
|||||||
/// avancement de la tâche en cours (création du pack HD) : barre quand le nombre d'images est connu
|
/// avancement de la tâche en cours (création du pack HD) : barre quand le nombre d'images est connu
|
||||||
fn progress_bar(&self, ui: &mut egui::Ui, width: f32) {
|
fn progress_bar(&self, ui: &mut egui::Ui, width: f32) {
|
||||||
let Some(p) = &self.progress else { return };
|
let Some(p) = &self.progress else { return };
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let step = if p.steps > 1 { format!("{} {}/{} · ", if en { "step" } else { "étape" }, p.step.max(1), p.steps) } else { String::new() };
|
let step = if p.steps > 1 { format!("{} {}/{} · ", i18n::tr(lang, "étape", "step"), p.step.max(1), p.steps) } else { String::new() };
|
||||||
if p.total == 0 {
|
if p.total == 0 {
|
||||||
ui.label(RichText::new(format!("{step}{}", if en { "preparing…" } else { "préparation…" })).weak());
|
ui.label(RichText::new(format!("{step}{}", i18n::tr(lang, "préparation…", "preparing…"))).weak());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let done = p.done.min(p.total);
|
let done = p.done.min(p.total);
|
||||||
@@ -2731,13 +2761,11 @@ impl App {
|
|||||||
if done >= 3 && done < p.total {
|
if done >= 3 && done < p.total {
|
||||||
let left = p.started.elapsed().as_secs_f64() / done as f64 * (p.total - done) as f64;
|
let left = p.started.elapsed().as_secs_f64() / done as f64 * (p.total - done) as f64;
|
||||||
let m = (left / 60.0).round() as u64;
|
let m = (left / 60.0).round() as u64;
|
||||||
text += &match (m, en) {
|
let dur = if m < 60 { format!("{m} min") } else { format!("{} h {:02}", m / 60, m % 60) };
|
||||||
(0, false) => " · moins d'une minute".to_string(),
|
text += &if m == 0 {
|
||||||
(0, true) => " · under a minute".to_string(),
|
i18n::tr(lang, " · moins d'une minute", " · under a minute").to_string()
|
||||||
(m, false) if m < 60 => format!(" · encore ≈ {m} min"),
|
} else {
|
||||||
(m, true) if m < 60 => format!(" · ≈ {m} min left"),
|
i18n::tr(lang, " · encore ≈ {d}", " · ≈ {d} left").replace("{d}", &dur)
|
||||||
(m, false) => format!(" · encore ≈ {} h {:02}", m / 60, m % 60),
|
|
||||||
(m, true) => format!(" · ≈ {} h {:02} left", m / 60, m % 60),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
ui.add(egui::ProgressBar::new(done as f32 / p.total as f32).desired_width(width).text(text));
|
ui.add(egui::ProgressBar::new(done as f32 / p.total as f32).desired_width(width).text(text));
|
||||||
@@ -2745,14 +2773,13 @@ impl App {
|
|||||||
|
|
||||||
/// lecture/pause (dessiné : ▶ n'existe pas dans la police), VF / VUS, muet au prochain démarrage
|
/// lecture/pause (dessiné : ▶ n'existe pas dans la police), VF / VUS, muet au prochain démarrage
|
||||||
fn music_controls(&mut self, ui: &mut egui::Ui) {
|
fn music_controls(&mut self, ui: &mut egui::Ui) {
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let playing = self.player.playing;
|
let playing = self.player.playing;
|
||||||
let (r, resp) = ui.allocate_exact_size(egui::vec2(28.0, 22.0), egui::Sense::click());
|
let (r, resp) = ui.allocate_exact_size(egui::vec2(28.0, 22.0), egui::Sense::click());
|
||||||
let resp = resp.on_hover_cursor(egui::CursorIcon::PointingHand).on_hover_text(match (playing, en) {
|
let resp = resp.on_hover_cursor(egui::CursorIcon::PointingHand).on_hover_text(if playing {
|
||||||
(true, false) => "Mettre la musique en pause",
|
i18n::tr(lang, "Mettre la musique en pause", "Pause the music")
|
||||||
(true, true) => "Pause the music",
|
} else {
|
||||||
(false, false) => "Jouer la musique",
|
i18n::tr(lang, "Jouer la musique", "Play the music")
|
||||||
(false, true) => "Play the music",
|
|
||||||
});
|
});
|
||||||
let p = ui.painter();
|
let p = ui.painter();
|
||||||
p.rect_filled(r, CornerRadius::same(5), if resp.hovered() { BTN_HOVER } else { BTN });
|
p.rect_filled(r, CornerRadius::same(5), if resp.hovered() { BTN_HOVER } else { BTN });
|
||||||
@@ -2773,12 +2800,13 @@ impl App {
|
|||||||
}
|
}
|
||||||
ui.add_space(4.0);
|
ui.add_space(4.0);
|
||||||
for i in 0..music::TRACKS.len() {
|
for i in 0..music::TRACKS.len() {
|
||||||
let tip = match (i, en) {
|
let tip = [
|
||||||
(0, false) => "Version française",
|
i18n::tr(lang, "Version française", "French version"),
|
||||||
(0, true) => "French version",
|
i18n::tr(lang, "Version anglaise (US)", "English (US) version"),
|
||||||
(_, false) => "Version anglaise (US)",
|
i18n::tr(lang, "Version allemande", "German version"),
|
||||||
(_, true) => "English (US) version",
|
i18n::tr(lang, "Version espagnole", "Spanish version"),
|
||||||
};
|
i18n::tr(lang, "Version polonaise", "Polish version"),
|
||||||
|
][i.min(4)];
|
||||||
if flag_button(ui, i, self.player.track == i, tip).clicked() {
|
if flag_button(ui, i, self.player.track == i, tip).clicked() {
|
||||||
self.player.set_track(i);
|
self.player.set_track(i);
|
||||||
}
|
}
|
||||||
@@ -2788,19 +2816,15 @@ impl App {
|
|||||||
ui.spacing_mut().slider_width = 90.0;
|
ui.spacing_mut().slider_width = 90.0;
|
||||||
let vol = ui
|
let vol = ui
|
||||||
.add(egui::Slider::new(&mut self.cfg.music_volume, 0..=100).show_value(false))
|
.add(egui::Slider::new(&mut self.cfg.music_volume, 0..=100).show_value(false))
|
||||||
.on_hover_text(format!("{} {} %", if en { "Volume" } else { "Volume :" }, self.cfg.music_volume));
|
.on_hover_text(format!("{} {} %", i18n::tr(lang, "Volume :", "Volume"), self.cfg.music_volume));
|
||||||
if vol.changed() {
|
if vol.changed() {
|
||||||
self.player.set_volume(self.cfg.music_volume);
|
self.player.set_volume(self.cfg.music_volume);
|
||||||
}
|
}
|
||||||
ui.add_space(6.0);
|
ui.add_space(6.0);
|
||||||
// couper aussi tout de suite, et reprendre si on décoche
|
// couper aussi tout de suite, et reprendre si on décoche
|
||||||
if ui
|
if ui
|
||||||
.checkbox(&mut self.cfg.music_mute, if en { "Mute" } else { "Muet" })
|
.checkbox(&mut self.cfg.music_mute, i18n::tr(lang, "Muet", "Mute"))
|
||||||
.on_hover_text(if en {
|
.on_hover_text(i18n::tr(lang, "Coupe la musique maintenant et aux prochains démarrages", "Stops the music now and at the next launches"))
|
||||||
"Stops the music now and at the next launches"
|
|
||||||
} else {
|
|
||||||
"Coupe la musique maintenant et aux prochains démarrages"
|
|
||||||
})
|
|
||||||
.changed()
|
.changed()
|
||||||
{
|
{
|
||||||
if self.cfg.music_mute {
|
if self.cfg.music_mute {
|
||||||
@@ -2955,6 +2979,34 @@ impl App {
|
|||||||
"Traduit TUCKER.EXE et INTRO.EXE en C, puis compile. Quelques minutes la première fois.",
|
"Traduit TUCKER.EXE et INTRO.EXE en C, puis compile. Quelques minutes la première fois.",
|
||||||
"Translates TUCKER.EXE and INTRO.EXE to C, then compiles. Takes a few minutes the first time.",
|
"Translates TUCKER.EXE and INTRO.EXE to C, then compiles. Takes a few minutes the first time.",
|
||||||
)).weak());
|
)).weak());
|
||||||
|
// version du jeu à compiler : seule la française est prise en charge pour l'instant (adresses du moteur
|
||||||
|
// dans runtime/addr_fr.h) ; les autres sont montrées pour la suite, sans effet
|
||||||
|
ui.horizontal(|ui| {
|
||||||
|
let lang = self.cfg.lang;
|
||||||
|
ui.label(i18n::tr(lang, "Version du jeu", "Game version"));
|
||||||
|
egui::ComboBox::from_id_salt("game_version").selected_text(Lang::Fr.name()).show_ui(ui, |ui| {
|
||||||
|
for l in Lang::ALL {
|
||||||
|
let ok = l == Lang::Fr;
|
||||||
|
ui.add_enabled_ui(ok, |ui| {
|
||||||
|
ui.horizontal(|ui| {
|
||||||
|
let (r, _) = ui.allocate_exact_size(egui::vec2(22.0, 14.0), egui::Sense::hover());
|
||||||
|
paint_flag(ui.painter(), r, l.index());
|
||||||
|
let text = if ok {
|
||||||
|
l.name().to_string()
|
||||||
|
} else {
|
||||||
|
format!("{} ({})", l.name(), i18n::tr(lang, "bientôt", "coming soon"))
|
||||||
|
};
|
||||||
|
let _ = ui.selectable_label(ok, text);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.response
|
||||||
|
.on_hover_text(self.t(
|
||||||
|
"Langue de votre CD. Pour l'instant, seule la version française du jeu se compile : les autres versions (anglaise, allemande, espagnole, polonaise) arriveront plus tard.",
|
||||||
|
"Language of your CD. For now, only the French version of the game can be built: the other versions (English, German, Spanish, Polish) will come later.",
|
||||||
|
));
|
||||||
ui.horizontal_wrapped(|ui| {
|
ui.horizontal_wrapped(|ui| {
|
||||||
let can = !busy && c.can_build();
|
let can = !busy && c.can_build();
|
||||||
if ui.add_enabled(can, egui::Button::new(RichText::new(self.t("Générer et compiler", "Generate and build")).strong())).clicked() {
|
if ui.add_enabled(can, egui::Button::new(RichText::new(self.t("Générer et compiler", "Generate and build")).strong())).clicked() {
|
||||||
@@ -2976,14 +3028,12 @@ impl App {
|
|||||||
|
|
||||||
/// ligne sous « Reprendre ma partie » : quelle sauvegarde, avec sa vignette
|
/// ligne sous « Reprendre ma partie » : quelle sauvegarde, avec sa vignette
|
||||||
fn resume_row(&mut self, ui: &mut egui::Ui) {
|
fn resume_row(&mut self, ui: &mut egui::Ui) {
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let tr = |fr: &'static str, e: &'static str| if en { e } else { fr };
|
let tr = |fr: &'static str, e: &'static str| i18n::tr(lang, fr, e);
|
||||||
if self.checks.done && self.checks.built && !self.checks.can_load {
|
if self.checks.done && self.checks.built && !self.checks.can_load {
|
||||||
ui.label(RichText::new(tr(
|
ui.label(RichText::new(tr(
|
||||||
"Le moteur compilé ne sait pas encore charger une sauvegarde au démarrage : recompilez-le \
|
"Le moteur compilé ne sait pas encore charger une sauvegarde au démarrage : recompilez-le quand il sera à jour. En attendant, le jeu démarre normalement.",
|
||||||
quand il sera à jour. En attendant, le jeu démarre normalement.",
|
"The compiled engine cannot load a save at startup yet: rebuild it once it is updated. Until then, the game starts normally.",
|
||||||
"The compiled engine cannot load a save at startup yet: rebuild it once it is updated. \
|
|
||||||
Until then, the game starts normally.",
|
|
||||||
)).color(ACCENT).small());
|
)).color(ACCENT).small());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -2997,10 +3047,8 @@ impl App {
|
|||||||
tr("La dernière jouée", "The last one played").to_string()
|
tr("La dernière jouée", "The last one played").to_string()
|
||||||
} else if slot == saves::AUTO_SLOT {
|
} else if slot == saves::AUTO_SLOT {
|
||||||
format!("{} · {} {loc}", tr("Sauvegarde automatique", "Automatic save"), tr("lieu", "location"))
|
format!("{} · {} {loc}", tr("Sauvegarde automatique", "Automatic save"), tr("lieu", "location"))
|
||||||
} else if en {
|
|
||||||
format!("Save {slot} · location {loc}")
|
|
||||||
} else {
|
} else {
|
||||||
format!("Partie {slot} · lieu {loc}")
|
format!("{} {slot} · {} {loc}", tr("Partie", "Save"), tr("lieu", "location"))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let mut rows: Vec<(u32, u32)> = self.saves.saves.iter().map(|s| (s.slot, s.location)).collect();
|
let mut rows: Vec<(u32, u32)> = self.saves.saves.iter().map(|s| (s.slot, s.location)).collect();
|
||||||
@@ -3040,8 +3088,8 @@ impl App {
|
|||||||
fn play_column(&mut self, ui: &mut egui::Ui) {
|
fn play_column(&mut self, ui: &mut egui::Ui) {
|
||||||
let busy = self.busy != Busy::No;
|
let busy = self.busy != Busy::No;
|
||||||
let c = self.checks.clone();
|
let c = self.checks.clone();
|
||||||
let en = self.cfg.lang == Lang::En;
|
let lang = self.cfg.lang;
|
||||||
let tr = |fr: &'static str, e: &'static str| if en { e } else { fr };
|
let tr = |fr: &'static str, e: &'static str| i18n::tr(lang, fr, e);
|
||||||
card(ui, |ui| {
|
card(ui, |ui| {
|
||||||
title(ui, tr("Prêt à jouer", "Ready to play"));
|
title(ui, tr("Prêt à jouer", "Ready to play"));
|
||||||
ui.add_space(4.0);
|
ui.add_space(4.0);
|
||||||
@@ -3073,7 +3121,7 @@ impl App {
|
|||||||
ui.checkbox(&mut gs.fullscreen, tr("Plein écran", "Fullscreen"));
|
ui.checkbox(&mut gs.fullscreen, tr("Plein écran", "Fullscreen"));
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.label(tr("Filtre", "Filter"));
|
ui.label(tr("Filtre", "Filter"));
|
||||||
let names = if en { ["Sharp", "Smooth", "xBR", "CRT"] } else { ["Net", "Lissé", "xBR", "CRT"] };
|
let names = [i18n::tr(lang, "Net", "Sharp"), i18n::tr(lang, "Lissé", "Smooth"), i18n::tr(lang, "xBR", "xBR"), i18n::tr(lang, "CRT", "CRT")];
|
||||||
for (i, n) in names.iter().enumerate() {
|
for (i, n) in names.iter().enumerate() {
|
||||||
ui.selectable_value(&mut gs.filter, i, *n);
|
ui.selectable_value(&mut gs.filter, i, *n);
|
||||||
}
|
}
|
||||||
@@ -3090,7 +3138,7 @@ impl App {
|
|||||||
));
|
));
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.label(tr("Résolution de la fenêtre", "Window resolution"));
|
ui.label(tr("Résolution de la fenêtre", "Window resolution"));
|
||||||
resolution_combo(ui, gs, screen, en);
|
resolution_combo(ui, gs, screen, lang);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
egui::CollapsingHeader::new(RichText::new(tr("Jeu", "Game")).strong())
|
egui::CollapsingHeader::new(RichText::new(tr("Jeu", "Game")).strong())
|
||||||
@@ -3102,21 +3150,21 @@ impl App {
|
|||||||
));
|
));
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.label(tr("Vitesse de marche de Bud", "Bud's walking speed"));
|
ui.label(tr("Vitesse de marche de Bud", "Bud's walking speed"));
|
||||||
let names = if en { ["Normal", "× 1.5", "× 2"] } else { ["Normale", "× 1,5", "× 2"] };
|
let names = [i18n::tr(lang, "Normale", "Normal"), i18n::tr(lang, "× 1,5", "× 1.5"), i18n::tr(lang, "× 2", "× 2")];
|
||||||
for (i, n) in names.iter().enumerate() {
|
for (i, n) in names.iter().enumerate() {
|
||||||
ui.selectable_value(&mut gs.walk_speed, i, *n);
|
ui.selectable_value(&mut gs.walk_speed, i, *n);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.response
|
.response
|
||||||
.on_hover_text(tr(
|
.on_hover_text(tr(
|
||||||
"Seulement quand Bud marche à ta demande : les scènes, la musique et les voix gardent leur vitesse.",
|
"Seulement quand Bud marche à votre demande : les scènes, la musique et les voix gardent leur vitesse.",
|
||||||
"Only when Bud walks at your request: cutscenes, music and voices keep their speed.",
|
"Only when Bud walks at your request: cutscenes, music and voices keep their speed.",
|
||||||
));
|
));
|
||||||
});
|
});
|
||||||
egui::CollapsingHeader::new(RichText::new(tr("Volumes", "Volume")).strong())
|
egui::CollapsingHeader::new(RichText::new(tr("Volumes", "Volume")).strong())
|
||||||
.default_open(false)
|
.default_open(false)
|
||||||
.show(ui, |ui| {
|
.show(ui, |ui| {
|
||||||
let labels = if en { ["Master", "Music", "Voices", "Effects"] } else { ["Général", "Musique", "Voix", "Bruitages"] };
|
let labels = [i18n::tr(lang, "Général", "Master"), i18n::tr(lang, "Musique", "Music"), i18n::tr(lang, "Voix", "Voices"), i18n::tr(lang, "Bruitages", "Effects")];
|
||||||
egui::Grid::new("volumes").num_columns(2).show(ui, |ui| {
|
egui::Grid::new("volumes").num_columns(2).show(ui, |ui| {
|
||||||
for (i, l) in labels.iter().enumerate() {
|
for (i, l) in labels.iter().enumerate() {
|
||||||
ui.label(*l);
|
ui.label(*l);
|
||||||
@@ -3137,11 +3185,13 @@ impl App {
|
|||||||
ui.label(RichText::new(tr("Compilez d'abord le jeu (étape 3).", "Build the game first (step 3).")).color(BAD));
|
ui.label(RichText::new(tr("Compilez d'abord le jeu (étape 3).", "Build the game first (step 3).")).color(BAD));
|
||||||
} else if let (Some(n), true, false) = (self.resume_target(), c.can_load, self.game_running) {
|
} else if let (Some(n), true, false) = (self.resume_target(), c.can_load, self.game_running) {
|
||||||
let loc = self.save_location(n);
|
let loc = self.save_location(n);
|
||||||
let text = match (n == saves::AUTO_SLOT, en) {
|
let text = if n == saves::AUTO_SLOT {
|
||||||
(true, false) => format!("Démarre sur la sauvegarde automatique (lieu {loc})."),
|
tr("Démarre sur la sauvegarde automatique (lieu {loc}).", "Starts on the automatic save (location {loc}).")
|
||||||
(true, true) => format!("Starts on the automatic save (location {loc})."),
|
.replace("{loc}", &loc.to_string())
|
||||||
(false, false) => format!("Démarre sur la partie {n} (lieu {loc})."),
|
} else {
|
||||||
(false, true) => format!("Starts on save {n} (location {loc})."),
|
tr("Démarre sur la partie {n} (lieu {loc}).", "Starts on save {n} (location {loc}).")
|
||||||
|
.replace("{n}", &n.to_string())
|
||||||
|
.replace("{loc}", &loc.to_string())
|
||||||
};
|
};
|
||||||
ui.label(RichText::new(text).color(ACCENT));
|
ui.label(RichText::new(text).color(ACCENT));
|
||||||
} else if let Some(code) = self.last_exit.filter(|&c| c != 0) {
|
} else if let Some(code) = self.last_exit.filter(|&c| c != 0) {
|
||||||
|
|||||||
@@ -31,10 +31,13 @@ fn mci_query(cmd: &str) -> String {
|
|||||||
|
|
||||||
const ALIAS: &str = "dtr_music";
|
const ALIAS: &str = "dtr_music";
|
||||||
|
|
||||||
/// (étiquette, nom de fichier, contenu) : 0 = VF, 1 = VUS
|
/// (étiquette, nom de fichier, contenu), dans l'ordre des langues du launcher : FR, EN (US), DE, ES, PL
|
||||||
pub const TRACKS: [(&str, &str, &[u8]); 2] = [
|
pub const TRACKS: [(&str, &str, &[u8]); 5] = [
|
||||||
("VF", "double-trouble-vf.mp3", include_bytes!("../assets/music/double-trouble-vf.mp3")),
|
("VF", "double-trouble-vf.mp3", include_bytes!("../assets/music/double-trouble-vf.mp3")),
|
||||||
("VUS", "double-trouble-vus.mp3", include_bytes!("../assets/music/double-trouble-vus.mp3")),
|
("VUS", "double-trouble-vus.mp3", include_bytes!("../assets/music/double-trouble-vus.mp3")),
|
||||||
|
("DE", "double-trouble-de.mp3", include_bytes!("../assets/music/double-trouble-de.mp3")),
|
||||||
|
("ES", "double-trouble-es.mp3", include_bytes!("../assets/music/double-trouble-es.mp3")),
|
||||||
|
("PL", "double-trouble-pl.mp3", include_bytes!("../assets/music/double-trouble-pl.mp3")),
|
||||||
];
|
];
|
||||||
|
|
||||||
pub struct Player {
|
pub struct Player {
|
||||||
@@ -93,7 +96,7 @@ impl Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// à appeler à chaque image : une fois par seconde, regarde si le morceau est fini et enchaîne alors
|
/// à appeler à chaque image : une fois par seconde, regarde si le morceau est fini et enchaîne alors
|
||||||
/// sur l'autre version (VF, VUS, VF…). Renvoie vrai si le morceau a changé.
|
/// sur la version suivante (VF, VUS, DE, ES, PL, puis VF…). Renvoie vrai si le morceau a changé.
|
||||||
pub fn tick(&mut self) -> bool {
|
pub fn tick(&mut self) -> bool {
|
||||||
if !self.playing || !self.open {
|
if !self.playing || !self.open {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ REPO = "https://git.linkatplug.be/linkatplug/DoubleTroubleRecomp"
|
|||||||
PAGES = {
|
PAGES = {
|
||||||
"GUIDE.md": "Guide",
|
"GUIDE.md": "Guide",
|
||||||
"GUIDE.en.md": "Guide-EN",
|
"GUIDE.en.md": "Guide-EN",
|
||||||
|
"GUIDE.de.md": "Anleitung",
|
||||||
|
"GUIDE.es.md": "Guia",
|
||||||
|
"GUIDE.pl.md": "Poradnik",
|
||||||
"SETTINGS.md": "Reglages",
|
"SETTINGS.md": "Reglages",
|
||||||
"SETTINGS.en.md": "Settings",
|
"SETTINGS.en.md": "Settings",
|
||||||
"MODS.md": "Mods",
|
"MODS.md": "Mods",
|
||||||
@@ -62,6 +65,12 @@ an HD background pack and mods.*
|
|||||||
- [Technical documentation](Technical): what we know about the game, how the recomp works; [detailed analysis](Game-analysis).
|
- [Technical documentation](Technical): what we know about the game, how the recomp works; [detailed analysis](Game-analysis).
|
||||||
- [Roadmap](Roadmap)
|
- [Roadmap](Roadmap)
|
||||||
|
|
||||||
|
## 🇩🇪 Deutsch · 🇪🇸 Español · 🇵🇱 Polski
|
||||||
|
|
||||||
|
- **[Vollständige Anleitung](Anleitung)**: installieren, kompilieren, spielen. Technische Dokumente auf Englisch.
|
||||||
|
- **[Guía completa](Guia)**: instalar, compilar, jugar. Documentos técnicos en inglés.
|
||||||
|
- **[Pełny poradnik](Poradnik)**: instalacja, kompilacja, gra. Dokumenty techniczne po angielsku.
|
||||||
|
|
||||||
## En bref / In short
|
## En bref / In short
|
||||||
|
|
||||||
1. Installer / install **Visual Studio Build Tools 2022** (C++), **Python 3.12** (PATH), **Rust**.
|
1. Installer / install **Visual Studio Build Tools 2022** (C++), **Python 3.12** (PATH), **Rust**.
|
||||||
@@ -96,6 +105,11 @@ SIDEBAR = """**DoubleTroubleRecomp**
|
|||||||
- [Game analysis](Game-analysis)
|
- [Game analysis](Game-analysis)
|
||||||
- [Roadmap](Roadmap)
|
- [Roadmap](Roadmap)
|
||||||
|
|
||||||
|
🇩🇪 🇪🇸 🇵🇱
|
||||||
|
- [Anleitung](Anleitung)
|
||||||
|
- [Guía](Guia)
|
||||||
|
- [Poradnik](Poradnik)
|
||||||
|
|
||||||
[Code source]({repo})
|
[Code source]({repo})
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||