Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ The release notes for each tag are taken from the section for that version.

## Unreleased

### New
- **Shaders prepared before Play:** on builds that offer it, Play first translates the game's shaders (`victory shaders`) once per build, keyed on the build's shader translator (`victory shader-fingerprint`) so a build with the same translator is not translated again. It then makes the pipelines earlier runs wrote down (`victory warm`), and only when runs wrote down new ones. The game no longer compiles them while it plays. A step that fails is logged and Play goes on; Stop stops it. The same preparation KLBF Lab's own launcher does.
- **KLBF Lab's own switches:** `KLBF_*` lines in Launch options (frame-rate cap, DirectStorage cache, memory stack and the rest of its LAUNCH-OPTIONS.md) now reach the game, and are read from a project's launch scripts and listed in problem reports. VILauncher never sets `KLBF_LAUNCHER`.

- **Graphics presets are whole setups now** (after KLBF Lab's Console S, Console X and Low spec). Each one sets the console profile, render scale, output and memory saver together, and fits the output to the screen. **Fast** is Series S at half scale with the memory saver, for 8 GB cards or 16 GB of RAM. **Balanced** is Series S at three quarters. **Best quality** is Series X at full resolution. The Graphics tab says which one suits this PC.
- **Memory saver** (Graphics): Normal, Light (16 GB of RAM) or Very light (softer textures, for 8 GB cards). It gives idle memory back to the system sooner, against out-of-memory crashes, and doesn't raise the frame rate. Its switches come from vix0e0e's VIctory-LITE (GPL-3.0), as KLBF Lab carries them, and are set under both their `VICTORY_` and `KLBF_` names. After an out-of-memory crash, Fix and verify turns it on.
- **Fit screen (16:9) output:** the game's output at the main display's height, no wider than it (a 3440x1440 screen gets 2560x1440). Windows reads the display; elsewhere it is 1920x1080.
- **Frame-rate report after each session** (in the log), after KLBF Lab's shared measurement method: average, median, 5 % and 1 % lows, and the share of time spent at 60+, 30-60, 20-30, 10-20, 5-10 and under 5 fps. The first two minutes, while shaders compile, are left out.

### Fixed
- **A project's play.ps1 defaults:** only what the script sets when run with no arguments is used. Before, both sides of an `if ($Safe) { ... } else { ... }` were applied together. A value the script fills from a variable (`VICTORY_GAME_DIR = $Game`) was passed on as that text, and replaced the game folder.
- **Builds that start only from their own launcher:** when a build refuses to start from another launcher (KLBF Lab since v26.11.9), the log now says so and names the launcher to use, instead of only showing the failure.
- **Fix and verify after a rebuild:** when the build finishes but its program is missing, the launcher says where it expected it and suggests checking antivirus, instead of telling you to press Install.
- **Linux builds of Windows-only games:** a build that fails because the project uses Windows-only libraries now says so in the log, instead of only showing the compiler's error.

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ chmod +x VILauncher_*_amd64.AppImage
- **Report a problem.** After a failed job, one click opens a GitHub issue with the log filled in. Names and folders are removed first. Nothing is sent until you press Submit on GitHub.
- **Storage.** Settings shows how much disk each project uses (sources, builds, previous build, shader cache, saves). You can clear previous builds and shader caches. Saves are never cleared from here.
- **Saves.** Continue a save, start fresh, copy from another build, or start from a named checkpoint. Import or export save ZIPs.
- **Launch presets and graphics.** Named argument and environment presets per project, and per-project graphics overrides.
- **Shader warm-up.** Builds the shader cache before the first launch where a project supports it.
- **Launch presets and graphics.** Named argument and environment presets per project, and per-project graphics overrides. The graphics presets (Fast, Balanced, Best quality) each set a whole setup: console profile, render scale, an output fitted to your screen, and a memory saver for 16 GB PCs and 8 GB cards. The Graphics tab says which one suits your PC.
- **Shader warm-up.** Builds the shader cache before the first launch where a project supports it. On builds that offer it, Play translates the game's shaders once per shader translator and makes the pipelines earlier runs recorded, so the game doesn't compile them while you play.
- **Session frame-rate report.** After each Play the log gives the average, median, 5 % and 1 % lows, and the time spent in each frame-rate band, leaving out the first two minutes.
- **Activity log.** Full Git and Cargo output, copyable and exportable. Each job's log is also kept on disk.
- **AI-agent access (off by default).** Lets an AI agent read logs and, after you confirm, apply a patch and run the project's build. See [Agent tools](#agent-tools).
- **Screenshot mode.** Hides names, paths, notes and logs for sharing pictures.
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/locales/es/launcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"could not remove {path}: {error}": "no se pudo eliminar {path}: {error}",
"Warming up shaders and pipelines (this can take hours)": "Precompilando shaders y pipelines (esto puede tardar horas)",
"Warming up shaders (the first time takes minutes)": "Precompilando shaders (la primera vez tarda minutos)",
"Preparing the game's shaders for this build (once per build)": "Preparando los shaders del juego para esta compilación (una vez por compilación)",
"Preparing the pipelines of earlier runs (only new ones)": "Preparando los pipelines de partidas anteriores (solo los nuevos)",
"Installing {what} (this can take a while)": "Instalando {what} (esto puede tardar un rato)",
"Waiting for the Command Line Tools installer": "Esperando al instalador de las herramientas de línea de comandos",
"the {what} installer was not finished (its window may still be open). Run Install missing tools again when it is.": "el instalador de {what} no terminó (su ventana puede seguir abierta). Vuelve a ejecutar Instalar herramientas faltantes cuando termine.",
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/locales/fr/launcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"could not remove {path}: {error}": "impossible de supprimer {path} : {error}",
"Warming up shaders and pipelines (this can take hours)": "Précompilation des shaders et des pipelines (cela peut prendre des heures)",
"Warming up shaders (the first time takes minutes)": "Précompilation des shaders (la première fois, cela prend quelques minutes)",
"Preparing the game's shaders for this build (once per build)": "Préparation des shaders du jeu pour ce build (une fois par build)",
"Preparing the pipelines of earlier runs (only new ones)": "Préparation des pipelines des parties précédentes (seulement les nouveaux)",
"Installing {what} (this can take a while)": "Installation en cours : {what} (cela peut prendre un certain temps)",
"Waiting for the Command Line Tools installer": "En attente du programme d’installation des outils en ligne de commande",
"the {what} installer was not finished (its window may still be open). Run Install missing tools again when it is.": "l’installation n’est pas terminée : {what} (sa fenêtre est peut-être encore ouverte). Relancez Installer les outils manquants une fois qu’elle l’est.",
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/locales/ru/launcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"could not remove {path}: {error}": "не удалось удалить {path}: {error}",
"Warming up shaders and pipelines (this can take hours)": "Предкомпиляция шейдеров и конвейеров (может занять несколько часов)",
"Warming up shaders (the first time takes minutes)": "Предкомпиляция шейдеров (в первый раз занимает несколько минут)",
"Preparing the game's shaders for this build (once per build)": "Подготовка шейдеров игры для этой сборки (один раз на сборку)",
"Preparing the pipelines of earlier runs (only new ones)": "Подготовка конвейеров из прошлых запусков (только новых)",
"Installing {what} (this can take a while)": "Установка: {what} (может занять некоторое время)",
"Waiting for the Command Line Tools installer": "Ожидание установщика инструментов командной строки",
"the {what} installer was not finished (its window may still be open). Run Install missing tools again when it is.": "установка {what} не завершена (возможно, окно ещё открыто). Запустите «Установить недостающие инструменты» снова после завершения.",
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/locales/zh-CN/launcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"could not remove {path}: {error}": "无法删除 {path}:{error}",
"Warming up shaders and pipelines (this can take hours)": "正在预编译着色器和管线(可能需要数小时)",
"Warming up shaders (the first time takes minutes)": "正在预编译着色器(首次需要几分钟)",
"Preparing the game's shaders for this build (once per build)": "正在为此版本准备游戏着色器(每个版本一次)",
"Preparing the pipelines of earlier runs (only new ones)": "正在准备之前运行记录的管线(仅新的)",
"Installing {what} (this can take a while)": "正在安装 {what}(可能需要一段时间)",
"Waiting for the Command Line Tools installer": "正在等待命令行工具安装程序",
"the {what} installer was not finished (its window may still be open). Run Install missing tools again when it is.": "{what} 安装程序尚未完成(它的窗口可能仍处于打开状态)。完成后请再次点击“安装缺少的工具”。",
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/locales/zh-TW/launcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"could not remove {path}: {error}": "無法刪除 {path}:{error}",
"Warming up shaders and pipelines (this can take hours)": "正在預先編譯著色器和管線(可能需要數小時)",
"Warming up shaders (the first time takes minutes)": "正在預先編譯著色器(第一次需要幾分鐘)",
"Preparing the game's shaders for this build (once per build)": "正在為此版本準備遊戲著色器(每個版本一次)",
"Preparing the pipelines of earlier runs (only new ones)": "正在準備先前執行記錄的管線(僅新的)",
"Installing {what} (this can take a while)": "正在安裝 {what}(可能需要一段時間)",
"Waiting for the Command Line Tools installer": "正在等待命令列工具安裝程式",
"the {what} installer was not finished (its window may still be open). Run Install missing tools again when it is.": "{what} 安裝程式尚未完成(它的視窗可能還開著)。完成後請再按一次「安裝缺少的工具」。",
Expand Down
28 changes: 27 additions & 1 deletion src-tauri/src/diagnose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,18 @@ pub(crate) fn from_log(lines: &[String]) -> Vec<Finding> {
advice: None,
});
}
// KLBF Lab (v26.11.9 on) refuses a `run` its own launcher did not start, by its author's
// choice. The launcher respects that and does not start it as its own launcher would.
if has(&["starts only from its own launcher"]) {
found.push(Finding {
title: "This build starts only from its own launcher.".to_string(),
detail: "Its author made it refuse other launchers, so VILauncher can build it and prepare its shaders but cannot start the game. Start it from the launcher that comes with it (for KLBF Lab: KLBF Lab.exe from its release, or play.ps1 in its folder).".to_string(),
fix: None,
heavy: false,
data: None,
advice: None,
});
}
// The game's own crash reporter prints this when its code stops on an exception before
// or while the title starts. The usual cause is an experimental switch.
if has(&["VIctory: unhandled exception"]) {
Expand Down Expand Up @@ -1184,7 +1196,7 @@ pub(crate) fn from_log(lines: &[String]) -> Vec<Finding> {
if has(&["out of memory", "0x8007000E"]) {
found.push(Finding {
title: "The game ran out of memory.".to_string(),
detail: "Fix and verify lowers the render scale, turns on the texture fix and lowers a 1440p or 4K output to 1080p.".to_string(),
detail: "Fix and verify lowers the render scale, turns on the texture fix and the memory saver, and lowers an output above 1080p to 1080p.".to_string(),
fix: Some(FIX_GRAPHICS_MEMORY),
heavy: false,
data: None,
Expand Down Expand Up @@ -1779,6 +1791,20 @@ mod tests {
.any(|f| f.title.contains("shader model 6.6")));
}

#[test]
fn a_build_that_refuses_other_launchers_is_named_without_a_fix() {
// KLBF Lab v26.11.9's text on stderr when `run` has no KLBF_LAUNCHER.
let lines = vec![
"KLBF Lab starts only from its own launcher: it prepares the shaders and settings the game needs.".to_string(),
];
let found = from_log(&lines);
let hint = found
.iter()
.find(|f| f.title.contains("its own launcher"))
.expect("an own-launcher finding");
assert_eq!(hint.fix, None);
}

#[test]
fn an_unhandled_exception_is_named_with_the_switches_as_the_likely_cause() {
let lines = vec!["VIctory: unhandled exception 0x80000003 at game_scarlett_master.exe+0x1ce6e13 on thread 3848".to_string()];
Expand Down
Loading
Loading