ruen-ui/docs/INSTALL.md
2026-11-22 11:03:32 -06:00

118 lines
12 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Install, update and restore
## Windows
Download the named installer ZIP from [Releases](https://scm.bstein.dev/bstein/ruen-ui/releases), extract it completely, close WoW, and run `Ruen-Setup.exe`. Windows 10/11 x64 with Windows PowerShell 5.1 is the intended target. Native Windows testing is pending for this beta; PowerShell filesystem tests have run on Linux.
The installer checks Program Files, common game folders and Blizzard registry entries. It prompts when discovery is ambiguous. A custom location can always be supplied:
```powershell
.\Ruen-Setup.exe -WoWPath 'D:\Games\World of Warcraft\_forever_'
```
Run from a folder you can write to, with a game installation you can modify. No administrator access is requested automatically. If the game folder is protected, use an account with access or the existing Windows permissions flow. Do not disable antivirus or change system-wide execution policy. The launcher uses a process-local PowerShell policy setting; it is not code-signed.
By default, setup downloads English quest recordings. Choose both narration languages with `Install-Russian.cmd`, or explicitly:
```powershell
.\Ruen-Setup.exe -WoWPath 'D:\Games\World of Warcraft\_forever_' -VoicePacks enru
```
`-VoicePacks none` installs the core companions without the large quest voice packs. `en` adds Alliance + Shared English packs; `enru` also adds Russian. These bundled selections focus on Alliance; other English faction audio is not included.
Fresh download sizes are roughly 97 MB for core companions, 1.03 GB with English, or 2.26 GB with English + Russian. Allow additional room for extraction, installed audio and rollback copies. Downloads are cached under `%LOCALAPPDATA%\RuenUI\Downloads`, with one pinned archive per companion. Setup verifies byte counts and SHA-256 before extraction. Failed staging does not change the game. If a publisher removes a pinned file, setup stops; it never silently substitutes a different release.
Existing compatible companion installations are kept. This preserves custom versions but means that combination may differ from the pinned beta test set. Update those addons from their authors if necessary. Unrelated addons are retained; other layout addons may conflict.
## Russian game setup
In Battle.net, choose **WoW: Forever → gear beside Play → Modify Install**, keep English and Russian installed, and wait for the download to finish. Set the game's **Text Language** and **Spoken Language** as desired in its Game Settings. Changing the Battle.net application's own language does not change WoW.
`Install-Russian.cmd` selects Russian narration and prepares the language request. In game, `/ruen language ru` or `/ruen language en` requests text, game audio and narration together. **Fully exit and restart WoW**; `/reload` is not enough. If Battle.net overrides the request, match both of the game's language settings there. `/ruen voice ru` changes only narration, immediately. Missing translated recordings can fall back to installed English audio. Chat is not translated; the profanity filter is disabled by Ruen's preset.
## Linux
```sh
python3 Ruen-Setup --wow '/path/to/World of Warcraft/_forever_' --voice-packs enru
```
Do not run with sudo. Discovery checks common Wine, Steam compatibility and Games folders; `--wow` works for other locations. Downloads are cached in `~/.cache/ruen-ui/downloads`. Use `--language ru` to request Russian on first login after installing the native language files through Battle.net.
## Update
Close WoW, extract the new release into a fresh folder, and run its installer against the same game. Existing narration files are reused; machine-specific hardware reports and language requests are preserved. A repeat install of identical files does not create another backup. The installer does not erase companion SavedVariables or unrelated addons.
## Class controls after updating
This update keeps existing actions, personal keybindings and saved language/graphics settings. It does not rerun the full preset on every character. Do not use `/ruen apply` just to update: that command deliberately reapplies defaults. Log in normally, or use `/reload` if only the addon files were updated during a running session.
- Hunters and Warlocks: **1–0, -, =** control pets; **Ctrl + numbers** controls the lower right utility bar.
- Other classes: **numbers** control that utility bar; **Ctrl + numbers** controls pets when present. Stealth, forms and pet dismissal do not change this mapping. Native vehicle/possession controls take over temporarily.
- `/ruen keys auto|pet|utility` chooses a character's number-key profile. Existing custom bindings win; `/ruen status` lists keys preserved instead of reassigned. `/ruen bindings` deliberately reapplies Ruen's mouse/menu/utility mappings.
- `/ruen role auto|healer|tank|damage` selects the role used for automatic mouseover casting. Auto enables it only when the native game reports a healing role. If this client does not report a role, choose one explicitly. `/ruen mouseover on|off` remains the direct override. Upgrades preserve the previous effective mouseover choice.
- Cooldown and meter modes are now per character. Existing choices migrate once; fresh characters start with duplicate cooldown viewers off and meters automatic in dungeons/raids. `/ruen cooldowns show|hide|auto` and `/ruen meters auto|show|off` change them.
The pet bar is **ten native pet slots plus two extensions**, backed by spare slots on unused action page 2. It cannot create native pet slots 11 and 12. If the backing page is full, Ruen reports the limitation and preserves the existing actions. The two extensions use the same selected-state artwork as native buttons; the game determines which stance is active.
Before relying on new bindings in combat, check `/ruen status`, press the number keys, and verify the indicated actions. On a pet character, test Defensive on an extra button, then Passive on a native button: only the active stance should remain selected. Check click/key activation, right-click autocast where supported, dismissal/resummon, bags with a selected target, and an item comparison tooltip. The release review distinguishes automated checks from live coverage.
## Optional optimization
For stuttering in the current area, run this **outside combat**, then move and fight in the same area with WoW focused:
```text
/ruen optimize 60
```
Use `/ruen optimize 30` for a 30 FPS target (accepted range 20–240). `/ruen optimize` alone uses 60 initially, then remembers your requested target. It **remeasures the current environment even if an earlier sample elsewhere passed**. World, dungeon, raid and battleground profiles are separate; a cave outside an instance is a world sample. Saved profiles apply on environment changes, outside combat. While enabled, Ruen owns the base graphics settings and disables the native raid override so an unseen preset cannot replace the measured settings.
Calibration usually takes 2–5 minutes of gameplay (up to roughly seven if several final checks fail), plus time waiting for combat to end. It searches five ordered quality presets, requiring two passing 20-second windows before raising quality, then verifies the selected preset at your final FPS cap. Trial caps are at most 10% above the effective target. Smoothness checks include the 90th/99th percentile frame time and explicit counts above 50/100 ms; infrequent hitches cannot disappear behind a good average. At the lowest tier it reports an unmet target honestly if stalls persist. This finds the highest passing tested preset in the sampled scene, not a mathematically optimal configuration or a guarantee for every later fight.
The presets include shadows, ambient shading, secondary lighting, water, compute effects, visibility and scenery detail. Essential spell effects/projected textures remain enabled; render scale, texture resolution, UI geometry and GPU/API/driver selection are retained. The optimizer uses no per-frame loop after settling. It does not change fans, voltages or drivers. Shader compilation, asset streaming, other software, network stalls and overheating may require investigation outside graphics settings.
- `/ruen optimize status`: running release, environment, target, phase/saved tier, seconds recorded in the current window and any wait for combat/loading/benchmark.
- `/ruen optimize changes`: repeat the latest before/after summary. Each applied test prints real read-back changes, labels temporary FPS caps, and lists unavailable/rejected controls. Each 20-second check reports its result; waiting for combat is announced once. The final summary compares settings with the start of that run, excluding temporary changes that were undone. A step with no changes says so explicitly.
- `/ruen optimize pause`: stop measuring and retain the current/best tested settings; use this **before switching apps**.
- `/ruen optimize resume`: enable environment profiles and finish an unmeasured profile.
- `/ruen optimize restore`: stop calibration and restore the graphics values saved before optimization.
For a three-minute **read-only** measurement after optimization finishes:
```text
/ruen bench
```
This records every gameplay frame interval and reports actual frames/elapsed-time average FPS, the reciprocal of the mean slowest 1% frame time, p99 frame time, worst frame, and counts above 50/100/250 ms. Histogram percentiles use 0.25 ms bins, capped at 10 seconds; larger stalls are flagged and their worst duration is retained. Known loading screens are excluded, but ordinary multi-second gameplay stalls are counted. Window focus cannot be verified: use `/ruen bench pause` before switching apps and `/ruen bench resume` when back. `/ruen bench stop` saves a clearly marked partial run; `status` reports progress. Benchmarking and active calibration cannot run together.
The following line reports Ruen CPU time from the built-in profiler when available. Its recent timings are rolling averages; correlation does not prove the cause of a hitch. CPU threshold deltas cover wall time, including pauses/loading. The saved report includes up to 180 diagnostic snapshots and graphics settings at both endpoints; the latest five reports are retained on logout/reload. Compare the same route, activity, settings and window size. The old one-second FPS benchmarks are not directly comparable to the new frame percentiles.
Optional **hardware/thermal evidence** still comes from the external companion, run while playing normally with the laptop powered/cooled as usual:
```powershell
.\Ruen-Setup.exe --optimize 30 -Seconds 600
```
```sh
python3 Ruen-Setup --wow '/path/to/_forever_' --optimize 30 --seconds 600
```
Type `/reload` afterward to import its report. Recent thermal/performance pressure limits the quality search; thermal pressure can lower a requested target above 45 to 45 FPS. Missing sensors are reported as unavailable, never proof of safe temperatures. No stress test or driver installation is performed.
## Undo
In game, `/ruen restore` restores recorded settings and bindings and stops automatic setup. Do this on each affected character, then fully close WoW. Keep the backup path printed during installation; a rollback also restores settings saved on disk before that installation:
```powershell
.\Ruen-Setup.exe -Restore -BackupPath 'D:\Games\World of Warcraft\_forever_\Ruen-UI-Backups\TIMESTAMP'
```
```sh
python3 Ruen-Setup --wow '/path/to/_forever_' --restore '/path/to/_forever_/Ruen-UI-Backups/TIMESTAMP'
```
Use the installer for the same operating system that made the backup. Rollback restores the recorded files, including account-wide keybindings; preferences changed after installation may revert. Later files are retained inside the backup under `before-restore-*`. It does not restore characters created after the backup or remove unrelated addons. Backups remain until you delete ones you no longer need. Do not delete the only backup until you are satisfied with the update.
## Reporting a beta problem
Use [Gitea issues](https://scm.bstein.dev/bstein/ruen-ui/issues) or send your friend the report if you do not have an account. Include Ruen version (`/ruen status`), game build, class, resolution/UI scale, reproduction steps and the exact Lua error. Redact chat, character/account names and paths. Do not attach your entire WTF folder, account credentials or hardware report by default.