mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-22 21:15:57 +00:00
The installer stops with the crashing Vulkan layer named instead of going on with a warning (#1345)
A layer that crashes hostcheck at vkCreateInstance also breaks totk.exe --prepare-shaders in the prepare step and the game (runtime/vk_device.c create_instance loads the same implicit layers): with the PR's warning the install failed again after lift and compile. Check.probe_host now turns each listed implicit layer off alone, names the one whose absence lets the probe pass with its manifest path in check.vulkan_layer_crash, and says how to turn it off (VK_LOADER_LAYERS_DISABLE=<name> for the user account); when no single layer explains it, check.vulkan_layers_crash lists the installed ones and offers ~implicit~. The list covers the loader's places: VK_(ADD_)IMPLICIT_LAYER_PATH, the registry in the 64-bit view or the Linux implicit_layer.d folders, with names read from the manifests. A failed host check is kept on the context, so key() and run() no longer build and crash it twice, and the App Control reputation codes 4557-4559 and 4581-4583 count as a block too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
08e44f43ad
commit
d181714398
13 files changed
+206
-76
No files matched your search
+100
-40
@@ -41,6 +41,11 @@ import time
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
if os.name == 'nt':
|
||||
import winreg
|
||||
else:
|
||||
winreg = None
|
||||
|
||||
from . import ini, screens
|
||||
from . import layout as layouts
|
||||
from .layout import EXE, SUPPORTED, version_tag
|
||||
@@ -140,32 +145,63 @@ def exit_code(code):
|
||||
return str(code)
|
||||
|
||||
|
||||
def implicit_vulkan_layers():
|
||||
"""Names of the enabled implicit Vulkan layer manifests the Windows registry lists (machine, then user), for the
|
||||
warning that names the program to update; empty elsewhere or when the registry cannot be read."""
|
||||
if os.name != 'nt':
|
||||
return []
|
||||
import winreg
|
||||
def layer_manifests():
|
||||
"""Implicit Vulkan layer manifests where the Khronos loader looks for them (its docs, LoaderLayerInterface.md,
|
||||
"Layer Discovery"): the folders in VK_IMPLICIT_LAYER_PATH or VK_ADD_IMPLICIT_LAYER_PATH, then on Windows the
|
||||
manifests HKLM and HKCU\\SOFTWARE\\Khronos\\Vulkan\\ImplicitLayers enable with a DWORD 0, read in the 64-bit view
|
||||
the 64-bit probe and game use; elsewhere the implicit_layer.d folders. Layers a driver registers under its display
|
||||
adapter's key are not listed."""
|
||||
found = []
|
||||
for root in (winreg.HKEY_LOCAL_MACHINE, winreg.HKEY_CURRENT_USER):
|
||||
try:
|
||||
key = winreg.OpenKey(root, r'SOFTWARE\Khronos\Vulkan\ImplicitLayers')
|
||||
except OSError:
|
||||
continue
|
||||
with key:
|
||||
i = 0
|
||||
while True:
|
||||
try:
|
||||
path, enabled, _ = winreg.EnumValue(key, i)
|
||||
except OSError:
|
||||
break
|
||||
i += 1
|
||||
name = Path(path).name
|
||||
if enabled == 0 and name not in found: # a DWORD 0 enables the manifest, anything else skips it
|
||||
found.append(name)
|
||||
for var in ('VK_IMPLICIT_LAYER_PATH', 'VK_ADD_IMPLICIT_LAYER_PATH'):
|
||||
for part in filter(None, os.environ.get(var, '').split(os.pathsep)):
|
||||
p = Path(part)
|
||||
found += sorted(p.glob('*.json')) if p.is_dir() else [p]
|
||||
if winreg:
|
||||
for root in (winreg.HKEY_LOCAL_MACHINE, winreg.HKEY_CURRENT_USER):
|
||||
try:
|
||||
key = winreg.OpenKey(root, r'SOFTWARE\Khronos\Vulkan\ImplicitLayers', 0,
|
||||
winreg.KEY_READ | winreg.KEY_WOW64_64KEY)
|
||||
except OSError:
|
||||
continue
|
||||
with key:
|
||||
i = 0
|
||||
while True:
|
||||
try:
|
||||
path, enabled, _ = winreg.EnumValue(key, i)
|
||||
except OSError:
|
||||
break
|
||||
i += 1
|
||||
if enabled == 0: # a DWORD 0 enables the manifest, anything else skips it
|
||||
found.append(Path(path))
|
||||
else:
|
||||
home = Path.home()
|
||||
config = [os.environ.get('XDG_CONFIG_HOME') or home / '.config',
|
||||
*(os.environ.get('XDG_CONFIG_DIRS') or '/etc/xdg').split(':'), '/usr/local/etc', '/etc']
|
||||
data = [os.environ.get('XDG_DATA_HOME') or home / '.local' / 'share',
|
||||
*(os.environ.get('XDG_DATA_DIRS') or '/usr/local/share:/usr/share').split(':')]
|
||||
for base in filter(None, config + data):
|
||||
found += sorted((Path(base) / 'vulkan' / 'implicit_layer.d').glob('*.json'))
|
||||
return found
|
||||
|
||||
|
||||
def implicit_vulkan_layers():
|
||||
"""(layer name, manifest path) of each readable implicit Vulkan layer manifest of layer_manifests(), for the
|
||||
search for the layer that crashes the host check. A manifest the loader cannot read loads no layer and is left
|
||||
out; a manifest listed twice counts once."""
|
||||
layers = []
|
||||
for path in dict.fromkeys(layer_manifests()):
|
||||
try:
|
||||
manifest = json.loads(path.read_text(encoding='utf-8-sig'))
|
||||
except (OSError, ValueError):
|
||||
continue
|
||||
entries = (manifest.get('layers') or [manifest.get('layer')]) if isinstance(manifest, dict) else []
|
||||
for entry in entries:
|
||||
name = entry.get('name') if isinstance(entry, dict) else None
|
||||
if isinstance(name, str) and (name, path) not in layers:
|
||||
layers.append((name, path))
|
||||
return layers
|
||||
|
||||
|
||||
def linux_glibc():
|
||||
"""(major, minor) of the C library this Linux process runs on, None elsewhere or when it is not glibc."""
|
||||
try:
|
||||
@@ -465,8 +501,19 @@ class Check(Step):
|
||||
return {}
|
||||
|
||||
def host(self, ctx):
|
||||
"""Builds and runs the host check once per run: key() asks first and run() reports, so a failure is kept on
|
||||
ctx and raised again rather than a crashing probe and its retries running twice."""
|
||||
if getattr(ctx, 'host', None) is not None:
|
||||
return
|
||||
if getattr(ctx, 'host_error', None) is not None:
|
||||
raise ctx.host_error
|
||||
try:
|
||||
self.check_host(ctx)
|
||||
except InstallError as e:
|
||||
ctx.host_error = e
|
||||
raise
|
||||
|
||||
def check_host(self, ctx):
|
||||
layout, work = ctx.layout, ctx.temp / 'check'
|
||||
glibc = linux_glibc()
|
||||
if glibc and glibc < GLIBC_NEEDED and not layout.dev:
|
||||
@@ -505,17 +552,23 @@ class Check(Step):
|
||||
ctx.reporter.warning('warn.kernel_old', version='.'.join(map(str, kernel)))
|
||||
ctx.host = host
|
||||
|
||||
# Windows refuses to start a program a policy does not trust: Smart App Control and other App Control policies
|
||||
# (4551 "An Application Control policy has blocked this file", 4556 and 4580 the same for a bad reputation, issue
|
||||
# #875), group policy (1260) and an antivirus that flags the file (225, 226). hostcheck is the first program the
|
||||
# setup builds on this PC; totk.exe is built the same way and unsigned too, so the install cannot go on.
|
||||
BLOCKED_WINERRORS = {225, 226, 1260, 4551, 4556, 4580}
|
||||
# Windows refuses to start a program a policy does not trust (issue #875): Smart App Control and other App Control
|
||||
# policies (4551 "An Application Control policy has blocked this file"; 4556-4559 and 4580-4583 the same with the
|
||||
# reputation verdict, among them 4559 "Unable to contact reputation service for unknown file"), group policy (1260
|
||||
# "This program is blocked by group policy") and an antivirus that flags or removes the file (225, 226). hostcheck
|
||||
# is the first program the setup builds on this PC; totk.exe is built the same way and unsigned too, so the install
|
||||
# cannot go on.
|
||||
BLOCKED_WINERRORS = {225, 226, 1260, 4551, 4556, 4557, 4558, 4559, 4580, 4581, 4582, 4583}
|
||||
LAYER_TRIES = 16 # implicit layers tried one by one in the search for the one that crashes the probe
|
||||
|
||||
def probe_host(self, ctx, exe):
|
||||
"""Runs the host check built by host() and returns its JSON. A probe that crashes inside Vulkan is run again
|
||||
with the implicit Vulkan layers off (VK_LOADER_LAYERS_DISABLE, Vulkan loader 1.3.234 or later): overlays,
|
||||
recorders and tuning tools install such layers, and a broken one kills every Vulkan program at
|
||||
vkCreateInstance (issue #1345, exit code 0xC0000005 after "Checking the processor and the graphics card")."""
|
||||
"""Runs the host check check_host() built and returns its JSON. A probe that crashes inside Vulkan is run again
|
||||
with the implicit Vulkan layers off (VK_LOADER_LAYERS_DISABLE=~implicit~, Vulkan loader 1.3.234 or later):
|
||||
overlays, recorders and tuning tools install such layers, and a broken one kills every Vulkan program at
|
||||
vkCreateInstance (issue #1345, exit code 0xC0000005 after "Checking the processor and the graphics card").
|
||||
When that run passes, each listed layer is turned off alone to name the one that crashes. The install stops
|
||||
either way: totk.exe --prepare-shaders in the prepare step and the game itself load the same layers
|
||||
(runtime/vk_device.c create_instance), so going on would fail after lift and compile."""
|
||||
rep = ctx.reporter
|
||||
r = self.run_probe(exe)
|
||||
host = parse_host(r.stdout)
|
||||
@@ -526,17 +579,23 @@ class Check(Step):
|
||||
rep.log(f'host: the check stopped with exit code {code}; it printed {r.stdout.strip()!r}')
|
||||
if '"loader": true' not in r.stdout:
|
||||
raise InstallError('check.host_probe_failed', code=code)
|
||||
env = dict(os.environ, VK_LOADER_LAYERS_DISABLE='~implicit~')
|
||||
retry = self.run_probe(exe, env)
|
||||
host = parse_host(retry.stdout)
|
||||
if host is None:
|
||||
retry = self.run_probe(exe, dict(os.environ, VK_LOADER_LAYERS_DISABLE='~implicit~'))
|
||||
if parse_host(retry.stdout) is None:
|
||||
rep.log(f'host: without implicit Vulkan layers too: exit code {exit_code(retry.returncode)}, '
|
||||
f'{retry.stdout.strip()!r}')
|
||||
raise InstallError('check.vulkan_crash', code=code)
|
||||
layers = ', '.join(implicit_vulkan_layers()) or '?'
|
||||
rep.log(f'host: {retry.stdout.strip()} (implicit Vulkan layers off; installed: {layers})')
|
||||
rep.warning('warn.vulkan_layer_crash', code=code, layers=layers)
|
||||
return host
|
||||
layers = implicit_vulkan_layers()
|
||||
rep.log(f'host: passes with the implicit Vulkan layers off; installed: '
|
||||
f'{", ".join(f"{n} ({p})" for n, p in layers) or "none listed"}')
|
||||
culprits = [(name, path) for name, path in layers[:self.LAYER_TRIES]
|
||||
if parse_host(self.run_probe(exe, dict(os.environ, VK_LOADER_LAYERS_DISABLE=name)).stdout)]
|
||||
if culprits:
|
||||
rep.log(f'host: passes without {", ".join(n for n, _ in culprits)}')
|
||||
raise InstallError('check.vulkan_layer_crash', code=code,
|
||||
layers=', '.join(f'{n} ({p})' for n, p in culprits),
|
||||
disable=','.join(n for n, _ in culprits))
|
||||
raise InstallError('check.vulkan_layers_crash', code=code,
|
||||
layers=', '.join(f'{n} ({p})' for n, p in layers) or '?')
|
||||
|
||||
def run_probe(self, exe, env=None):
|
||||
try:
|
||||
@@ -544,7 +603,8 @@ class Check(Step):
|
||||
except OSError as e:
|
||||
if getattr(e, 'winerror', None) in self.BLOCKED_WINERRORS:
|
||||
raise InstallError('check.host_blocked', path=str(exe), detail=e.strerror or str(e)) from None
|
||||
raise InstallError('check.host_probe_failed', code=f'{getattr(e, "winerror", None) or e.errno}: {e.strerror or e}') from None
|
||||
raise InstallError('check.host_probe_failed',
|
||||
code=f'{getattr(e, "winerror", None) or e.errno}: {e.strerror or e}') from None
|
||||
|
||||
def inputs(self, ctx):
|
||||
"""Open both files with the keys as the extraction will. Returns the bytes of both Program NCAs."""
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
"check.host_probe_failed": "Die Computerprüfung ist nicht gelaufen (Exit-Code {code}).",
|
||||
"check.host_blocked": "Windows hat ein Programm blockiert, das das Setup auf diesem PC erstellt hat ({path}): {detail}. Smart App Control, eine App-Control-Richtlinie oder ein Virenscanner blockiert unsignierte Programme; das Spiel selbst wird genauso auf diesem PC erstellt und würde ebenfalls blockiert. Erlaube den Setup-Ordner in deinem Virenscanner oder schalte Smart App Control in der Windows-Sicherheit (App- und Browsersteuerung) aus und starte das Setup erneut.",
|
||||
"check.vulkan_crash": "Der Grafiktreiber ist abgestürzt, als das Setup nach den Grafikkarten gefragt hat (Exit-Code {code}), auch mit ausgeschalteten Vulkan-Layern anderer Programme. Installiere den neuesten Treiber für deine Grafikkarte.",
|
||||
"check.vulkan_layer_crash": "Ein Vulkan-Layer, den ein anderes Programm installiert hat, lässt Vulkan-Programme auf diesem PC abstürzen (Exit-Code {code}), und das Spiel würde beim Start genauso abstürzen. Der Layer: {layers}. Aktualisiere oder deinstalliere das Programm, zu dem er gehört (der Pfad zeigt seinen Ordner), oder schalte den Layer aus: Setze für dein Benutzerkonto die Umgebungsvariable VK_LOADER_LAYERS_DISABLE auf {disable}. Starte danach das Setup erneut.",
|
||||
"check.vulkan_layers_crash": "Ein Vulkan-Layer, den ein anderes Programm installiert hat, lässt Vulkan-Programme auf diesem PC abstürzen (Exit-Code {code}): Mit allen solchen Layern ausgeschaltet läuft die Prüfung durch, und mit ihnen würde das Spiel beim Start genauso abstürzen. Die installierten Layer einzeln auszuschalten hat ihn nicht eingegrenzt. Installierte Layer: {layers}. Aktualisiere oder deinstalliere die Overlay-, Aufnahme- oder Tuning-Programme darunter, oder schalte alle solchen Layer aus: Setze für dein Benutzerkonto die Umgebungsvariable VK_LOADER_LAYERS_DISABLE auf ~implicit~ (das schaltet auch Overlays wie das von Steam in jedem Vulkan-Spiel aus). Starte danach das Setup erneut.",
|
||||
"check.cpu_too_old": "Diesem Prozessor fehlt x86-64-v2 (SSE4.2, POPCNT und CMPXCHG16B), die älteste Stufe, für die das Spiel gebaut wird. Intel Nehalem (2008) oder AMD Bulldozer (2011) und neuer haben sie.",
|
||||
"check.vulkan_missing": "Es ist kein Vulkan-Treiber installiert. Installiere den neuesten Treiber für deine Grafikkarte.",
|
||||
"check.vulkan_no_device": "Vulkan findet keine Grafikkarte. Installiere den neuesten Treiber für deine Grafikkarte.",
|
||||
@@ -113,7 +115,6 @@
|
||||
"warn.xbox_prompts_failed": "Die Xbox-, PlayStation- oder PC-Tastensymbole konnten nicht vorbereitet werden (Exit-Code {code}); das Spiel behält die Switch-Symbole. Details: {log}",
|
||||
"warn.shaders_skipped": "Der Grafiktreiber ist beim Erstellen einiger Shader abgestürzt, daher wurden {count} bei der Vorbereitung ausgelassen. Das Spiel erstellt sie, wenn es sie zum ersten Mal braucht, und der Treiber kann dort ebenfalls abstürzen; ein Treiberupdate kann das beheben. Details: {log}",
|
||||
"warn.kernel_old": "Linux {version} fehlt das Schreib-Tracking, auf das das Spiel angewiesen ist (6.7 oder neuer); das Spiel kann sehr langsam laufen. Ein Systemupdate behebt das.",
|
||||
"warn.vulkan_layer_crash": "Ein Vulkan-Layer eines anderen Programms hat die Computerprüfung abstürzen lassen (Exit-Code {code}); ohne ihn lief die Prüfung durch. Installierte Layer: {layers}. Das Spiel lädt dieselben Layer und kann beim Start abstürzen: Aktualisiere oder deinstalliere das Overlay-, Aufnahme- oder Tuning-Programm, das den fehlerhaften Layer installiert hat.",
|
||||
"warn.dlss_kept": "Im Installationsordner liegt bereits eine DLSS-Bibliothek ({path}); das Setup behält sie.",
|
||||
"warn.dlss_download_failed": "NVIDIA DLSS konnte nicht von {url} heruntergeladen werden: {detail}. Das Spiel läuft ohne; der nächste Setup-Lauf versucht es erneut.",
|
||||
"ui.title": "TotK-Setup",
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
"check.host_probe_failed": "The computer check did not run (exit code {code}).",
|
||||
"check.host_blocked": "Windows blocked a program the setup built on this PC ({path}): {detail}. Smart App Control, an App Control policy or an antivirus blocks unsigned programs; the game itself is built on this PC the same way, so it would be blocked too. Allow the setup folder in your antivirus, or turn off Smart App Control in Windows Security (App & browser control), then run the setup again.",
|
||||
"check.vulkan_crash": "The graphics driver crashed while the setup asked it for the graphics cards (exit code {code}), also with the Vulkan layers of other programs turned off. Install the latest driver for your graphics card.",
|
||||
"check.vulkan_layer_crash": "A Vulkan layer that another program installed crashes Vulkan programs on this PC (exit code {code}), and the game would crash at start the same way. The layer: {layers}. Update or uninstall the program it belongs to (the path shows its folder), or turn the layer off: set the environment variable VK_LOADER_LAYERS_DISABLE to {disable} for your user account. Then run the setup again.",
|
||||
"check.vulkan_layers_crash": "A Vulkan layer that another program installed crashes Vulkan programs on this PC (exit code {code}): with all such layers off the check passes, and the game would crash at start the same way with them on. Turning the installed layers off one at a time did not single it out. Installed layers: {layers}. Update or uninstall the overlay, recorder or tuning programs among them, or turn all such layers off: set the environment variable VK_LOADER_LAYERS_DISABLE to ~implicit~ for your user account (this also turns off overlays such as Steam's in every Vulkan game). Then run the setup again.",
|
||||
"check.cpu_too_old": "This processor lacks x86-64-v2 (SSE4.2, POPCNT and CMPXCHG16B), the oldest level the game is built for. Intel Nehalem (2008) or AMD Bulldozer (2011) and newer have it.",
|
||||
"check.vulkan_missing": "No Vulkan driver is installed. Install the latest driver for your graphics card.",
|
||||
"check.vulkan_no_device": "Vulkan finds no graphics card. Install the latest driver for your graphics card.",
|
||||
@@ -118,7 +120,6 @@
|
||||
"warn.xbox_prompts_failed": "The Xbox, PlayStation or PC button prompts could not be prepared (exit code {code}); the game keeps the Switch prompts. Details: {log}",
|
||||
"warn.shaders_skipped": "The graphics driver crashed while building some shaders, so {count} were left out of the preparation. The game builds them when it first needs them, and the driver may crash there too; a driver update may fix it. Details: {log}",
|
||||
"warn.kernel_old": "Linux {version} lacks the write tracking the game relies on (6.7 or later); the game may run very slowly. Updating the system fixes this.",
|
||||
"warn.vulkan_layer_crash": "A Vulkan layer of another program crashed the computer check (exit code {code}); without it the check passed. Installed layers: {layers}. The game loads the same layers and may crash at start: update or uninstall the overlay, recorder or tuning program that installed the failing one.",
|
||||
"warn.dlss_kept": "A DLSS library is already in the install folder ({path}); the setup keeps it.",
|
||||
"warn.dlss_download_failed": "NVIDIA DLSS could not be downloaded from {url}: {detail}. The game runs without it; the next setup run tries again.",
|
||||
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
"check.host_probe_failed": "La comprobación del equipo no se ejecutó (código de salida {code}).",
|
||||
"check.host_blocked": "Windows bloqueó un programa que el instalador creó en este PC ({path}): {detail}. Smart App Control, una directiva de App Control o un antivirus bloquean los programas sin firmar; el propio juego se crea igual en este PC, así que también se bloquearía. Permite la carpeta del instalador en tu antivirus o desactiva Smart App Control en Seguridad de Windows (Control de aplicaciones y navegador) y vuelve a ejecutar el instalador.",
|
||||
"check.vulkan_crash": "El controlador gráfico falló cuando el instalador le pidió las tarjetas gráficas (código de salida {code}), también con las capas Vulkan de otros programas desactivadas. Instala el controlador más reciente de tu tarjeta gráfica.",
|
||||
"check.vulkan_layer_crash": "Una capa Vulkan que instaló otro programa hace fallar los programas Vulkan en este PC (código de salida {code}), y el juego fallaría igual al iniciar. La capa: {layers}. Actualiza o desinstala el programa al que pertenece (la ruta muestra su carpeta), o desactiva la capa: define para tu cuenta de usuario la variable de entorno VK_LOADER_LAYERS_DISABLE con el valor {disable}. Después vuelve a ejecutar el instalador.",
|
||||
"check.vulkan_layers_crash": "Una capa Vulkan que instaló otro programa hace fallar los programas Vulkan en este PC (código de salida {code}): con todas esas capas desactivadas la comprobación pasa, y con ellas el juego fallaría igual al iniciar. Desactivar las capas instaladas una por una no permitió identificarla. Capas instaladas: {layers}. Actualiza o desinstala los programas de superposición, grabación o ajuste que haya entre ellas, o desactiva todas esas capas: define para tu cuenta de usuario la variable de entorno VK_LOADER_LAYERS_DISABLE con el valor ~implicit~ (esto también desactiva superposiciones como la de Steam en todos los juegos Vulkan). Después vuelve a ejecutar el instalador.",
|
||||
"check.cpu_too_old": "Este procesador no tiene x86-64-v2 (SSE4.2, POPCNT y CMPXCHG16B), el nivel más antiguo para el que se compila el juego. Intel Nehalem (2008) o AMD Bulldozer (2011) y posteriores lo tienen.",
|
||||
"check.vulkan_missing": "No hay ningún controlador Vulkan instalado. Instala el controlador más reciente de tu tarjeta gráfica.",
|
||||
"check.vulkan_no_device": "Vulkan no encuentra ninguna tarjeta gráfica. Instala el controlador más reciente de tu tarjeta gráfica.",
|
||||
@@ -113,7 +115,6 @@
|
||||
"warn.xbox_prompts_failed": "No se pudieron preparar los iconos de botones de Xbox, PlayStation o PC (código de salida {code}); el juego mantiene los iconos de Switch. Detalles: {log}",
|
||||
"warn.shaders_skipped": "El controlador gráfico falló al crear algunos shaders, así que {count} quedaron fuera de la preparación. El juego los crea cuando los necesita por primera vez, y el controlador también puede fallar ahí; una actualización del controlador puede solucionarlo. Detalles: {log}",
|
||||
"warn.kernel_old": "Linux {version} no tiene el seguimiento de escrituras del que depende el juego (6.7 o posterior); el juego puede ir muy lento. Actualizar el sistema lo soluciona.",
|
||||
"warn.vulkan_layer_crash": "Una capa Vulkan de otro programa hizo fallar la comprobación del equipo (código de salida {code}); sin ella la comprobación pasó. Capas instaladas: {layers}. El juego carga las mismas capas y puede fallar al iniciar: actualiza o desinstala el programa de superposición, grabación o ajuste que instaló la capa que falla.",
|
||||
"warn.dlss_kept": "Ya hay una biblioteca DLSS en la carpeta de instalación ({path}); el instalador la conserva.",
|
||||
"warn.dlss_download_failed": "No se pudo descargar NVIDIA DLSS desde {url}: {detail}. El juego funciona sin él; la próxima ejecución del instalador lo intentará de nuevo.",
|
||||
"ui.title": "Instalador de TotK",
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
"check.host_probe_failed": "La vérification de l'ordinateur ne s'est pas exécutée (code de sortie {code}).",
|
||||
"check.host_blocked": "Windows a bloqué un programme que l'installateur a compilé sur ce PC ({path}) : {detail}. Smart App Control, une stratégie App Control ou un antivirus bloque les programmes non signés ; le jeu lui-même est compilé de la même façon sur ce PC et serait bloqué aussi. Autorisez le dossier de l'installateur dans votre antivirus, ou désactivez Smart App Control dans Sécurité Windows (Contrôle des applications et du navigateur), puis relancez l'installateur.",
|
||||
"check.vulkan_crash": "Le pilote graphique a planté quand l'installateur lui a demandé les cartes graphiques (code de sortie {code}), même avec les couches Vulkan des autres programmes désactivées. Installez le dernier pilote de votre carte graphique.",
|
||||
"check.vulkan_layer_crash": "Une couche Vulkan installée par un autre programme fait planter les programmes Vulkan sur ce PC (code de sortie {code}), et le jeu planterait de la même façon au démarrage. La couche : {layers}. Mettez à jour ou désinstallez le programme auquel elle appartient (le chemin montre son dossier), ou désactivez la couche : définissez pour votre compte utilisateur la variable d'environnement VK_LOADER_LAYERS_DISABLE avec la valeur {disable}. Relancez ensuite l'installateur.",
|
||||
"check.vulkan_layers_crash": "Une couche Vulkan installée par un autre programme fait planter les programmes Vulkan sur ce PC (code de sortie {code}) : avec toutes ces couches désactivées, la vérification réussit, et avec elles le jeu planterait de la même façon au démarrage. Désactiver les couches installées une par une n'a pas permis de l'identifier. Couches installées : {layers}. Mettez à jour ou désinstallez les programmes d'overlay, d'enregistrement ou de réglage parmi elles, ou désactivez toutes ces couches : définissez pour votre compte utilisateur la variable d'environnement VK_LOADER_LAYERS_DISABLE avec la valeur ~implicit~ (cela désactive aussi les overlays comme celui de Steam dans tous les jeux Vulkan). Relancez ensuite l'installateur.",
|
||||
"check.cpu_too_old": "Ce processeur ne prend pas en charge x86-64-v2 (SSE4.2, POPCNT et CMPXCHG16B), le niveau le plus ancien pour lequel le jeu est compilé. Intel Nehalem (2008) ou AMD Bulldozer (2011) et plus récents l'ont.",
|
||||
"check.vulkan_missing": "Aucun pilote Vulkan n'est installé. Installez le dernier pilote de votre carte graphique.",
|
||||
"check.vulkan_no_device": "Vulkan ne trouve aucune carte graphique. Installez le dernier pilote de votre carte graphique.",
|
||||
@@ -113,7 +115,6 @@
|
||||
"warn.xbox_prompts_failed": "Les icônes de boutons Xbox, PlayStation ou PC n'ont pas pu être préparées (code de sortie {code}) ; le jeu garde les icônes Switch. Détails : {log}",
|
||||
"warn.shaders_skipped": "Le pilote graphique a planté pendant la construction de certains shaders ; {count} ont donc été exclus de la préparation. Le jeu les construit quand il en a besoin pour la première fois, et le pilote peut y planter aussi ; une mise à jour du pilote peut corriger cela. Détails : {log}",
|
||||
"warn.kernel_old": "Linux {version} ne dispose pas du suivi des écritures dont le jeu dépend (6.7 ou plus récent) ; le jeu peut être très lent. Mettre à jour le système corrige cela.",
|
||||
"warn.vulkan_layer_crash": "Une couche Vulkan d'un autre programme a fait planter la vérification de l'ordinateur (code de sortie {code}) ; sans elle, la vérification a réussi. Couches installées : {layers}. Le jeu charge les mêmes couches et peut planter au démarrage : mettez à jour ou désinstallez le programme d'overlay, d'enregistrement ou de réglage qui a installé la couche fautive.",
|
||||
"warn.dlss_kept": "Une bibliothèque DLSS se trouve déjà dans le dossier d'installation ({path}) ; l'installation la conserve.",
|
||||
"warn.dlss_download_failed": "NVIDIA DLSS n'a pas pu être téléchargé depuis {url} : {detail}. Le jeu fonctionne sans ; la prochaine installation réessaiera.",
|
||||
"ui.title": "Installation de TotK",
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
"check.host_probe_failed": "Il controllo del computer non è stato eseguito (codice di uscita {code}).",
|
||||
"check.host_blocked": "Windows ha bloccato un programma che il programma di installazione ha compilato su questo PC ({path}): {detail}. Smart App Control, un criterio App Control o un antivirus bloccano i programmi non firmati; anche il gioco viene compilato così su questo PC e verrebbe bloccato. Consenti la cartella di installazione nell'antivirus oppure disattiva Smart App Control in Sicurezza di Windows (Controllo app e browser), poi esegui di nuovo l'installazione.",
|
||||
"check.vulkan_crash": "Il driver grafico si è bloccato quando l'installazione gli ha chiesto le schede grafiche (codice di uscita {code}), anche con i livelli Vulkan degli altri programmi disattivati. Installa il driver più recente della tua scheda grafica.",
|
||||
"check.vulkan_layer_crash": "Un livello Vulkan installato da un altro programma fa bloccare i programmi Vulkan su questo PC (codice di uscita {code}) e il gioco si bloccherebbe allo stesso modo all'avvio. Il livello: {layers}. Aggiorna o disinstalla il programma a cui appartiene (il percorso mostra la sua cartella), oppure disattiva il livello: imposta per il tuo account utente la variabile d'ambiente VK_LOADER_LAYERS_DISABLE con il valore {disable}. Poi esegui di nuovo l'installazione.",
|
||||
"check.vulkan_layers_crash": "Un livello Vulkan installato da un altro programma fa bloccare i programmi Vulkan su questo PC (codice di uscita {code}): con tutti questi livelli disattivati il controllo riesce, e con essi il gioco si bloccherebbe allo stesso modo all'avvio. Disattivare i livelli installati uno alla volta non ha permesso di individuarlo. Livelli installati: {layers}. Aggiorna o disinstalla i programmi di overlay, registrazione o tuning tra questi, oppure disattiva tutti questi livelli: imposta per il tuo account utente la variabile d'ambiente VK_LOADER_LAYERS_DISABLE con il valore ~implicit~ (questo disattiva anche overlay come quello di Steam in tutti i giochi Vulkan). Poi esegui di nuovo l'installazione.",
|
||||
"check.cpu_too_old": "Questo processore non supporta x86-64-v2 (SSE4.2, POPCNT e CMPXCHG16B), il livello più vecchio per cui il gioco viene compilato. Intel Nehalem (2008) o AMD Bulldozer (2011) e successivi lo supportano.",
|
||||
"check.vulkan_missing": "Non è installato alcun driver Vulkan. Installa il driver più recente della tua scheda grafica.",
|
||||
"check.vulkan_no_device": "Vulkan non trova alcuna scheda grafica. Installa il driver più recente della tua scheda grafica.",
|
||||
@@ -113,7 +115,6 @@
|
||||
"warn.xbox_prompts_failed": "Non è stato possibile preparare le icone dei pulsanti Xbox, PlayStation o PC (codice di uscita {code}); il gioco mantiene le icone di Switch. Dettagli: {log}",
|
||||
"warn.shaders_skipped": "Il driver grafico si è bloccato durante la creazione di alcuni shader, quindi {count} sono stati esclusi dalla preparazione. Il gioco li crea quando servono per la prima volta, e anche lì il driver potrebbe bloccarsi; un aggiornamento del driver potrebbe risolvere. Dettagli: {log}",
|
||||
"warn.kernel_old": "Linux {version} non ha il tracciamento delle scritture su cui si basa il gioco (6.7 o successivo); il gioco potrebbe essere molto lento. Aggiornare il sistema risolve il problema.",
|
||||
"warn.vulkan_layer_crash": "Un livello Vulkan di un altro programma ha fatto bloccare il controllo del computer (codice di uscita {code}); senza di esso il controllo è riuscito. Livelli installati: {layers}. Il gioco carica gli stessi livelli e potrebbe bloccarsi all'avvio: aggiorna o disinstalla il programma di overlay, registrazione o tuning che ha installato quello difettoso.",
|
||||
"warn.dlss_kept": "Nella cartella di installazione c'è già una libreria DLSS ({path}); l'installazione la mantiene.",
|
||||
"warn.dlss_download_failed": "Impossibile scaricare NVIDIA DLSS da {url}: {detail}. Il gioco funziona senza; la prossima esecuzione dell'installazione riproverà.",
|
||||
"ui.title": "Installazione di TotK",
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
"check.host_probe_failed": "コンピューターの確認を実行できませんでした (終了コード {code})。",
|
||||
"check.host_blocked": "セットアップがこの PC でビルドしたプログラム ({path}) を Windows がブロックしました: {detail}。スマート アプリ コントロール、App Control ポリシー、またはウイルス対策ソフトが署名のないプログラムをブロックしています。ゲーム本体も同じ方法でこの PC でビルドされるため、同じくブロックされます。ウイルス対策ソフトでセットアップのフォルダーを許可するか、Windows セキュリティ (アプリとブラウザー コントロール) でスマート アプリ コントロールをオフにしてから、セットアップをもう一度実行してください。",
|
||||
"check.vulkan_crash": "セットアップがグラフィックカードを問い合わせたときにグラフィックドライバーがクラッシュしました (終了コード {code})。他のプログラムの Vulkan レイヤーをオフにしても同じでした。グラフィックカードの最新ドライバーをインストールしてください。",
|
||||
"check.vulkan_layer_crash": "他のプログラムがインストールした Vulkan レイヤーが、この PC の Vulkan プログラムをクラッシュさせています (終了コード {code})。ゲームも起動時に同じようにクラッシュします。レイヤー: {layers}。そのレイヤーが属するプログラムを更新するかアンインストールするか (パスでフォルダーがわかります)、レイヤーをオフにしてください: ユーザー アカウントの環境変数 VK_LOADER_LAYERS_DISABLE に {disable} を設定します。その後、セットアップをもう一度実行してください。",
|
||||
"check.vulkan_layers_crash": "他のプログラムがインストールした Vulkan レイヤーが、この PC の Vulkan プログラムをクラッシュさせています (終了コード {code})。そのようなレイヤーをすべてオフにすると確認は成功し、オンのままではゲームも起動時に同じようにクラッシュします。インストール済みのレイヤーを 1 つずつオフにしても特定できませんでした。インストール済みのレイヤー: {layers}。この中のオーバーレイ、録画、チューニングのプログラムを更新するかアンインストールするか、そのようなレイヤーをすべてオフにしてください: ユーザー アカウントの環境変数 VK_LOADER_LAYERS_DISABLE に ~implicit~ を設定します (Steam などのオーバーレイもすべての Vulkan ゲームでオフになります)。その後、セットアップをもう一度実行してください。",
|
||||
"check.cpu_too_old": "このプロセッサーは、ゲームのビルド対象となる最も古いレベルである x86-64-v2 (SSE4.2、POPCNT、CMPXCHG16B) に対応していません。Intel Nehalem (2008 年) または AMD Bulldozer (2011 年) 以降が対応しています。",
|
||||
"check.vulkan_missing": "Vulkan ドライバーがインストールされていません。グラフィックカードの最新ドライバーをインストールしてください。",
|
||||
"check.vulkan_no_device": "Vulkan がグラフィックカードを見つけられません。グラフィックカードの最新ドライバーをインストールしてください。",
|
||||
@@ -113,7 +115,6 @@
|
||||
"warn.xbox_prompts_failed": "Xbox、PlayStation、PC のボタン表示を準備できませんでした (終了コード {code})。ゲームは Switch のボタン表示のままです。詳細: {log}",
|
||||
"warn.shaders_skipped": "一部のシェーダーのビルド中にグラフィックドライバーがクラッシュしたため、{count} 個を準備から除外しました。ゲームは初めて必要になったときにそれらをビルドしますが、そこでもドライバーがクラッシュする可能性があります。ドライバーを更新すると解決することがあります。詳細: {log}",
|
||||
"warn.kernel_old": "Linux {version} には、ゲームが必要とする書き込み追跡 (6.7 以降) がありません。ゲームが非常に遅くなることがあります。システムを更新すると解決します。",
|
||||
"warn.vulkan_layer_crash": "他のプログラムの Vulkan レイヤーがコンピューターの確認をクラッシュさせました (終了コード {code})。そのレイヤーなしでは確認は成功しました。インストール済みのレイヤー: {layers}。ゲームも同じレイヤーを読み込むため、起動時にクラッシュすることがあります。問題のレイヤーを入れたオーバーレイ、録画、チューニングのプログラムを更新するかアンインストールしてください。",
|
||||
"warn.dlss_kept": "インストール先フォルダーには既に DLSS ライブラリがあります ({path})。セットアップはそれを残します。",
|
||||
"warn.dlss_download_failed": "NVIDIA DLSS を {url} からダウンロードできませんでした: {detail}。ゲームはなしで動作します。次回のセットアップ実行時に再試行します。",
|
||||
"ui.title": "TotK セットアップ",
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
"check.host_probe_failed": "컴퓨터 확인이 실행되지 않았습니다(종료 코드 {code}).",
|
||||
"check.host_blocked": "설치 프로그램이 이 PC에서 빌드한 프로그램({path})을 Windows가 차단했습니다: {detail}. 스마트 앱 컨트롤, App Control 정책 또는 백신이 서명되지 않은 프로그램을 차단합니다. 게임 자체도 이 PC에서 같은 방식으로 빌드되므로 마찬가지로 차단됩니다. 백신에서 설치 프로그램 폴더를 허용하거나 Windows 보안(앱 및 브라우저 컨트롤)에서 스마트 앱 컨트롤을 끈 다음 설치 프로그램을 다시 실행하세요.",
|
||||
"check.vulkan_crash": "설치 프로그램이 그래픽 카드를 조회하는 중에 그래픽 드라이버가 충돌했습니다(종료 코드 {code}). 다른 프로그램의 Vulkan 레이어를 끈 상태에서도 마찬가지였습니다. 그래픽 카드의 최신 드라이버를 설치하세요.",
|
||||
"check.vulkan_layer_crash": "다른 프로그램이 설치한 Vulkan 레이어 때문에 이 PC의 Vulkan 프로그램이 충돌합니다(종료 코드 {code}). 게임도 시작할 때 같은 방식으로 충돌합니다. 레이어: {layers}. 그 레이어가 속한 프로그램을 업데이트하거나 제거하거나(경로에 폴더가 나옵니다), 레이어를 끄세요: 사용자 계정의 환경 변수 VK_LOADER_LAYERS_DISABLE을 {disable}(으)로 설정합니다. 그런 다음 설치 프로그램을 다시 실행하세요.",
|
||||
"check.vulkan_layers_crash": "다른 프로그램이 설치한 Vulkan 레이어 때문에 이 PC의 Vulkan 프로그램이 충돌합니다(종료 코드 {code}). 그런 레이어를 모두 끄면 확인을 통과하고, 켜 두면 게임도 시작할 때 같은 방식으로 충돌합니다. 설치된 레이어를 하나씩 꺼 봐도 어느 것인지 찾지 못했습니다. 설치된 레이어: {layers}. 이 중 오버레이, 녹화 또는 튜닝 프로그램을 업데이트하거나 제거하거나, 그런 레이어를 모두 끄세요: 사용자 계정의 환경 변수 VK_LOADER_LAYERS_DISABLE을 ~implicit~(으)로 설정합니다(Steam 같은 오버레이도 모든 Vulkan 게임에서 꺼집니다). 그런 다음 설치 프로그램을 다시 실행하세요.",
|
||||
"check.cpu_too_old": "이 프로세서에는 게임이 빌드되는 가장 오래된 수준인 x86-64-v2(SSE4.2, POPCNT, CMPXCHG16B)가 없습니다. Intel Nehalem(2008) 또는 AMD Bulldozer(2011) 이후 프로세서에 있습니다.",
|
||||
"check.vulkan_missing": "Vulkan 드라이버가 설치되어 있지 않습니다. 그래픽 카드의 최신 드라이버를 설치하세요.",
|
||||
"check.vulkan_no_device": "Vulkan이 그래픽 카드를 찾지 못했습니다. 그래픽 카드의 최신 드라이버를 설치하세요.",
|
||||
@@ -113,7 +115,6 @@
|
||||
"warn.xbox_prompts_failed": "Xbox, PlayStation 또는 PC 버튼 표시를 준비할 수 없었습니다(종료 코드 {code}). 게임은 Switch 버튼 표시를 유지합니다. 자세히: {log}",
|
||||
"warn.shaders_skipped": "일부 셰이더를 빌드하는 동안 그래픽 드라이버가 충돌하여 {count}개를 준비에서 제외했습니다. 게임은 처음 필요할 때 이를 빌드하며, 그때도 드라이버가 충돌할 수 있습니다. 드라이버를 업데이트하면 해결될 수 있습니다. 자세히: {log}",
|
||||
"warn.kernel_old": "Linux {version}에는 게임이 사용하는 쓰기 추적(6.7 이상)이 없습니다. 게임이 매우 느릴 수 있습니다. 시스템을 업데이트하면 해결됩니다.",
|
||||
"warn.vulkan_layer_crash": "다른 프로그램의 Vulkan 레이어 때문에 컴퓨터 확인이 충돌했습니다(종료 코드 {code}). 그 레이어 없이는 확인을 통과했습니다. 설치된 레이어: {layers}. 게임도 같은 레이어를 불러오므로 시작할 때 충돌할 수 있습니다. 문제의 레이어를 설치한 오버레이, 녹화 또는 튜닝 프로그램을 업데이트하거나 제거하세요.",
|
||||
"warn.dlss_kept": "설치 폴더에 이미 DLSS 라이브러리가 있습니다({path}). 설치 프로그램은 그대로 둡니다.",
|
||||
"warn.dlss_download_failed": "{url}에서 NVIDIA DLSS를 다운로드할 수 없습니다: {detail}. 게임은 없이도 실행되며, 다음 설치 실행 때 다시 시도합니다.",
|
||||
"ui.title": "TotK 설치",
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
"check.host_probe_failed": "De computercontrole is niet uitgevoerd (afsluitcode {code}).",
|
||||
"check.host_blocked": "Windows heeft een programma geblokkeerd dat de installatie op deze pc heeft gebouwd ({path}): {detail}. Slim app-beheer, een App Control-beleid of een virusscanner blokkeert niet-ondertekende programma's; het spel zelf wordt op dezelfde manier op deze pc gebouwd en zou ook worden geblokkeerd. Sta de installatiemap toe in je virusscanner, of zet Slim app-beheer uit in Windows-beveiliging (App- en browserbeheer), en start de installatie opnieuw.",
|
||||
"check.vulkan_crash": "Het grafische stuurprogramma is gecrasht toen de installatie het om de videokaarten vroeg (afsluitcode {code}), ook met de Vulkan-lagen van andere programma's uitgeschakeld. Installeer het nieuwste stuurprogramma voor je videokaart.",
|
||||
"check.vulkan_layer_crash": "Een Vulkan-laag die een ander programma heeft geïnstalleerd laat Vulkan-programma's op deze pc crashen (afsluitcode {code}), en het spel zou bij het starten op dezelfde manier crashen. De laag: {layers}. Werk het programma waar hij bij hoort bij of verwijder het (het pad toont de map), of zet de laag uit: stel voor je gebruikersaccount de omgevingsvariabele VK_LOADER_LAYERS_DISABLE in op {disable}. Start daarna de installatie opnieuw.",
|
||||
"check.vulkan_layers_crash": "Een Vulkan-laag die een ander programma heeft geïnstalleerd laat Vulkan-programma's op deze pc crashen (afsluitcode {code}): met al zulke lagen uit slaagt de controle, en met die lagen aan zou het spel bij het starten op dezelfde manier crashen. De geïnstalleerde lagen één voor één uitzetten wees hem niet aan. Geïnstalleerde lagen: {layers}. Werk de overlay-, opname- of tuningprogramma's daartussen bij of verwijder ze, of zet al zulke lagen uit: stel voor je gebruikersaccount de omgevingsvariabele VK_LOADER_LAYERS_DISABLE in op ~implicit~ (dit zet ook overlays zoals die van Steam uit in elk Vulkan-spel). Start daarna de installatie opnieuw.",
|
||||
"check.cpu_too_old": "Deze processor mist x86-64-v2 (SSE4.2, POPCNT en CMPXCHG16B), het oudste niveau waarvoor het spel wordt gebouwd. Intel Nehalem (2008) of AMD Bulldozer (2011) en nieuwer hebben het.",
|
||||
"check.vulkan_missing": "Er is geen Vulkan-stuurprogramma geïnstalleerd. Installeer het nieuwste stuurprogramma voor je videokaart.",
|
||||
"check.vulkan_no_device": "Vulkan vindt geen videokaart. Installeer het nieuwste stuurprogramma voor je videokaart.",
|
||||
@@ -113,7 +115,6 @@
|
||||
"warn.xbox_prompts_failed": "De Xbox-, PlayStation- of pc-knoppictogrammen konden niet worden voorbereid (afsluitcode {code}); het spel houdt de Switch-pictogrammen. Details: {log}",
|
||||
"warn.shaders_skipped": "Het grafische stuurprogramma is gecrasht bij het bouwen van enkele shaders, dus {count} zijn uit de voorbereiding weggelaten. Het spel bouwt ze wanneer het ze voor het eerst nodig heeft, en het stuurprogramma kan daar ook crashen; een update van het stuurprogramma kan dit oplossen. Details: {log}",
|
||||
"warn.kernel_old": "Linux {version} mist de schrijftracering waar het spel op rekent (6.7 of nieuwer); het spel kan erg traag zijn. Het systeem bijwerken lost dit op.",
|
||||
"warn.vulkan_layer_crash": "Een Vulkan-laag van een ander programma liet de computercontrole crashen (afsluitcode {code}); zonder die laag slaagde de controle. Geïnstalleerde lagen: {layers}. Het spel laadt dezelfde lagen en kan bij het starten crashen: werk het overlay-, opname- of tuningprogramma dat de foute laag installeerde bij of verwijder het.",
|
||||
"warn.dlss_kept": "Er staat al een DLSS-bibliotheek in de installatiemap ({path}); de installatie laat die staan.",
|
||||
"warn.dlss_download_failed": "NVIDIA DLSS kon niet worden gedownload van {url}: {detail}. Het spel werkt zonder; de volgende installatieronde probeert het opnieuw.",
|
||||
"ui.title": "TotK-installatie",
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
"check.host_probe_failed": "A verificação do computador não rodou (código de saída {code}).",
|
||||
"check.host_blocked": "O Windows bloqueou um programa que o instalador compilou neste PC ({path}): {detail}. O Controle Inteligente de Aplicativos, uma política de App Control ou um antivírus bloqueia programas sem assinatura; o próprio jogo é compilado do mesmo jeito neste PC e também seria bloqueado. Libere a pasta do instalador no seu antivírus ou desative o Controle Inteligente de Aplicativos na Segurança do Windows (Controle de aplicativos e do navegador) e rode o instalador de novo.",
|
||||
"check.vulkan_crash": "O driver de vídeo travou quando o instalador pediu a lista de placas de vídeo (código de saída {code}), mesmo com as camadas Vulkan de outros programas desativadas. Instale o driver mais recente da sua placa de vídeo.",
|
||||
"check.vulkan_layer_crash": "Uma camada Vulkan instalada por outro programa faz os programas Vulkan travarem neste PC (código de saída {code}), e o jogo travaria do mesmo jeito ao iniciar. A camada: {layers}. Atualize ou desinstale o programa ao qual ela pertence (o caminho mostra a pasta dele), ou desative a camada: defina para a sua conta de usuário a variável de ambiente VK_LOADER_LAYERS_DISABLE com o valor {disable}. Depois rode o instalador de novo.",
|
||||
"check.vulkan_layers_crash": "Uma camada Vulkan instalada por outro programa faz os programas Vulkan travarem neste PC (código de saída {code}): com todas essas camadas desativadas a verificação passa, e com elas o jogo travaria do mesmo jeito ao iniciar. Desativar as camadas instaladas uma de cada vez não apontou qual é. Camadas instaladas: {layers}. Atualize ou desinstale os programas de overlay, gravação ou ajuste entre elas, ou desative todas essas camadas: defina para a sua conta de usuário a variável de ambiente VK_LOADER_LAYERS_DISABLE com o valor ~implicit~ (isso também desativa overlays como o da Steam em todos os jogos Vulkan). Depois rode o instalador de novo.",
|
||||
"check.cpu_too_old": "Este processador não tem x86-64-v2 (SSE4.2, POPCNT e CMPXCHG16B), o nível mais antigo para o qual o jogo é compilado. Intel Nehalem (2008) ou AMD Bulldozer (2011) e mais novos têm.",
|
||||
"check.vulkan_missing": "Nenhum driver Vulkan está instalado. Instale o driver mais recente da sua placa de vídeo.",
|
||||
"check.vulkan_no_device": "O Vulkan não encontra nenhuma placa de vídeo. Instale o driver mais recente da sua placa de vídeo.",
|
||||
@@ -118,7 +120,6 @@
|
||||
"warn.xbox_prompts_failed": "Não foi possível preparar os ícones de botão do Xbox, do PlayStation ou do PC (código de saída {code}); o jogo mantém os ícones do Switch. Detalhes: {log}",
|
||||
"warn.shaders_skipped": "O driver gráfico travou ao compilar alguns shaders, então {count} ficaram fora da preparação. O jogo os compila quando precisar deles pela primeira vez, e o driver pode travar ali também; uma atualização do driver pode resolver. Detalhes: {log}",
|
||||
"warn.kernel_old": "O Linux {version} não tem o rastreamento de escrita de que o jogo depende (6.7 ou mais novo); o jogo pode rodar muito devagar. Atualizar o sistema resolve.",
|
||||
"warn.vulkan_layer_crash": "Uma camada Vulkan de outro programa travou a verificação do computador (código de saída {code}); sem ela a verificação passou. Camadas instaladas: {layers}. O jogo carrega as mesmas camadas e pode travar ao iniciar: atualize ou desinstale o programa de overlay, gravação ou ajuste que instalou a camada com problema.",
|
||||
"warn.dlss_kept": "Já existe uma biblioteca DLSS na pasta de instalação ({path}); a instalação a mantém.",
|
||||
"warn.dlss_download_failed": "Não foi possível baixar o NVIDIA DLSS de {url}: {detail}. O jogo funciona sem ele; a próxima execução da instalação tenta de novo.",
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
"check.host_probe_failed": "Проверка компьютера не выполнилась (код выхода {code}).",
|
||||
"check.host_blocked": "Windows заблокировала программу, которую установщик собрал на этом компьютере ({path}): {detail}. Интеллектуальное управление приложениями (Smart App Control), политика App Control или антивирус блокируют неподписанные программы; сама игра собирается на этом компьютере так же и тоже будет заблокирована. Разрешите папку установщика в антивирусе или отключите интеллектуальное управление приложениями в «Безопасности Windows» («Управление приложениями/браузером») и запустите установщик снова.",
|
||||
"check.vulkan_crash": "Видеодрайвер аварийно завершился, когда установщик запросил список видеокарт (код выхода {code}), в том числе с отключёнными слоями Vulkan других программ. Установите свежий драйвер видеокарты.",
|
||||
"check.vulkan_layer_crash": "Слой Vulkan, установленный другой программой, обрушивает Vulkan-программы на этом компьютере (код выхода {code}), и игра так же упадёт при запуске. Слой: {layers}. Обновите или удалите программу, которой он принадлежит (путь показывает её папку), или отключите слой: задайте для своей учётной записи переменную среды VK_LOADER_LAYERS_DISABLE со значением {disable}. Затем запустите установщик снова.",
|
||||
"check.vulkan_layers_crash": "Слой Vulkan, установленный другой программой, обрушивает Vulkan-программы на этом компьютере (код выхода {code}): со всеми такими слоями отключёнными проверка проходит, а с ними игра так же упадёт при запуске. Отключение установленных слоёв по одному не выявило виновника. Установленные слои: {layers}. Обновите или удалите программы оверлея, записи или настройки среди них, или отключите все такие слои: задайте для своей учётной записи переменную среды VK_LOADER_LAYERS_DISABLE со значением ~implicit~ (это также отключит оверлеи вроде оверлея Steam во всех играх на Vulkan). Затем запустите установщик снова.",
|
||||
"check.cpu_too_old": "Этому процессору не хватает x86-64-v2 (SSE4.2, POPCNT и CMPXCHG16B) — минимального уровня, под который собрана игра. Он есть у Intel Nehalem (2008) и AMD Bulldozer (2011) и новее.",
|
||||
"check.vulkan_missing": "Драйвер Vulkan не установлен. Установите свежий драйвер видеокарты.",
|
||||
"check.vulkan_no_device": "Vulkan не находит видеокарту. Установите свежий драйвер видеокарты.",
|
||||
@@ -118,7 +120,6 @@
|
||||
"warn.xbox_prompts_failed": "Не удалось подготовить подсказки кнопок Xbox, PlayStation или PC (код выхода {code}); игра оставит подсказки Switch. Подробности: {log}",
|
||||
"warn.shaders_skipped": "Графический драйвер аварийно завершился при сборке части шейдеров, поэтому {count} из них пропущены при подготовке. Игра соберёт их, когда они впервые понадобятся, и драйвер может упасть и там; обновление драйвера может это исправить. Подробности: {log}",
|
||||
"warn.kernel_old": "В Linux {version} нет отслеживания записи, на которое опирается игра (нужна версия 6.7 или новее); игра может работать очень медленно. Обновление системы это исправит.",
|
||||
"warn.vulkan_layer_crash": "Слой Vulkan другой программы обрушил проверку компьютера (код выхода {code}); без него проверка прошла. Установленные слои: {layers}. Игра загружает те же слои и может упасть при запуске: обновите или удалите программу оверлея, записи или настройки, которая установила сбойный слой.",
|
||||
"warn.dlss_kept": "В папке установки уже есть библиотека DLSS ({path}); установка её оставляет.",
|
||||
"warn.dlss_download_failed": "Не удалось загрузить NVIDIA DLSS с {url}: {detail}. Игра работает и без него; при следующем запуске установка попробует снова.",
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@
|
||||
"check.host_probe_failed": "电脑检查未能运行(退出代码 {code})。",
|
||||
"check.host_blocked": "Windows 阻止了安装程序在这台电脑上编译的程序({path}):{detail}。智能应用控制、App Control 策略或杀毒软件会阻止未签名的程序;游戏本身也以同样方式在这台电脑上编译,同样会被阻止。请在杀毒软件中允许安装程序所在的文件夹,或在 Windows 安全中心(应用和浏览器控制)中关闭智能应用控制,然后重新运行安装程序。",
|
||||
"check.vulkan_crash": "安装程序向显卡驱动查询显卡时,驱动崩溃了(退出代码 {code}),关闭其他程序的 Vulkan 层后依然如此。请为你的显卡安装最新的驱动程序。",
|
||||
"check.vulkan_layer_crash": "另一个程序安装的 Vulkan 层会让这台电脑上的 Vulkan 程序崩溃(退出代码 {code}),游戏启动时也会同样崩溃。该层:{layers}。请更新或卸载它所属的程序(路径显示了它的文件夹),或者关闭该层:为你的用户帐户设置环境变量 VK_LOADER_LAYERS_DISABLE,值为 {disable}。然后重新运行安装程序。",
|
||||
"check.vulkan_layers_crash": "另一个程序安装的 Vulkan 层会让这台电脑上的 Vulkan 程序崩溃(退出代码 {code}):关闭所有此类层后检查通过,开着它们时游戏启动也会同样崩溃。逐个关闭已安装的层未能找出是哪一个。已安装的层:{layers}。请更新或卸载其中的叠加层、录制或调校程序,或者关闭所有此类层:为你的用户帐户设置环境变量 VK_LOADER_LAYERS_DISABLE,值为 ~implicit~(这也会在所有 Vulkan 游戏中关闭 Steam 等叠加层)。然后重新运行安装程序。",
|
||||
"check.cpu_too_old": "此处理器不支持 x86-64-v2(SSE4.2、POPCNT 和 CMPXCHG16B),这是游戏所需的最低指令集。Intel Nehalem(2008 年)或 AMD Bulldozer(2011 年)及更新的处理器都支持。",
|
||||
"check.vulkan_missing": "未安装 Vulkan 驱动。请为你的显卡安装最新的驱动程序。",
|
||||
"check.vulkan_no_device": "Vulkan 找不到显卡。请为你的显卡安装最新的驱动程序。",
|
||||
@@ -118,7 +120,6 @@
|
||||
"warn.xbox_prompts_failed": "无法准备 Xbox、PlayStation 或 PC 按键提示(退出代码 {code});游戏将继续使用 Switch 按键提示。详情:{log}",
|
||||
"warn.shaders_skipped": "显卡驱动在编译部分着色器时崩溃,因此有 {count} 个着色器未被预先准备。游戏会在首次需要时编译它们,驱动在那时也可能崩溃;更新驱动可能会解决。详情:{log}",
|
||||
"warn.kernel_old": "Linux {version} 缺少游戏依赖的写入跟踪功能(需要 6.7 或更新版本);游戏可能运行得很慢。更新系统即可解决。",
|
||||
"warn.vulkan_layer_crash": "另一个程序的 Vulkan 层导致电脑检查崩溃(退出代码 {code});去掉它后检查通过。已安装的层:{layers}。游戏会加载同样的层,启动时可能崩溃:请更新或卸载安装了出错层的叠加层、录制或调校程序。",
|
||||
"warn.dlss_kept": "安装文件夹中已有 DLSS 库({path});安装程序将保留它。",
|
||||
"warn.dlss_download_failed": "无法从 {url} 下载 NVIDIA DLSS:{detail}。游戏无需它也能运行;下次运行安装程序时会重试。",
|
||||
|
||||
|
||||
+84
-25
@@ -1365,6 +1365,8 @@ class HostProbeTest(unittest.TestCase):
|
||||
'{"name": "Intel(R) UHD Graphics", "api": [1, 3, 215], "type": 1}]}\n'
|
||||
CRASHED_IN_VULKAN = '{"x86_64_v2": true, "x86_64_v3": true, "loader": true, '
|
||||
ACCESS_VIOLATION = 0xC0000005
|
||||
LAYERS = [('VK_LAYER_VALVE_steam_overlay_64', Path('C:/Steam/SteamOverlayVulkanLayer64.json')),
|
||||
('VK_LAYER_BAD_overlay', Path('C:/Bad/BadOverlay64.json'))]
|
||||
|
||||
def setUp(self):
|
||||
self.ctx = SimpleNamespace(reporter=Reporter(out=io.StringIO()))
|
||||
@@ -1373,21 +1375,37 @@ class HostProbeTest(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
self.ctx.reporter.close()
|
||||
|
||||
def probe(self, *results):
|
||||
"""Runs probe_host with subprocess.run answering each call with the next of results (an exception is raised)."""
|
||||
def probe(self, *results, layers=()):
|
||||
"""Runs probe_host with subprocess.run answering each call with the next of results (an exception is raised,
|
||||
a callable gets the run's VK_LOADER_LAYERS_DISABLE)."""
|
||||
answers = iter(results)
|
||||
|
||||
def run(command, **kwargs):
|
||||
self.calls.append(kwargs.get('env'))
|
||||
env = kwargs.get('env')
|
||||
self.calls.append(env)
|
||||
r = next(answers)
|
||||
if callable(r):
|
||||
r = r((env or {}).get('VK_LOADER_LAYERS_DISABLE'))
|
||||
if isinstance(r, BaseException):
|
||||
raise r
|
||||
return subprocess.CompletedProcess(command, r[0], r[1], '')
|
||||
|
||||
with mock.patch.object(steps.subprocess, 'run', run), \
|
||||
mock.patch.object(steps, 'implicit_vulkan_layers', lambda: ['BadOverlay64.json']):
|
||||
mock.patch.object(steps, 'implicit_vulkan_layers', lambda: list(layers)):
|
||||
return steps.Check().probe_host(self.ctx, Path('hostcheck.exe'))
|
||||
|
||||
def bad_layer(self, disabled):
|
||||
"""The probe on a PC whose VK_LAYER_BAD_overlay is broken, with the layers in disabled turned off."""
|
||||
if disabled in ('~implicit~', 'VK_LAYER_BAD_overlay'):
|
||||
return 0, self.GOOD
|
||||
return self.ACCESS_VIOLATION, self.CRASHED_IN_VULKAN
|
||||
|
||||
def only_all_off(self, disabled):
|
||||
"""The probe on a PC whose broken layer is not in the list (a driver's, under its adapter key)."""
|
||||
if disabled == '~implicit~':
|
||||
return 0, self.GOOD
|
||||
return self.ACCESS_VIOLATION, self.CRASHED_IN_VULKAN
|
||||
|
||||
def events(self, kind):
|
||||
return [e for e in map(json.loads, self.ctx.reporter.out.getvalue().splitlines()) if e['type'] == kind]
|
||||
|
||||
@@ -1397,20 +1415,33 @@ class HostProbeTest(unittest.TestCase):
|
||||
self.assertEqual(self.calls, [None])
|
||||
self.assertEqual(self.events('warning'), [])
|
||||
|
||||
def test_a_crash_in_a_vulkan_layer_is_run_again_without_the_implicit_layers(self):
|
||||
host = self.probe((self.ACCESS_VIOLATION, self.CRASHED_IN_VULKAN), (0, self.GOOD))
|
||||
self.assertEqual(host['devices'][0]['name'], 'Intel(R) UHD Graphics')
|
||||
self.assertIsNone(self.calls[0])
|
||||
self.assertEqual(self.calls[1]['VK_LOADER_LAYERS_DISABLE'], '~implicit~')
|
||||
[w] = self.events('warning')
|
||||
self.assertEqual(w['id'], 'warn.vulkan_layer_crash')
|
||||
self.assertEqual(w['params']['layers'], 'BadOverlay64.json')
|
||||
def test_a_crashing_layer_is_named_and_stops_the_install(self):
|
||||
# totk.exe --prepare-shaders and the game load the same layer, so going on would fail after lift and compile
|
||||
with self.assertRaises(steps.InstallError) as e:
|
||||
self.probe(*[self.bad_layer] * 4, layers=self.LAYERS)
|
||||
self.assertEqual(e.exception.id, 'check.vulkan_layer_crash')
|
||||
self.assertEqual(e.exception.params['disable'], 'VK_LAYER_BAD_overlay')
|
||||
self.assertIn('VK_LAYER_BAD_overlay (', e.exception.params['layers'])
|
||||
self.assertNotIn('steam', e.exception.params['layers'])
|
||||
self.assertEqual([c and c['VK_LOADER_LAYERS_DISABLE'] for c in self.calls],
|
||||
[None, '~implicit~', 'VK_LAYER_VALVE_steam_overlay_64', 'VK_LAYER_BAD_overlay'])
|
||||
if os.name == 'nt':
|
||||
self.assertEqual(w['params']['code'], '0xC0000005')
|
||||
self.assertEqual(e.exception.params['code'], '0xC0000005')
|
||||
|
||||
def test_a_crashing_layer_that_cannot_be_singled_out_lists_the_installed_ones(self):
|
||||
with self.assertRaises(steps.InstallError) as e:
|
||||
self.probe(*[self.only_all_off] * 4, layers=self.LAYERS)
|
||||
self.assertEqual(e.exception.id, 'check.vulkan_layers_crash')
|
||||
self.assertIn('VK_LAYER_VALVE_steam_overlay_64', e.exception.params['layers'])
|
||||
self.assertIn('VK_LAYER_BAD_overlay', e.exception.params['layers'])
|
||||
with self.assertRaises(steps.InstallError) as e:
|
||||
self.probe(self.only_all_off, self.only_all_off)
|
||||
self.assertEqual((e.exception.id, e.exception.params['layers']), ('check.vulkan_layers_crash', '?'))
|
||||
|
||||
def test_a_driver_that_crashes_without_the_layers_too_stops_the_install(self):
|
||||
with self.assertRaises(steps.InstallError) as e:
|
||||
self.probe((self.ACCESS_VIOLATION, self.CRASHED_IN_VULKAN), (self.ACCESS_VIOLATION, self.CRASHED_IN_VULKAN))
|
||||
self.probe((self.ACCESS_VIOLATION, self.CRASHED_IN_VULKAN), (self.ACCESS_VIOLATION, self.CRASHED_IN_VULKAN),
|
||||
layers=self.LAYERS)
|
||||
self.assertEqual(e.exception.id, 'check.vulkan_crash')
|
||||
self.assertEqual(len(self.calls), 2)
|
||||
|
||||
@@ -1424,12 +1455,14 @@ class HostProbeTest(unittest.TestCase):
|
||||
|
||||
@unittest.skipUnless(os.name == 'nt', 'winerror is set on Windows only')
|
||||
def test_a_probe_blocked_by_smart_app_control_names_the_policy(self):
|
||||
blocked = OSError(None, 'An Application Control policy has blocked this file', None, 4551)
|
||||
with self.assertRaises(steps.InstallError) as e:
|
||||
self.probe(blocked)
|
||||
self.assertEqual(e.exception.id, 'check.host_blocked')
|
||||
self.assertIn('Application Control', e.exception.params['detail'])
|
||||
self.assertTrue(e.exception.params['path'].endswith('hostcheck.exe'))
|
||||
for code in (4551, 4559, 1260, 225):
|
||||
with self.subTest(code=code):
|
||||
blocked = OSError(None, 'An Application Control policy has blocked this file', None, code)
|
||||
with self.assertRaises(steps.InstallError) as e:
|
||||
self.probe(blocked)
|
||||
self.assertEqual(e.exception.id, 'check.host_blocked')
|
||||
self.assertIn('Application Control', e.exception.params['detail'])
|
||||
self.assertTrue(e.exception.params['path'].endswith('hostcheck.exe'))
|
||||
|
||||
def test_another_start_failure_is_reported_not_raised(self):
|
||||
with self.assertRaises(steps.InstallError) as e:
|
||||
@@ -1437,14 +1470,40 @@ class HostProbeTest(unittest.TestCase):
|
||||
self.assertEqual(e.exception.id, 'check.host_probe_failed')
|
||||
self.assertIn('cannot find', e.exception.params['code'])
|
||||
|
||||
def test_a_failed_host_check_runs_once_per_install(self):
|
||||
# key() probes first and run() reports: the crashing probe and its retries must not run twice
|
||||
check, ctx = steps.Check(), SimpleNamespace()
|
||||
failure = steps.InstallError('check.vulkan_crash', code='1')
|
||||
with mock.patch.object(steps.Check, 'check_host', side_effect=failure) as probe:
|
||||
check.key(ctx)
|
||||
with self.assertRaises(steps.InstallError) as e:
|
||||
check.host(ctx)
|
||||
self.assertEqual(e.exception.id, 'check.vulkan_crash')
|
||||
self.assertEqual(probe.call_count, 1)
|
||||
|
||||
def test_layer_names_come_from_the_manifests_the_loader_reads(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
folder = Path(tmp)
|
||||
(folder / 'one.json').write_text(json.dumps({'file_format_version': '1.1.2', 'layer': {
|
||||
'name': 'VK_LAYER_TEST_one', 'library_path': 'one.dll'}}), encoding='utf-8-sig')
|
||||
(folder / 'two.json').write_text(json.dumps({'file_format_version': '1.0.1', 'layers': [
|
||||
{'name': 'VK_LAYER_TEST_a'}, {'name': 'VK_LAYER_TEST_b'}]}), encoding='utf-8')
|
||||
(folder / 'broken.json').write_text('{', encoding='utf-8')
|
||||
with mock.patch.dict(os.environ, {'VK_ADD_IMPLICIT_LAYER_PATH': tmp}):
|
||||
mine = [(n, p.name) for n, p in steps.implicit_vulkan_layers() if p.parent == folder]
|
||||
self.assertEqual(mine, [('VK_LAYER_TEST_one', 'one.json'), ('VK_LAYER_TEST_a', 'two.json'),
|
||||
('VK_LAYER_TEST_b', 'two.json')])
|
||||
|
||||
def test_messages_in_every_language(self):
|
||||
need = {'check.host_blocked': ('{path}', '{detail}'), 'check.vulkan_crash': ('{code}',),
|
||||
'check.vulkan_layer_crash': ('{code}', '{layers}', '{disable}', 'VK_LOADER_LAYERS_DISABLE'),
|
||||
'check.vulkan_layers_crash': ('{code}', '{layers}', 'VK_LOADER_LAYERS_DISABLE', '~implicit~')}
|
||||
for path in sorted((ROOT / 'installer' / 'text').glob('*.json')):
|
||||
text = json.loads(path.read_text(encoding='utf-8'))
|
||||
self.assertIn('{path}', text['check.host_blocked'], path.name)
|
||||
self.assertIn('{detail}', text['check.host_blocked'], path.name)
|
||||
self.assertIn('{code}', text['check.vulkan_crash'], path.name)
|
||||
self.assertIn('{code}', text['warn.vulkan_layer_crash'], path.name)
|
||||
self.assertIn('{layers}', text['warn.vulkan_layer_crash'], path.name)
|
||||
self.assertNotIn('warn.vulkan_layer_crash', text, path.name)
|
||||
for key, parts in need.items():
|
||||
for part in parts:
|
||||
self.assertIn(part, text[key], f'{path.name} {key}')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in new issue
Block a user