upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-11-29 21:49:50 -0500
committerubiquitarianism <283527159+ubiquitarianism@users.noreply.github.com>2026-11-29 21:49:50 -0500
commit95bc33f6e2da3e751658f4a5317fd53def030f4a (patch)
treea162513192b46b1c08eb9f2814f0d3602186785b /scripts
parent182d0c17462f86d788c2203da6dd524442a76a8d (diff)
Built-in keyboard prompts, and both prompt movies built for every player
tools/pc_prompt_glyphs.py draws its own key caps, arrow keys and mouse in code when --glyphs is not given (no pictures, Pillow or font), with the keys of the runtime's on-foot table, each inside the outline of the Xbox glyph it replaces and covering no more of the canvas (measured on the user's movie, numbers only). tools/prompt_glyph_movies.py builds pc_ and ps_prompt_glyphs.gfx over the title's movie (standalone if data.rpf cannot be read) into d3d12/target, where leonida.exe looks; play-nvidia.ps1 runs it before a start and make_game.py in its runtime stage. A movie the player made is never touched or shadowed; its own are stamped and rebuilt only when inputs change.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/play-d3d12.ps16
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/play-d3d12.ps1 b/scripts/play-d3d12.ps1
index 4bcaad50c..2db9a7b2b 100644
--- a/scripts/play-d3d12.ps1
+++ b/scripts/play-d3d12.ps1
@@ -38,6 +38,8 @@
38# made before the title starts (minutes the first time, seconds after) 38# made before the title starts (minutes the first time, seconds after)
39# -Log the runtime's log goes to a file under %LOCALAPPDATA%\Leonida\logs 39# -Log the runtime's log goes to a file under %LOCALAPPDATA%\Leonida\logs
40# -DryRun prints the settings this start would run with and stops: nothing is built or started 40# -DryRun prints the settings this start would run with and stops: nothing is built or started
41# -PcGlyphs a folder of your own pictures for the keyboard-and-mouse button prompts instead of the built-in key
42# caps (docs/prompt_glyphs.md; both prompt movies are built before the start when missing)
41# 43#
42# Builds d3d12/ when it is missing (d3d12\scripts\build-nvidia.ps1: the diag profile, with DLSS when NVIDIA's files 44# Builds d3d12/ when it is missing (d3d12\scripts\build-nvidia.ps1: the diag profile, with DLSS when NVIDIA's files
43# are there), keeps the caches and saves under -Data, and hands everything else to d3d12\scripts\play-nvidia.ps1: 45# are there), keeps the caches and saves under -Data, and hands everything else to d3d12\scripts\play-nvidia.ps1:
@@ -67,7 +69,8 @@ param(
67 [switch]$Capture, 69 [switch]$Capture,
68 [switch]$NoPrecompile, 70 [switch]$NoPrecompile,
69 [switch]$Log, 71 [switch]$Log,
70 [switch]$DryRun 72 [switch]$DryRun,
73 [string]$PcGlyphs = ''
71) 74)
72 75
73$ErrorActionPreference = "Stop" 76$ErrorActionPreference = "Stop"
@@ -106,4 +109,5 @@ foreach ($switch in 'Quality', 'NoDlss', 'NoFrameGen', 'MotionBlur', 'RayTracing
106if ($Resolution) { $launch.Resolution = $Resolution } 109if ($Resolution) { $launch.Resolution = $Resolution }
107if ($Lowest) { $launch.Lowest = $Lowest } 110if ($Lowest) { $launch.Lowest = $Lowest }
108if ($Adapter) { $launch.Adapter = $Adapter } 111if ($Adapter) { $launch.Adapter = $Adapter }
112if ($PcGlyphs) { $launch.PcGlyphs = (Resolve-Path $PcGlyphs).Path }
109& (Join-Path $runtime "scripts\play-nvidia.ps1") @launch 113& (Join-Path $runtime "scripts\play-nvidia.ps1") @launch