Launcher : résolution de la fenêtre et bouton Réparer ; doc alignée
- Launcher : « Résolution de la fenêtre » en liste (mêmes résolutions que le menu F12, plus celle de l'écran), écrit window_width / window_height à la place du curseur ×N. - Launcher : bouton « Réparer » sur la ligne d'un pack Upscayl (hd_export.py --reparer avec le modèle du pack). - TEXTURES, GUIDE FR/EN : fermer jeux et applis 3D pendant la création du pack, dépannage écrans noirs et images manquantes, 24 images de cinématique faites avec les décors ; résolution et --resolution. - MODS.en, SETTINGS.en : alignés sur53efd91,671b04f,72aafba,d9644faet7d8cb34. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d9644fa8d0
commit
313435132d
10 files changed
+146
-24
No files matched your search
+2
-1
@@ -134,7 +134,8 @@ build\tucker.exe --son
|
||||
| `--son` | enables sound |
|
||||
| `--sans-intro` | skips the intro |
|
||||
| `--intro` | plays the intro only |
|
||||
| `--echelle N` | window scale (default 3: 960×720) |
|
||||
| `--resolution WxH` | window size in pixels (for example `1920x1080`) |
|
||||
| `--echelle N` | old ×N setting (default 3: 960×720) |
|
||||
| `--plein` | starts fullscreen |
|
||||
| `--filtre NAME` | `nearest`, `smooth`, `xbr` or `crt` |
|
||||
| `--sans-mods`, `--sans-hd` | no mods, no HD pack |
|
||||
|
||||
@@ -138,7 +138,8 @@ build\tucker.exe --son
|
||||
| `--son` | active le son |
|
||||
| `--sans-intro` | lance directement le jeu |
|
||||
| `--intro` | ne joue que l'intro |
|
||||
| `--echelle N` | taille de la fenêtre (défaut 3 : 960×720) |
|
||||
| `--resolution LxH` | taille de la fenêtre en pixels (par exemple `1920x1080`) |
|
||||
| `--echelle N` | ancien réglage ×N (défaut 3 : 960×720) |
|
||||
| `--plein` | démarre en plein écran |
|
||||
| `--filtre NOM` | `nearest`, `smooth`, `xbr` ou `crt` |
|
||||
| `--sans-mods`, `--sans-hd` | sans mods, sans pack HD |
|
||||
|
||||
+8
-5
@@ -156,7 +156,7 @@ time.
|
||||
- **Resume my game**: starts straight on a saved game, skipping the intro and the game menu. The last
|
||||
one played by default; the list below lets you pick another one (with its thumbnail), and the
|
||||
launcher shows under **PLAY** which game will be loaded.
|
||||
- **Display**: full screen, filter, 4:3 format, vertical sync, window size.
|
||||
- **Display**: full screen, filter, 4:3 format, vertical sync, window resolution (1280 × 960, 1920 × 1080…).
|
||||
- **Volume**: master, music, voices, sound effects.
|
||||
- **PLAY** starts the game. The launcher stays open and refreshes when you quit.
|
||||
|
||||
@@ -216,7 +216,8 @@ Main options (the option names are French; full list in [SETTINGS.en.md](SETTING
|
||||
| `--son` | enables sound |
|
||||
| `--sans-intro` / `--intro` | skips the intro / plays only the intro |
|
||||
| `--charger N` | starts directly on save `SAVEGM.N`, without the intro (recent engine, see section 11) |
|
||||
| `--plein`, `--fenetre`, `--echelle N` | full screen, window, ×N size |
|
||||
| `--plein`, `--fenetre` | full screen, window |
|
||||
| `--resolution WxH` | W × H pixel window (for example `--resolution 1920x1080`); `--echelle N`: old ×N setting |
|
||||
| `--filtre nearest\|smooth\|xbr\|crt` | picture filter |
|
||||
| `--sans-mods`, `--sans-hd` | no mods, no HD pack |
|
||||
| `-v` | verbose log |
|
||||
@@ -227,7 +228,7 @@ Display options only apply to the session; lasting settings live in `settings.in
|
||||
|
||||
| Key | Effect |
|
||||
|---|---|
|
||||
| **F12** | settings menu: volumes, full screen, size, 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), 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 |
|
||||
@@ -282,7 +283,9 @@ Texts and the action panel stay the game's own. The pictures are made
|
||||
backgrounds are upscaled ×4 in a few minutes; the characters and objects (several thousand
|
||||
images) take much longer. Everything goes into `mods\hd_upscayl` (or `mods\hd_upscayl_<model>`),
|
||||
with **one model for the whole pack**. For an existing background pack: **+ HD sprites** button
|
||||
on its line.
|
||||
on its line. The 24 still pictures of the cutscenes (pyramid, maps, newspapers…) are made with the
|
||||
backgrounds. **Close games and 3D applications while the pack is made**: Upscayl puts a heavy load
|
||||
on the graphics card. If pictures are missing after a crash, **Repair** button on the pack's line.
|
||||
3. Make sure **Enable mods**, **HD pack** and **Backgrounds** are ticked (for now, untick
|
||||
**Characters and objects**: see the box above), then play. Each box can be turned off separately, in game too with F12.
|
||||
|
||||
@@ -407,7 +410,7 @@ Roadmap: [ROADMAP.en.md](ROADMAP.en.md).
|
||||
| **Black screen or the game does not open** | Update the graphics driver (OpenGL 3.3 required). Tick **Verbose log** and relaunch: the launcher log shows the cause. |
|
||||
| **"game exited, code 0"** | That is a normal exit (you quit the game). |
|
||||
| **No HD backgrounds** | Check **Enable mods**, **HD pack**, **Backgrounds** and the mod's checkbox; the **CRT** filter always shows the original backgrounds. |
|
||||
| **Picture too small / too big** | Window size in the launcher or F12, or full screen (F11). |
|
||||
| **Picture too small / too big** | Window resolution in the launcher or F12, or full screen (F11). |
|
||||
| **Odd settings** | Delete `%APPDATA%\DoubleTroubleRecomp\settings.ini`: the game starts again from the defaults. |
|
||||
|
||||
To report a problem: open an issue on the repository with your Windows version, graphics card and
|
||||
|
||||
+9
-5
@@ -161,7 +161,7 @@ Cliquez alors sur **Replier la configuration** (en bas à droite) : la page prin
|
||||
- **Reprendre ma partie** : démarre directement sur une sauvegarde, sans l'intro ni le menu du jeu.
|
||||
Par défaut la dernière jouée ; la liste en dessous permet d'en choisir une autre (avec sa
|
||||
miniature), et le launcher affiche sous **JOUER** la partie qui sera chargée.
|
||||
- **Affichage** : plein écran, filtre, format 4:3, synchronisation verticale, taille de la fenêtre.
|
||||
- **Affichage** : plein écran, filtre, format 4:3, synchronisation verticale, résolution de la fenêtre (1280 × 960, 1920 × 1080…).
|
||||
- **Volumes** : général, musique, voix, bruitages.
|
||||
- **JOUER** lance le jeu. Le launcher reste ouvert et se met à jour quand vous quittez la partie.
|
||||
|
||||
@@ -221,7 +221,8 @@ Options principales (liste complète dans [SETTINGS.md](SETTINGS.md)) :
|
||||
| `--son` | active le son |
|
||||
| `--sans-intro` / `--intro` | saute l'intro / ne joue que l'intro |
|
||||
| `--charger N` | démarre directement sur la sauvegarde `SAVEGM.N`, sans l'intro (moteur récent, voir section 11) |
|
||||
| `--plein`, `--fenetre`, `--echelle N` | plein écran, fenêtre, taille ×N |
|
||||
| `--plein`, `--fenetre` | plein écran, fenêtre |
|
||||
| `--resolution LxH` | fenêtre de L × H pixels (par exemple `--resolution 1920x1080`) ; `--echelle N` : ancien réglage ×N |
|
||||
| `--filtre nearest\|smooth\|xbr\|crt` | filtre d'image |
|
||||
| `--sans-mods`, `--sans-hd` | sans mods, sans pack HD |
|
||||
| `-v` | journal détaillé |
|
||||
@@ -233,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, taille, 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), « 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 |
|
||||
@@ -288,7 +289,10 @@ créées **sur votre PC à partir de votre copie** : rien n'est téléchargé ni
|
||||
Les 122 décors sont agrandis ×4 en quelques minutes ; les personnages et objets (plusieurs
|
||||
milliers d'images) prennent nettement plus longtemps. Le tout va dans `mods\hd_upscayl` (ou
|
||||
`mods\hd_upscayl_<modèle>`), avec **un seul modèle pour tout le pack**.
|
||||
Pour un pack de décors déjà fait : bouton **+ sprites HD** sur sa ligne.
|
||||
Pour un pack de décors déjà fait : bouton **+ sprites HD** sur sa ligne. Les 24 images fixes des
|
||||
cinématiques (pyramide, cartes, journaux…) sont faites avec les décors.
|
||||
**Fermez les jeux et applications 3D pendant la création** : Upscayl sollicite fortement la carte
|
||||
graphique. Si des images manquent après un plantage, bouton **Réparer** sur la ligne du pack.
|
||||
3. Vérifiez que **Activer les mods**, **Pack HD** et **Décors** sont cochés (pour le moment,
|
||||
décochez **Personnages et objets** : voir l'encadré ci-dessus), puis jouez. Chaque case se coupe à part, aussi en jeu avec F12.
|
||||
|
||||
@@ -418,7 +422,7 @@ Feuille de route : [ROADMAP.md](ROADMAP.md).
|
||||
| **Écran noir ou le jeu ne s'ouvre pas** | Mettez à jour le pilote graphique (OpenGL 3.3 requis). Cochez **Journal détaillé** et relancez : le journal du launcher montre la cause. |
|
||||
| **« jeu terminé, code 0 »** | C'est une sortie normale (vous avez quitté le jeu). |
|
||||
| **Pas de décors HD** | Vérifiez **Activer les mods**, **Pack HD**, **Décors** et la case du mod ; le filtre **CRT** affiche toujours les décors d'origine. |
|
||||
| **Image trop petite / trop grande** | Taille de la fenêtre dans le launcher ou F12, ou plein écran (F11). |
|
||||
| **Image trop petite / trop grande** | Résolution de la fenêtre dans le launcher ou F12, ou plein écran (F11). |
|
||||
| **Réglages bizarres** | Supprimez `%APPDATA%\DoubleTroubleRecomp\settings.ini` : le jeu repart des valeurs par défaut. |
|
||||
|
||||
Pour signaler un problème : ouvrez un ticket sur le dépôt avec votre version de Windows, votre
|
||||
|
||||
+17
-2
@@ -120,7 +120,9 @@ python tools/hd_export.py ..\extracted\iso\TUCKER export_png
|
||||
This command exports the backgrounds as 320×200 PNGs. Upscale them with the tool of your choice
|
||||
(retouching by hand, waifu2x, ESRGAN…), then put them in `mods/<name>/hd/` under the same name.
|
||||
`--echelle 2` or `--echelle 4` (scale) directly produces a Scale2x upscale, without blur, to try a pack
|
||||
right away. `--motif` (pattern) selects the files (default `LOC*`).
|
||||
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.
|
||||
|
||||
## HD sprites
|
||||
|
||||
@@ -150,7 +152,10 @@ recognises at drawing time:
|
||||
sheets are freed beyond 48 MB of textures.
|
||||
|
||||
A sprite without an HD image stays as the game drew it. An HD image whose size does not match the
|
||||
export (other layout) is ignored, with an "à réexporter" (re-export) message in the log.
|
||||
export (other layout) is ignored, with an "à réexporter" (re-export) message in the log. A fully
|
||||
transparent HD image (Upscayl sometimes produces one without reporting an error) is ignored too, and a
|
||||
sprite whose HD region is more than 40 % empty keeps its original picture: a character no longer
|
||||
disappears.
|
||||
|
||||
### Creating the HD sprites
|
||||
|
||||
@@ -168,6 +173,16 @@ python tools/hd_export.py ..\extracted\iso\TUCKER mods\hd_upscayl\hd --sans-deco
|
||||
- **Use the same Upscayl model as for the backgrounds**, in the same mod: two different models do not
|
||||
upscale colours the same way, and the objects' background would show as a rectangle over the
|
||||
background.
|
||||
- Upscayl puts a heavy load on the graphics card: on a large batch, the driver can reset (black
|
||||
screens, and in the worst case a PC to restart), and the pictures computed at that moment come out
|
||||
empty. `hd_export.py` therefore goes easy on it: one picture at a time, small tiles (128 px, then 64
|
||||
on retry), a short pause between two pictures, low priority; a picture that comes out empty is
|
||||
retried, then removed from the pack (the game keeps the original), and the export stops if three
|
||||
pictures in a row fail. Close games and 3D applications during the export.
|
||||
- For a pack made before these checks, `--reparer` (repair) redoes only the empty pictures, and also
|
||||
resumes an interrupted export:
|
||||
`python tools/hd_export.py ..\extracted\iso\TUCKER mods\hd_upscayl\hd --reparer --upscayl` (same model
|
||||
as the pack).
|
||||
- The object sheets have their own palette, different from the rooms': upscaling is done with this
|
||||
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.
|
||||
|
||||
+6
-2
@@ -36,6 +36,8 @@ Example:
|
||||
[display]
|
||||
fullscreen=0
|
||||
window_scale=3
|
||||
window_width=0
|
||||
window_height=0
|
||||
filter=xbr
|
||||
aspect_43=1
|
||||
vsync=0
|
||||
@@ -62,7 +64,8 @@ disabled=
|
||||
| Key | Values | Default | Effect |
|
||||
|---|---|---|---|
|
||||
| `fullscreen` | `0` / `1` | `0` | Fullscreen at desktop resolution (without changing the video mode) |
|
||||
| `window_scale` | `1` to `16` | `3` | Window of `320 × N` by `240 × N` (or `200 × N`) pixels. Reduced to the largest size that fits on the screen |
|
||||
| `window_scale` | `1` to `16` | `3` | Window of `320 × N` by `240 × N` (or `200 × N`) pixels, if `window_width` is `0`. Reduced to the largest size that fits on the screen |
|
||||
| `window_width`, `window_height` | `0` to `16384` | `0` | Window size in pixels (for example `1280` and `960`); `0`: `window_scale` is used. Reduced, keeping its shape, if it doesn't fit on the screen. The picture is scaled inside the window as in fullscreen (4:3 or square pixels respected, black bars otherwise). The F12 menu offers the common resolutions that fit on the screen, and the screen's own |
|
||||
| `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 |
|
||||
@@ -117,7 +120,8 @@ without overwriting the choice made in game. To change a setting permanently, it
|
||||
| `--config FILE` | Use this settings file |
|
||||
| `--plein` (fullscreen) | `fullscreen=1` |
|
||||
| `--fenetre` (window) | `fullscreen=0` |
|
||||
| `--echelle N` (scale) | `window_scale=N` |
|
||||
| `--resolution WxH` | `window_width=W`, `window_height=H` (for example `--resolution 1920x1080`) |
|
||||
| `--echelle N` (scale) | `window_scale=N`, `window_width=0`, `window_height=0` |
|
||||
| `--filtre NAME` (filter) | `filter=NAME` |
|
||||
| `--format43 0\|1` | `aspect_43=0\|1` |
|
||||
| `--vsync 0\|1` | `vsync=0\|1` |
|
||||
|
||||
+7
-2
@@ -43,6 +43,7 @@ Contents:
|
||||
| Element | In HD? |
|
||||
|---|---|
|
||||
| **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) |
|
||||
|
||||
@@ -110,7 +111,9 @@ Upscayl won't work, but you can:
|
||||
3. Pick a **model** (see the table). Leave **Backgrounds** ticked; also tick **Characters and
|
||||
objects** for HD sprites (much longer, see [section I](#i-hd-characters-and-objects-sprites)). Then **Create pack**.
|
||||
4. Wait: a few seconds to a few minutes depending on the graphics card. The log (**Log** button, at
|
||||
the bottom) shows progress.
|
||||
the bottom) shows progress. **Close games and 3D applications meanwhile**: Upscayl puts a heavy
|
||||
load on the graphics card. The export goes easy on it (one picture at a time, small tiles, pauses)
|
||||
and stops by itself if the card fails; see [troubleshooting](#troubleshooting).
|
||||
5. The pack appears in the mod list: `hd_upscayl` for the default model, `hd_upscayl_<model>` for the
|
||||
others.
|
||||
6. Make sure **Enable mods**, **HD pack** and **Backgrounds** (and **Characters and objects**) are
|
||||
@@ -143,7 +146,7 @@ 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 images**. The 122
|
||||
backgrounds land in `mods\_decors_originaux\`, then the characters and objects in its `SHEETS\` and
|
||||
backgrounds and the 24 cutscene pictures 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:**
|
||||
@@ -382,6 +385,8 @@ backgrounds', because the object sheet has its own palette.
|
||||
| Problem | Fix |
|
||||
|---|---|
|
||||
| The launcher says "Upscayl is not installed" but it is | Click **Refresh**. Otherwise Upscayl is in a non-standard place: `UPSCAYL_BIN` variable ([section 1](#1-install-upscayl)). |
|
||||
| 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 <pack model>`. |
|
||||
| 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. |
|
||||
| My image doesn't show in game | Exact name (`LOC01.png`, not `LOC01_upscayl…png`); `mods\<name>\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. |
|
||||
|
||||
+7
-2
@@ -43,6 +43,7 @@ Sommaire :
|
||||
| Élément | En HD ? |
|
||||
|---|---|
|
||||
| **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) |
|
||||
|
||||
@@ -112,7 +113,9 @@ Upscayl ne marchera pas, mais vous pouvez :
|
||||
3. Choisissez un **modèle** (voir le tableau). Laissez **Décors** coché ; cochez aussi **Personnages et
|
||||
objets** pour les sprites HD (beaucoup plus long, voir [section I](#i-personnages-et-objets-hd-sprites)). Puis **Créer le pack**.
|
||||
4. Patientez : de quelques secondes à quelques minutes selon la carte graphique. Le journal
|
||||
(bouton **Journal**, en bas) montre l'avancement.
|
||||
(bouton **Journal**, en bas) montre l'avancement. **Fermez les jeux et applications 3D pendant ce
|
||||
temps** : Upscayl sollicite fortement la carte graphique. L'export la ménage (une image à la fois,
|
||||
petits morceaux, pauses) et s'arrête de lui-même si elle décroche ; voir le [dépannage](#dépannage).
|
||||
5. Le pack apparaît dans la liste des mods : `hd_upscayl` pour le modèle par défaut,
|
||||
`hd_upscayl_<modèle>` pour les autres.
|
||||
6. Vérifiez que **Activer les mods**, **Pack HD** et **Décors** (et **Personnages et objets**) sont
|
||||
@@ -145,7 +148,7 @@ 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 images d'origine**. Les 122
|
||||
décors arrivent dans `mods\_decors_originaux\`, puis les personnages et objets dans ses sous-dossiers
|
||||
décors et les 24 images de cinématique 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 :**
|
||||
@@ -385,6 +388,8 @@ que ceux des décors, parce que la planche d'objets a sa propre palette.
|
||||
| Problème | Solution |
|
||||
|---|---|
|
||||
| Le launcher affiche « Upscayl n'est pas installé » alors qu'il l'est | Cliquez **Actualiser**. Sinon Upscayl est à un emplacement non standard : variable `UPSCAYL_BIN` ([section 1](#1-installer-upscayl)). |
|
||||
| É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 <modèle du pack>`. |
|
||||
| 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. |
|
||||
| Mon image n'apparaît pas en jeu | Nom exact (`LOC01.png`, pas `LOC01_upscayl…png`) ; dossier `mods\<nom>\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. |
|
||||
|
||||
+75
-4
@@ -501,6 +501,43 @@ fn play_button(ui: &mut egui::Ui, label: &str, enabled: bool) -> egui::Response
|
||||
}
|
||||
}
|
||||
|
||||
/// résolutions proposées pour la fenêtre : mêmes listes que le menu F12 du jeu (runtime/menu.c)
|
||||
const RESOLUTIONS: &[(u32, u32)] = &[
|
||||
(960, 720), (1280, 960), (1440, 1080), (1600, 1200), (1920, 1440), (2560, 1920), (2880, 2160), // 4:3
|
||||
(1280, 800), (1680, 1050), (1920, 1200), (2560, 1600), // 16:10
|
||||
(1280, 720), (1600, 900), (1920, 1080), (2560, 1440), (3840, 2160), // 16:9
|
||||
];
|
||||
|
||||
/// 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)
|
||||
fn resolution_combo(ui: &mut egui::Ui, gs: &mut settings::GameSettings, screen: Option<(u32, u32)>, en: bool) {
|
||||
let cur = if gs.window_width > 0 && gs.window_height > 0 {
|
||||
(gs.window_width, gs.window_height)
|
||||
} else {
|
||||
(320 * gs.window_scale, if gs.aspect_43 { 240 } else { 200 } * gs.window_scale)
|
||||
};
|
||||
let mut list: Vec<(u32, u32)> =
|
||||
RESOLUTIONS.iter().copied().filter(|&(w, h)| screen.map_or(true, |(sw, sh)| w <= sw && h <= sh)).collect();
|
||||
if let Some(s) = screen {
|
||||
list.push(s);
|
||||
}
|
||||
list.push(cur);
|
||||
list.sort();
|
||||
list.dedup();
|
||||
let label = |r: (u32, u32)| {
|
||||
let note = if Some(r) == screen { if en { " (screen)" } else { " (écran)" } } else { "" };
|
||||
format!("{} × {}{note}", r.0, r.1)
|
||||
};
|
||||
egui::ComboBox::from_id_salt("resolution").selected_text(label(cur)).show_ui(ui, |ui| {
|
||||
for r in list {
|
||||
if ui.selectable_label(r == cur, label(r)).clicked() {
|
||||
gs.window_width = r.0;
|
||||
gs.window_height = r.1;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/// dessine une texture en « cover » (recadrée pour remplir le rectangle), pixels 1:1,2 comme sur un écran 4:3
|
||||
fn paint_cover(p: &egui::Painter, rect: Rect, tex: &egui::TextureHandle, alpha: f32, drift: f32) {
|
||||
paint_cover_in(p, rect, tex, Rect::from_min_max(egui::pos2(0.0, 0.0), egui::pos2(1.0, 1.0)), alpha, drift)
|
||||
@@ -861,6 +898,20 @@ impl App {
|
||||
self.start_task("hd", vec![cmd]);
|
||||
}
|
||||
|
||||
/// refait seulement les images vides d'un pack (hd_export.py --reparer), avec le modèle du pack
|
||||
fn repair_hd_pack(&mut self, target: PathBuf, model: String) {
|
||||
let Some(game) = self.checks.game_dir.clone() else { return };
|
||||
let mut cmd = format!(
|
||||
"python -I tools\\hd_export.py \"{}\" \"{}\" --reparer --upscayl {model}",
|
||||
game.display(),
|
||||
target.join("hd").display()
|
||||
);
|
||||
if let Some(bin) = &self.upscayl {
|
||||
cmd.push_str(&format!(" --upscayl-bin \"{}\"", bin.display()));
|
||||
}
|
||||
self.start_task("hd", vec![cmd]);
|
||||
}
|
||||
|
||||
fn mods_card(&mut self, ui: &mut egui::Ui) {
|
||||
let en = self.cfg.lang == Lang::En;
|
||||
let tr = |fr: &'static str, e: &'static str| if en { e } else { fr };
|
||||
@@ -871,6 +922,7 @@ impl App {
|
||||
let mut refresh = false;
|
||||
let mut create = false;
|
||||
let mut add_sprites: Option<(PathBuf, String)> = None;
|
||||
let mut repair: Option<(PathBuf, String)> = None;
|
||||
let mut export = false;
|
||||
let mut new_mod = false;
|
||||
card(ui, |ui| {
|
||||
@@ -936,6 +988,20 @@ impl App {
|
||||
add_sprites = Some((m.path.clone(), model.clone()));
|
||||
}
|
||||
}
|
||||
// images ratées (vides) après un plantage du pilote ou un export interrompu
|
||||
if let (Some(model), true, true) = (&m.model, m.hd_images + m.hd_sprites > 0, self.upscayl.is_some()) {
|
||||
if ui
|
||||
.add_enabled(can_create, egui::Button::new(tr("Réparer", "Repair")).small())
|
||||
.on_hover_text(if en {
|
||||
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.")
|
||||
} else {
|
||||
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.")
|
||||
})
|
||||
.clicked()
|
||||
{
|
||||
repair = Some((m.path.clone(), model.clone()));
|
||||
}
|
||||
}
|
||||
if m.files > 0 {
|
||||
ui.label(RichText::new(format!("{} {}", m.files, tr("fichiers", "files"))).color(OK).small());
|
||||
}
|
||||
@@ -1055,6 +1121,9 @@ impl App {
|
||||
if let Some((path, model)) = add_sprites {
|
||||
self.create_hd_pack(Some(path), model, false, true);
|
||||
}
|
||||
if let Some((path, model)) = repair {
|
||||
self.repair_hd_pack(path, model);
|
||||
}
|
||||
if export {
|
||||
self.export_originals();
|
||||
}
|
||||
@@ -1934,6 +2003,10 @@ impl App {
|
||||
ui.add_space(4.0);
|
||||
// réglages partagés avec le jeu : figés pendant une partie (le menu F12 écrit le même fichier)
|
||||
let running = self.game_running;
|
||||
// taille de l'écran en pixels réels (monitor_size est en points)
|
||||
let screen = ui.ctx().input(|i| {
|
||||
i.viewport().monitor_size.map(|s| ((s.x * i.pixels_per_point).round() as u32, (s.y * i.pixels_per_point).round() as u32))
|
||||
});
|
||||
let gs = &mut self.gs;
|
||||
ui.add_enabled_ui(!running, |ui| {
|
||||
egui::CollapsingHeader::new(RichText::new(tr("Affichage", "Display")).strong())
|
||||
@@ -1950,10 +2023,8 @@ impl App {
|
||||
ui.checkbox(&mut gs.aspect_43, tr("Format 4:3 (comme un écran VGA)", "4:3 aspect (like a VGA screen)"));
|
||||
ui.checkbox(&mut gs.vsync, tr("Synchronisation verticale", "Vertical sync"));
|
||||
ui.horizontal(|ui| {
|
||||
ui.label(tr("Fenêtre", "Window"));
|
||||
ui.add(egui::Slider::new(&mut gs.window_scale, 1..=16).suffix("×"));
|
||||
let h = if gs.aspect_43 { 240 } else { 200 };
|
||||
ui.label(RichText::new(format!("{}×{}", 320 * gs.window_scale, h * gs.window_scale)).weak());
|
||||
ui.label(tr("Résolution de la fenêtre", "Window resolution"));
|
||||
resolution_combo(ui, gs, screen, en);
|
||||
});
|
||||
});
|
||||
egui::CollapsingHeader::new(RichText::new(tr("Volumes", "Volume")).strong())
|
||||
|
||||
@@ -11,6 +11,9 @@ pub const VOLUMES: [&str; 4] = ["master_volume", "music_volume", "voice_volume",
|
||||
pub struct GameSettings {
|
||||
pub fullscreen: bool,
|
||||
pub window_scale: u32,
|
||||
/// taille de la fenêtre en pixels ; 0 = `window_scale` est utilisé
|
||||
pub window_width: u32,
|
||||
pub window_height: u32,
|
||||
pub filter: usize,
|
||||
pub aspect_43: bool,
|
||||
pub vsync: bool,
|
||||
@@ -32,6 +35,8 @@ impl Default for GameSettings {
|
||||
Self {
|
||||
fullscreen: false,
|
||||
window_scale: 3,
|
||||
window_width: 0,
|
||||
window_height: 0,
|
||||
filter: 0,
|
||||
aspect_43: true,
|
||||
vsync: false,
|
||||
@@ -97,6 +102,12 @@ impl GameSettings {
|
||||
("display", "window_scale") => {
|
||||
s.window_scale = v.parse().map(|n: u32| n.clamp(1, 16)).unwrap_or(s.window_scale)
|
||||
}
|
||||
("display", "window_width") => {
|
||||
s.window_width = v.parse().map(|n: u32| n.min(16384)).unwrap_or(s.window_width)
|
||||
}
|
||||
("display", "window_height") => {
|
||||
s.window_height = v.parse().map(|n: u32| n.min(16384)).unwrap_or(s.window_height)
|
||||
}
|
||||
("display", "filter") => {
|
||||
s.filter = FILTERS.iter().position(|f| f.eq_ignore_ascii_case(v)).unwrap_or(s.filter)
|
||||
}
|
||||
@@ -126,6 +137,8 @@ impl GameSettings {
|
||||
let mut e = vec![
|
||||
("display", "fullscreen", b(self.fullscreen)),
|
||||
("display", "window_scale", self.window_scale.to_string()),
|
||||
("display", "window_width", self.window_width.to_string()),
|
||||
("display", "window_height", self.window_height.to_string()),
|
||||
("display", "filter", FILTERS[self.filter].to_string()),
|
||||
("display", "aspect_43", b(self.aspect_43)),
|
||||
("display", "vsync", b(self.vsync)),
|
||||
|
||||
Reference in new issue
Block a user