From 559741cce7f6c9d1cb4ef241c31364a445b4822d Mon Sep 17 00:00:00 2001 From: Linkatplug Date: Sat, 5 Dec 2026 08:59:04 +0100 Subject: [PATCH] Launcher : l'export des images d'origine inclut personnages et objets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit « Exporter les décors d'origine » n'exportait que les décors (LOC*.PCX) : impossible de retoucher un personnage avec son propre outil. Le bouton devient « Exporter les images d'origine » : décors d'abord, puis planches PCX et fichiers SPR dans SHEETS\ et SPRITES\ (hd_export.py --sans-decors --planches --sprites, 2 à 3 minutes). Texte du launcher et guides (GUIDE, TEXTURES, FR/EN) mis à jour. Co-Authored-By: Claude Opus 5.5 --- docs/GUIDE.en.md | 8 +++++--- docs/GUIDE.md | 8 +++++--- docs/TEXTURES.en.md | 5 +++-- docs/TEXTURES.md | 5 +++-- launcher/src/main.rs | 20 +++++++++++++------- 5 files changed, 29 insertions(+), 17 deletions(-) diff --git a/docs/GUIDE.en.md b/docs/GUIDE.en.md index e6cffc8..101a3bf 100644 --- a/docs/GUIDE.en.md +++ b/docs/GUIDE.en.md @@ -295,11 +295,13 @@ Command line: `python tools\hd_export.py C:\Games\TUCKER mods\hd_upscayl\hd --up ### With the tool of your choice -1. Launcher: **Export original backgrounds**. The 320×200 PNGs go to `mods\_decors_originaux` (the - `_` makes the game ignore that folder) and the folder opens. +1. Launcher: **Export original images**. The backgrounds (320×200 PNGs) go to `mods\_decors_originaux` + (the `_` makes the game ignore that folder), then the characters and objects into its `SHEETS` and + `SPRITES` subfolders (2-3 minutes). The folder opens at the end. 2. Upscale them with anything you like: Upscayl, chaiNNer, waifu2x, Topaz, hand retouching… 3. Launcher: type a name, then **New mod**. The `mods\\hd\` folder is created and opens. -4. Drop the upscaled pictures there **with the same name** (`LOC01.png`), then **Refresh**. +4. Drop the upscaled pictures there **with the same name and subfolder** (`LOC01.png`, + `SHEETS\BUD_1.png`, `SPRITES\A01_04.png`), then **Refresh**. Picture rules: diff --git a/docs/GUIDE.md b/docs/GUIDE.md index daaacee..4a7c477 100644 --- a/docs/GUIDE.md +++ b/docs/GUIDE.md @@ -302,11 +302,13 @@ En ligne de commande : `python tools\hd_export.py C:\Jeux\TUCKER mods\hd_upscayl ### Avec l'outil de votre choix -1. Launcher : **Exporter les décors d'origine**. Les PNG 320×200 arrivent dans - `mods\_decors_originaux` (le `_` fait que le jeu ignore ce dossier) et le dossier s'ouvre. +1. Launcher : **Exporter les images d'origine**. Les décors (PNG 320×200) arrivent dans + `mods\_decors_originaux` (le `_` fait que le jeu ignore ce dossier), puis les personnages et objets + dans ses sous-dossiers `SHEETS` et `SPRITES` (2 à 3 minutes). Le dossier s'ouvre à la fin. 2. Agrandissez-les avec ce que vous voulez : Upscayl, chaiNNer, waifu2x, Topaz, retouche à la main… 3. Launcher : tapez un nom, puis **Nouveau mod**. Le dossier `mods\\hd\` est créé et s'ouvre. -4. Déposez-y les images agrandies, **sous le même nom** (`LOC01.png`), puis **Actualiser**. +4. Déposez-y les images agrandies, **sous le même nom et dans le même sous-dossier** (`LOC01.png`, + `SHEETS\BUD_1.png`, `SPRITES\A01_04.png`), puis **Actualiser**. Règles pour les images : diff --git a/docs/TEXTURES.en.md b/docs/TEXTURES.en.md index e55b277..5a9ff7e 100644 --- a/docs/TEXTURES.en.md +++ b/docs/TEXTURES.en.md @@ -142,8 +142,9 @@ python tools\hd_export.py "C:\Games\TUCKER" mods\hd_upscayl\hd --upscayl digital To work with your own tool, you first need the original backgrounds as PNG files. -**With the launcher:** **Mods & HD backgrounds** card → **Export original backgrounds**. The 122 -images land in `mods\_decors_originaux\` and the folder opens by itself. +**With the launcher:** **Mods & HD backgrounds** card → **Export original images**. The 122 +backgrounds land in `mods\_decors_originaux\`, then the characters and objects in its `SHEETS\` and +`SPRITES\` subfolders (2-3 minutes, see section I); the folder opens by itself at the end. **On the command line:** diff --git a/docs/TEXTURES.md b/docs/TEXTURES.md index 1a063cb..addf4b4 100644 --- a/docs/TEXTURES.md +++ b/docs/TEXTURES.md @@ -144,8 +144,9 @@ python tools\hd_export.py "C:\Jeux\TUCKER" mods\hd_upscayl\hd --upscayl digital- Pour travailler avec votre propre outil, il faut d'abord les décors d'origine en PNG. -**Avec le launcher :** carte **Mods et décors HD** → **Exporter les décors d'origine**. Les 122 -images arrivent dans `mods\_decors_originaux\` et le dossier s'ouvre tout seul. +**Avec le launcher :** carte **Mods et décors HD** → **Exporter les images d'origine**. Les 122 +décors arrivent dans `mods\_decors_originaux\`, puis les personnages et objets dans ses sous-dossiers +`SHEETS\` et `SPRITES\` (2 à 3 minutes, voir la section I) ; le dossier s'ouvre tout seul à la fin. **En ligne de commande :** diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 9a2eec3..443cebf 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -988,14 +988,17 @@ impl App { ui.hyperlink_to(tr("(tutoriel)", "(tutorial)"), textures_guide(en)); }); if ui - .add_enabled(can_create, egui::Button::new(tr("Exporter les décors d'origine", "Export original backgrounds"))) + .add_enabled(can_create, egui::Button::new(tr("Exporter les images d'origine", "Export original images"))) .clicked() { export = true; } ui.label(RichText::new(format!( "{} mods\\{}", - tr("PNG 320×200 à agrandir avec l'outil de votre choix. Dossier :", "320×200 PNGs to upscale with any tool. Folder:"), + tr( + "Décors (PNG 320×200), puis personnages et objets (sous-dossiers SHEETS et SPRITES, 2 à 3 min), à agrandir avec l'outil de votre choix. Dossier :", + "Backgrounds (320×200 PNGs), then characters and objects (SHEETS and SPRITES subfolders, 2-3 min), to upscale with any tool. Folder:", + ), mods::EXPORT_DIR )).weak().small()); ui.horizontal(|ui| { @@ -1006,8 +1009,8 @@ impl App { } }); ui.label(RichText::new(tr( - "Crée mods\\\\hd : déposez-y les PNG agrandis sous le même nom (LOC01.png), image entière, ratio 16:10 (1280×800 par exemple).", - "Creates mods\\\\hd: drop the upscaled PNGs there with the same name (LOC01.png), whole image, 16:10 (e.g. 1280×800).", + "Crée mods\\\\hd : déposez-y les PNG agrandis sous le même nom et dans le même sous-dossier (LOC01.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\\\\hd: drop the upscaled PNGs there with the same name and subfolder (LOC01.png, SHEETS\\BUD_1.png, SPRITES\\A01_04.png), whole image upscaled by the same factor (×4: 1280×800 for a background).", )).weak().small()); if let Some((good, m)) = &self.mod_msg { ui.label(RichText::new(m).color(if *good { OK } else { BAD })); @@ -1039,14 +1042,17 @@ impl App { } } - /// décors d'origine en PNG 320×200 dans mods/_decors_originaux (ignoré par le jeu), puis ouvre le dossier + /// images d'origine en PNG dans mods/_decors_originaux (ignoré par le jeu) : décors 320×200, puis + /// personnages et objets dans SHEETS/ et SPRITES/ ; ouvre le dossier à la fin fn export_originals(&mut self) { let (Some(game), Some(mdir)) = (self.checks.game_dir.clone(), self.mods_dir()) else { return }; let out = mdir.join(mods::EXPORT_DIR); - let cmd = format!("python -I tools\\hd_export.py \"{}\" \"{}\"", game.display(), out.display()); + let base = format!("python -I tools\\hd_export.py \"{}\" \"{}\"", game.display(), out.display()); + // décors d'abord (quelques secondes), puis planches PCX et fichiers SPR (2 à 3 minutes) + let steps = vec![base.clone(), format!("{base} --sans-decors --planches --sprites")]; self.open_after = Some(out); self.mod_msg = None; - self.start_task("hd-export", vec![cmd]); + self.start_task("hd-export", steps); } fn new_mod(&mut self) {