mirror of
https://github.com/DoubleGhosty/cool_fox.git
synced 2026-12-06 09:08:36 +00:00
104 lines
5.6 KiB
Batchfile
104 lines
5.6 KiB
Batchfile
@echo off
|
|
setlocal EnableExtensions DisableDelayedExpansion
|
|
if not "%~2"=="" goto :usage
|
|
if not "%~1"=="" if /i not "%~1"=="pareto-residency" if /i not "%~1"=="fast" goto :usage
|
|
if not defined VICTORY_CONSOLE set "VICTORY_CONSOLE=series-x"
|
|
if /i "%VICTORY_CONSOLE%"=="series-s" (
|
|
set "_console=series-s"
|
|
) else if /i "%VICTORY_CONSOLE%"=="series-x" (
|
|
set "_console=series-x"
|
|
) else (
|
|
echo VICTORY_CONSOLE must be series-s or series-x. 1>&2
|
|
exit /b 2
|
|
)
|
|
rem The title's folder: VICTORY_GAME_DIR, else game_dir in victory.toml.
|
|
set "_cfg_game_dir="
|
|
if not defined VICTORY_GAME_DIR if exist "%~dp0victory.toml" (
|
|
for /f "usebackq eol=# tokens=1,* delims==" %%A in ("%~dp0victory.toml") do (
|
|
for /f "tokens=1" %%K in ("%%A") do if /i "%%K"=="game_dir" (
|
|
for /f "tokens=* delims= " %%V in ("%%B") do set "_cfg_game_dir=%%~V"
|
|
)
|
|
)
|
|
)
|
|
if defined _cfg_game_dir set "VICTORY_GAME_DIR=%_cfg_game_dir:'=%"
|
|
if not defined VICTORY_GAME_DIR (
|
|
echo Set VICTORY_GAME_DIR or game_dir in victory.toml to the folder containing your title executable. 1>&2
|
|
exit /b 2
|
|
)
|
|
if not exist "%VICTORY_GAME_DIR%\game_scarlett_master.exe" (
|
|
echo game_scarlett_master.exe not found in VICTORY_GAME_DIR: "%VICTORY_GAME_DIR%" 1>&2
|
|
exit /b 2
|
|
)
|
|
set "runner=%~dp0victory-3d-rtx-pareto-residency.exe"
|
|
if not exist "%runner%" set "runner=%~dp0target\release\victory.exe"
|
|
if not exist "%runner%" (
|
|
echo Extract the Windows release or run cargo build --release --locked -p victory. 1>&2
|
|
exit /b 2
|
|
)
|
|
if /i "%~1"=="fast" (
|
|
if not defined VICTORY_WAVE_RETIRE set "VICTORY_WAVE_RETIRE=1"
|
|
if not defined VICTORY_AMBIENT set "VICTORY_AMBIENT=0.8"
|
|
if not defined VICTORY_ALIAS_COALESCE set "VICTORY_ALIAS_COALESCE=1"
|
|
if not defined VICTORY_THIN set "VICTORY_THIN=1"
|
|
if not defined VICTORY_JOIN_PARTS set "VICTORY_JOIN_PARTS=8"
|
|
if not defined VICTORY_PORT_CONSTANTS set "VICTORY_PORT_CONSTANTS=1"
|
|
if not defined VICTORY_PORT_CBV set "VICTORY_PORT_CBV=1"
|
|
if not defined VICTORY_PIPELINE_BOOK set "VICTORY_PIPELINE_BOOK=1"
|
|
)
|
|
if not defined VICTORY_AMBIENT_AIR set "VICTORY_AMBIENT_AIR=1.5"
|
|
if not defined VICTORY_CACHE_DIR set "VICTORY_CACHE_DIR=%LOCALAPPDATA%\VIctory\cache-pareto"
|
|
if not defined VICTORY_TEXTURE_NO_WAIT set "VICTORY_TEXTURE_NO_WAIT=1"
|
|
if not defined VICTORY_WIDE_BACK set "VICTORY_WIDE_BACK=1"
|
|
if not defined VICTORY_CARD_REHASH_RUNS set "VICTORY_CARD_REHASH_RUNS=1"
|
|
if not defined VICTORY_JOIN_COPIES set "VICTORY_JOIN_COPIES=1"
|
|
if not defined VICTORY_INDIRECT_WINDOW set "VICTORY_INDIRECT_WINDOW=1"
|
|
if not defined VICTORY_RELAY_COPY set "VICTORY_RELAY_COPY=1"
|
|
if not defined VICTORY_CARD_STEPS set "VICTORY_CARD_STEPS=2"
|
|
if not defined VICTORY_INDIRECT_BATCH set "VICTORY_INDIRECT_BATCH=2"
|
|
if not defined VICTORY_MAP_THREADS set "VICTORY_MAP_THREADS=1"
|
|
if not defined VICTORY_CARD_AWAKE set "VICTORY_CARD_AWAKE=1"
|
|
if not defined VICTORY_SHOW_AFTER set "VICTORY_SHOW_AFTER=1"
|
|
rem A constant, not the frame estimate: walking into a bright doorway raised
|
|
rem the estimate and washed the whole frame out. constant:1.0 is even light.
|
|
if not defined VICTORY_AMBIENT set "VICTORY_AMBIENT=constant:0.8"
|
|
rem The write guard misses some titles' writes: skin on a guard's arms and the
|
|
rem phone's frame read garbage (colour noise) until every check hashed the
|
|
rem texture again. Costs some CPU; the frame rate held at 5-7 fps here.
|
|
if not defined VICTORY_TEXTURE_GUARD set "VICTORY_TEXTURE_GUARD=0"
|
|
rem The asynchronous submission paths stay off on NVIDIA: with THIN the head
|
|
rem skin of people in play is not drawn (eyes and teeth are), and JOIN_PARTS
|
|
rem repeats frames of the opening video. Set them to 1 to try instead.
|
|
if not defined VICTORY_THIN set "VICTORY_THIN=0"
|
|
if not defined VICTORY_JOIN_PARTS set "VICTORY_JOIN_PARTS=0"
|
|
rem Renderer ports 6 & 7 (write-guard lock sharing, journal split) save 2-5 ms
|
|
rem per frame and are safe on every tested GPU. Ports 1 & 5 stay opt-in: on
|
|
rem 8 GB NVIDIA cards PORT_CBV=1 can drop road surfaces and
|
|
rem PORT_CONSTANTS+PORT_CBV can raise a C++ exception (#15).
|
|
if not defined VICTORY_PORT_GUARD set "VICTORY_PORT_GUARD=1"
|
|
if not defined VICTORY_PORT_JOURNAL set "VICTORY_PORT_JOURNAL=1"
|
|
if not defined VICTORY_PORT_CONSTANTS set "VICTORY_PORT_CONSTANTS=0"
|
|
if not defined VICTORY_PORT_CBV set "VICTORY_PORT_CBV=0"
|
|
if not defined VICTORY_LIBRARY_STORE_LATER set "VICTORY_LIBRARY_STORE_LATER=1"
|
|
if not defined VICTORY_PIPELINE_WAIT_MS set "VICTORY_PIPELINE_WAIT_MS=0"
|
|
if not defined VICTORY_UPLOAD_AHEAD set "VICTORY_UPLOAD_AHEAD=1"
|
|
if not defined VICTORY_LEVELS_ON_DEMAND set "VICTORY_LEVELS_ON_DEMAND=1"
|
|
if not defined VICTORY_CARD_BUFFERS_MIN_KB set "VICTORY_CARD_BUFFERS_MIN_KB=64"
|
|
rem The title ends itself (a write to 0 at +0x23cf683) when its main loop has
|
|
rem not ticked for 30 s, as while its first frames wait for their compute
|
|
rem pipelines: while bit 0 of title+0x71b6330 is set its watchdog starts over.
|
|
if not defined VICTORY_POKE set "VICTORY_POKE=b99f876b74d4a77f@71b6330:1"
|
|
if not defined VICTORY_LOG if not defined RUST_LOG set "VICTORY_LOG=warn"
|
|
rem Series X, not S: on an 8 GB card series-s drops the head/skin meshes (faces
|
|
rem render as eyes and teeth only); series-x renders them. Verified 2026-11-26.
|
|
rem Every session logs to logs\session-<date>-<time>.log (UTC) beside this
|
|
rem launcher (victory.exe keeps the newest 20), so a run can be looked at after
|
|
rem the window is closed. Set VICTORY_LOG_FILE or VICTORY_LOG_DIR to log elsewhere.
|
|
if not defined VICTORY_LOG_FILE if not defined VICTORY_LOG_DIR set "VICTORY_LOG_DIR=%~dp0logs"
|
|
echo VIctory console: %_console%
|
|
"%runner%" run "%VICTORY_GAME_DIR%\game_scarlett_master.exe" --console %_console% --execute
|
|
exit /b %errorlevel%
|
|
|
|
:usage
|
|
echo Usage: Play-VIctory.cmd [fast ^| pareto-residency] 1>&2
|
|
exit /b 2
|