diff --git a/docs/GUIDE.en.md b/docs/GUIDE.en.md index 9cd28f9..b0f8a10 100644 --- a/docs/GUIDE.en.md +++ b/docs/GUIDE.en.md @@ -228,7 +228,7 @@ Display options only apply to the session; lasting settings live in `settings.in | Key | Effect | |---|---| -| **F12** | settings menu: volumes, full screen, resolution, filter, 4:3, sync, HD pack (backgrounds, characters and objects), quit the game | +| **F12** | settings menu: volumes, full screen, resolution, filter, 4:3, sync, HD pack (backgrounds, characters and objects, action bar), quit the game | | **Esc** | closes the F12 menu (otherwise, the original game's key) | | **F11** or **Alt+Enter** | full screen / window | | **F10** | HD pack on / off, with a fade (to compare with the original picture); a bubble confirms | @@ -264,7 +264,7 @@ The game always draws its picture at 320×200; the graphics card then scales it The HD pack replaces the room backgrounds (320×200) on screen with high-definition pictures, and, if the pack has them, Bud, the characters, the objects and the cursor ([HD sprites](TEXTURES.en.md#i-hd-characters-and-objects-sprites)). -Texts and the action panel stay the game's own. The pictures are made +The action bar (verbs and background) goes HD too; texts stay the game's own. The pictures are made **on your PC from your copy**: nothing is downloaded or distributed. > ⚠️ **For now: HD backgrounds yes, HD sprites no.** HD backgrounds look good, but HD characters diff --git a/docs/GUIDE.md b/docs/GUIDE.md index 8bcf6c1..72ec506 100644 --- a/docs/GUIDE.md +++ b/docs/GUIDE.md @@ -234,7 +234,7 @@ Les options d'affichage ne valent que pour la session ; les réglages durables s | Touche | Effet | |---|---| -| **F12** | menu des réglages : volumes, plein écran, résolution, filtre, 4:3, synchro, pack HD (décors, personnages et objets), « Quitter le jeu » | +| **F12** | menu des réglages : volumes, plein écran, résolution, filtre, 4:3, synchro, pack HD (décors, personnages et objets, barre d'actions), « Quitter le jeu » | | **Échap** | ferme le menu F12 (sinon, touche du jeu d'origine) | | **F11** ou **Alt+Entrée** | plein écran / fenêtre | | **F10** | pack HD activé / désactivé, avec un fondu (pour comparer avec l'image d'origine) ; une bulle confirme | @@ -270,7 +270,7 @@ Le jeu calcule toujours son image en 320×200, puis la carte graphique l'agrandi Le pack HD remplace à l'écran les décors des pièces (320×200) par des images haute définition, et, si le pack les contient, Bud, les personnages, les objets et le curseur ([sprites HD](TEXTURES.md#i-personnages-et-objets-hd-sprites)). -Les textes et le panneau d'actions restent ceux du jeu. Les images sont +La barre d'actions (verbes et fond) passe aussi en HD ; les textes restent ceux du jeu. Les images sont créées **sur votre PC à partir de votre copie** : rien n'est téléchargé ni distribué. > ⚠️ **Pour le moment : décors HD oui, sprites HD non.** Les décors HD rendent bien, mais les diff --git a/docs/MODS.en.md b/docs/MODS.en.md index c264811..934a8b3 100644 --- a/docs/MODS.en.md +++ b/docs/MODS.en.md @@ -79,7 +79,8 @@ The engine needs no knowledge of the game, and an incomplete pack works: a backg stays at 320×200. The `nearest`, `smooth` and `xbr` filters apply to the game layer. The `crt` filter shows the original picture, without the HD pack. The **F10** key turns the whole pack on or off during play, with a fade (key `hd_pack`, saved). In the F12 menu, "Pack HD (mods)" does the same; below it, "Décors HD" (HD backgrounds, `hd_decors`) and -"Personnages et objets HD" (HD characters and objects, `hd_sprites`) turn off only part of it, for +"Personnages et objets HD" (HD characters and objects, `hd_sprites`) and "Barre d'actions HD" (HD action +bar, `hd_panel`) turn off only part of it, for example to keep the HD backgrounds with the original sprites. ### Rules for the images @@ -122,7 +123,7 @@ This command exports the backgrounds as 320×200 PNGs. Upscale them with the too `--echelle 2` or `--echelle 4` (scale) directly produces a Scale2x upscale, without blur, to try a pack right away. `--motif` (pattern) selects the files, as a comma-separated list (default: `LOC*` and the 24 still pictures of the cutscenes and part screens: `CLIO1`, `MAP1`, `NEWS1`, `PT1BAK`…; full list: -`CINEMATIQUES` in `tools/hd_export.py`). The engine shows them in HD like the backgrounds. +`CINEMATIQUES` in `tools/hd_export.py`; plus the action bar `PANEL1`, `PANEL2`). The engine shows them in HD like the backgrounds. ## HD sprites @@ -187,6 +188,17 @@ python tools/hd_export.py ..\extracted\iso\TUCKER mods\hd_upscayl\hd --sans-deco palette, then corrected in game. The result is faithful for the colours, a little less so for the outlines of objects whose palette differs a lot. +## HD action bar + +The action bar (verbs and inventory) and the game's options panel come from two 320×200 sheets: +`PANEL1.PCX` (verbs as text) and `PANEL2.PCX` (verbs as icons). The game copies bands of rows from +them under the background, onto the bottom 60 rows of the screen; the options panel lays several of +them on top of each other, from both sheets. With `hd/PANEL1.png` and `hd/PANEL2.png` (same framing as +the sheet, 1280×800 for ×4), the engine matches each screen row with its sheet row and draws the +matching HD bands; whatever the game draws on top (inventory objects, action text, cursor) stays the +game's own or goes through the HD sprites. `hd_export.py` exports them by default with the +backgrounds. Setting: "Barre d'actions HD" (HD action bar) in F12 (`hd_panel`). + ## For the launcher - Listing the mods: subfolders of `mods/` whose name starts with neither `_` nor `.`, with `mod.ini` for @@ -194,6 +206,7 @@ python tools/hd_export.py ..\extracted\iso\TUCKER mods\hd_upscayl\hd --sans-deco - Enabling or disabling a mod: write the list into `[mods] disabled` in `settings.ini`. The list is taken into account on the next launch. - HD pack on/off: `[display] hd_pack` key, also adjustable in game (F10, or F12). Sub-settings: `hd_decors` - (HD backgrounds) and `hd_sprites` (HD characters and objects), no effect if `hd_pack=0`. + (HD backgrounds), `hd_sprites` (HD characters and objects) and `hd_panel` (HD action bar), no effect + if `hd_pack=0`. - A mod has HD sprites if it contains `hd/SHEETS/*.png` or `hd/SPRITES/*.png`. - Options for a single session: `--mods FOLDER`, `--sans-mods`, `--sans-hd`. diff --git a/docs/SETTINGS.en.md b/docs/SETTINGS.en.md index d773ea0..cf8b351 100644 --- a/docs/SETTINGS.en.md +++ b/docs/SETTINGS.en.md @@ -44,6 +44,7 @@ vsync=0 hd_pack=1 hd_decors=1 hd_sprites=1 +hd_panel=1 [audio] master_volume=100 @@ -69,9 +70,10 @@ disabled= | `filter` | `nearest`, `smooth`, `xbr`, `crt` | `nearest` | Picture filter (see below) | | `aspect_43` | `0` / `1` | `1` | `1`: 320×200 picture stretched to 4:3, as on a VGA monitor. `0`: square pixels (16:10) | | `vsync` | `0` / `1` | `0` | Vertical sync | -| `hd_pack` | `0` / `1` | `1` | HD pack provided by mods (see [MODS.en.md](MODS.en.md)): master switch for the next two keys. No effect if no mod provides HD images, nor with the `crt` filter | +| `hd_pack` | `0` / `1` | `1` | HD pack provided by mods (see [MODS.en.md](MODS.en.md)): master switch for the next three keys. No effect if no mod provides HD images, nor with the `crt` filter | | `hd_decors` | `0` / `1` | `1` | The pack's HD backgrounds | | `hd_sprites` | `0` / `1` | `1` | The pack's HD characters, objects and cursor (sprites) | +| `hd_panel` | `0` / `1` | `1` | The game's action bar and options panel in HD (the pack's `PANEL1`, `PANEL2`) | Filters: @@ -104,8 +106,8 @@ the ear. | `dir` | path | empty | Mods folder. Empty: `mods` next to the executable, otherwise `mods` in the parent folder (the case of `build\tucker.exe`), otherwise `mods` in the current folder | | `disabled` | comma-separated names | empty | Mods (folder names) to ignore, for example `disabled=hd_upscayl,voix_fr` | -Mods are read at startup: a change to `[mods]` takes effect on the next launch. `hd_pack`, `hd_decors` and -`hd_sprites`, however, apply immediately from the F12 menu; the F10 key toggles `hd_pack` during play, with a +Mods are read at startup: a change to `[mods]` takes effect on the next launch. `hd_pack`, `hd_decors`, +`hd_sprites` and `hd_panel`, however, apply immediately from the F12 menu; the F10 key toggles `hd_pack` during play, with a fade. The mod format is described in [MODS.en.md](MODS.en.md). ## Command line diff --git a/docs/TEXTURES.en.md b/docs/TEXTURES.en.md index 2db4c8e..0454ca6 100644 --- a/docs/TEXTURES.en.md +++ b/docs/TEXTURES.en.md @@ -45,7 +45,8 @@ Contents: | **Room backgrounds** (`LOC01` to `LOC82`, 122 images) | ✅ yes, this is what the tutorial covers | | Still pictures of the cutscenes and part screens (pyramid, maps, newspapers, "PART ONE"…, 24 images) | ✅ yes, exported and upscaled with the backgrounds | | Characters (Bud, Fester…), animated objects, cursor, inventory | ✅ yes: [section I](#i-hd-characters-and-objects-sprites) | -| Text, speech bubbles, action panel | ❌ no (they stay the game's own) | +| Action bar (background, verbs) and options panel (`PANEL1`, `PANEL2`) | ✅ yes, exported and upscaled with the backgrounds (**Action bar** box) | +| Text, speech bubbles, current action text | ❌ no (they stay the game's own) | How it works, in one sentence: the game still runs at 320×200; on every frame, the engine finds the background on screen and shows your HD image in its place, wherever the game hasn't drawn anything on @@ -388,10 +389,11 @@ backgrounds', because the object sheet has its own palette. | Black or flickering screens while the pack is being made, or a frozen PC | The graphics driver failed under Upscayl's load. Close games and 3D apps, update the driver, then resume with **Repair** (below); the export stops by itself after three failures in a row. On a modest PC, pick `upscayl-lite-4x`. | | Pictures are missing after a crash or an interrupted export | Failed pictures are removed from the pack (the game keeps the original). **Repair** button on the pack's line, or: `python tools\hd_export.py "C:\Games\TUCKER" mods\hd_upscayl\hd --reparer --upscayl `. | | The pack is created but stays empty / Vulkan error in the log | Update your graphics driver; open Upscayl on its own to check that it works. On a laptop with two GPUs, pick the dedicated one in Upscayl's settings. | +| The action bar or the cutscenes stay pixelated | The pack predates their addition (December 5, 2026): create it again with **Backgrounds** ticked (same model). Also check the **Action bar** box. | | My image doesn't show in game | Exact name (`LOC01.png`, not `LOC01_upscayl…png`); `mods\\hd\` folder; mod ticked; **HD pack** and **Backgrounds** ticked; a filter other than CRT; 16:10 image. | | The image is offset or "bleeds" around characters | The framing changed (crop, border, ratio). Start again from the export and keep the whole image. | | A vertical seam in the middle of a scrolling room | The `A`/`B`… pieces weren't processed the same way; redo them with the same tool and size. | -| Characters and objects stay pixelated | The pack doesn't have HD sprites (yet): **+ HD sprites** button on its line ([section I](#i-hd-characters-and-objects-sprites)); check **Characters and objects**. Text and the action panel always stay the game's own. | +| Characters and objects stay pixelated | The pack doesn't have HD sprites (yet): **+ HD sprites** button on its line ([section I](#i-hd-characters-and-objects-sprites)); check **Characters and objects**. Text always stays the game's own. | | A rectangle or a different tint around an object | Backgrounds and sprites made with two different models: redo the sprites with the backgrounds' model, in the same mod. | | Rooms load slowly, the game uses a lot of memory | Images beyond 2560×1600 cost memory with no visible gain: stay at ×4 (1280×800) or ×8. | | I want the original back | Untick **HD pack** (or F10 / F12 in game); or rename the mod folder with a leading `_`. | diff --git a/docs/TEXTURES.md b/docs/TEXTURES.md index c5df841..0fa45dd 100644 --- a/docs/TEXTURES.md +++ b/docs/TEXTURES.md @@ -45,7 +45,8 @@ Sommaire : | **Décors des pièces** (`LOC01` à `LOC82`, 122 images) | ✅ oui, c'est l'objet de ce tutoriel | | Images fixes des cinématiques et écrans de partie (pyramide, cartes, journaux, « PART ONE »…, 24 images) | ✅ oui, exportées et agrandies avec les décors | | Personnages (Bud, Fester…), objets animés, curseur, inventaire | ✅ oui : [section I](#i-personnages-et-objets-hd-sprites) | -| Textes, bulles de dialogue, panneau d'actions | ❌ non (restent ceux du jeu) | +| Barre d'actions (fond, verbes) et panneau d'options (`PANEL1`, `PANEL2`) | ✅ oui, exportés et agrandis avec les décors (case **Barre d'actions**) | +| Textes, bulles de dialogue, texte de l'action en cours | ❌ non (restent ceux du jeu) | Comment ça marche, en une phrase : le jeu tourne toujours en 320×200 ; à chaque image, le moteur repère le décor affiché et montre à sa place votre image HD, partout où le jeu n'a rien dessiné @@ -391,10 +392,11 @@ que ceux des décors, parce que la planche d'objets a sa propre palette. | Écrans noirs ou qui clignotent pendant la création du pack, voire PC figé | Le pilote de la carte graphique a décroché sous la charge d'Upscayl. Fermez les jeux et applis 3D, mettez à jour le pilote, puis reprenez avec **Réparer** (ci-dessous) ; l'export s'arrête de lui-même après trois échecs de suite. Sur un petit PC, choisissez `upscayl-lite-4x`. | | Des images manquent après un plantage ou un export interrompu | Les images ratées sont retirées du pack (le jeu garde l'original). Bouton **Réparer** sur la ligne du pack, ou : `python tools\hd_export.py "C:\Jeux\TUCKER" mods\hd_upscayl\hd --reparer --upscayl `. | | Le pack se crée mais reste vide / erreur Vulkan dans le journal | Mettez à jour le pilote de la carte graphique ; ouvrez Upscayl seul pour vérifier qu'il fonctionne. Sur un PC portable à deux cartes, choisissez la carte dédiée dans les réglages d'Upscayl. | +| La barre d'actions ou les cinématiques restent pixelisées | Le pack date d'avant leur ajout (5 décembre 2026) : recréez-le avec **Décors** coché (même modèle). Vérifiez aussi la case **Barre d'actions**. | | Mon image n'apparaît pas en jeu | Nom exact (`LOC01.png`, pas `LOC01_upscayl…png`) ; dossier `mods\\hd\` ; mod coché ; **Pack HD** et **Décors** cochés ; filtre autre que CRT ; image en 16:10. | | L'image est décalée ou « bave » autour des personnages | Le cadrage a changé (recadrage, bordure, ratio). Repartez de l'export et gardez l'image entière. | | Une couture verticale au milieu d'une pièce qui défile | Les morceaux `A`/`B`… n'ont pas été traités pareil ; refaites-les avec le même outil et la même taille. | -| Personnages et objets restent pixelisés | Le pack n'a pas (encore) les sprites HD : bouton **+ sprites HD** sur sa ligne ([section I](#i-personnages-et-objets-hd-sprites)) ; vérifiez **Personnages et objets**. Textes et panneau d'actions restent toujours ceux du jeu. | +| Personnages et objets restent pixelisés | Le pack n'a pas (encore) les sprites HD : bouton **+ sprites HD** sur sa ligne ([section I](#i-personnages-et-objets-hd-sprites)) ; vérifiez **Personnages et objets**. Les textes restent toujours ceux du jeu. | | Un rectangle ou une teinte différente autour d'un objet | Décors et sprites faits avec deux modèles différents : refaites les sprites avec le modèle des décors, dans le même mod. | | Le chargement des pièces est lent, le jeu prend beaucoup de mémoire | Les images au-delà de 2560×1600 coûtent de la mémoire sans gain visible : restez en ×4 (1280×800) ou ×8. | | Je veux revenir à l'original | Décochez **Pack HD** (ou F10 / F12 en jeu) ; ou renommez le dossier du mod avec un `_` devant. | diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 8118d4d..3684a72 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -943,6 +943,10 @@ impl App { "Experimental, still buggy (cut-off pictures, missing characters): untick for now.", )); ui.label(RichText::new(tr("(expérimental)", "(experimental)")).color(ACCENT).small()); + ui.checkbox(&mut self.gs.hd_panel, tr("Barre d'actions", "Action bar")).on_hover_text(tr( + "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).", + )); }); }); if self.gs.filter == 3 && self.gs.hd_pack { diff --git a/launcher/src/settings.rs b/launcher/src/settings.rs index 2f9dc61..7ae9524 100644 --- a/launcher/src/settings.rs +++ b/launcher/src/settings.rs @@ -21,6 +21,8 @@ pub struct GameSettings { pub hd_pack: bool, pub hd_decors: bool, pub hd_sprites: bool, + /// barre d'actions HD (PANEL1/PANEL2 du pack) + pub hd_panel: bool, pub vol: [u32; 4], pub mods_enabled: bool, /// dossier des mods ; vide = détection automatique par le jeu @@ -43,6 +45,7 @@ impl Default for GameSettings { hd_pack: true, hd_decors: true, hd_sprites: true, + hd_panel: true, vol: [100; 4], mods_enabled: true, mods_dir: String::new(), @@ -116,6 +119,7 @@ impl GameSettings { ("display", "hd_pack") => s.hd_pack = parse_bool(v).unwrap_or(s.hd_pack), ("display", "hd_decors") => s.hd_decors = parse_bool(v).unwrap_or(s.hd_decors), ("display", "hd_sprites") => s.hd_sprites = parse_bool(v).unwrap_or(s.hd_sprites), + ("display", "hd_panel") => s.hd_panel = parse_bool(v).unwrap_or(s.hd_panel), ("mods", "enabled") => s.mods_enabled = parse_bool(v).unwrap_or(s.mods_enabled), ("mods", "dir") => s.mods_dir = v.to_string(), ("mods", "disabled") => { @@ -145,6 +149,7 @@ impl GameSettings { ("display", "hd_pack", b(self.hd_pack)), ("display", "hd_decors", b(self.hd_decors)), ("display", "hd_sprites", b(self.hd_sprites)), + ("display", "hd_panel", b(self.hd_panel)), ]; for (i, k) in VOLUMES.iter().enumerate() { e.push(("audio", k, self.vol[i].to_string()));