Commit Graph
12 Commits
Author SHA1 Message Date
soarqin a7ddb395b2 fix(uxassist): prevent mining speed corruption with extended power
Keep the extended mining-speed calculation integer-valued so the native handler writes a valid speed. Guard the complete native arithmetic pattern and document the slider range and recovery steps.
2026-10-13 23:17:25 +08:00
soarqin 0015c16f0c fix: update mod compatibility for DSP 0.10.35.29131
Restore Ray Receiver buffer settings with the native integer intake check
and correct the displayed native buffer threshold.

Use VehiclePartProtoSet for LiveStreamAssist dictionary generation and
refresh offline text and icons from the current game installation.

Refresh compile-time game references and document the compatibility audit.
2026-10-12 18:35:24 +08:00
soarqin d90994d2ec docs: record the GitHub issue review and validation results 2026-10-11 04:09:19 +08:00
soarqin ac4210fe5d fix(compat): support DSP 0.10.35.29057
Adapt UXAssist and CheatEnabler to the new terrain workflows, view modes, receiver inventory, and mineral-depletion API. Preserve crafting shortcuts, batch buyout visibility, soil progression, and saved brush safety.

Refresh game references and document compatibility changes. Release builds, static compatibility checks, behavior assertions, and diff checks pass; user testing is also confirmed.
2026-09-24 01:57:04 +08:00
soarqin 2c601e3546 refactor(uxassist): unify auto-cruise navigation
Remove the legacy cruise implementation and expose the advanced navigator through the existing auto-cruise setting and UI. Match the game's 1.6-degree steering cap and handle antiparallel target directions with a stable turn plane.
2026-09-14 15:14:26 +08:00
soarqin 66ecebaca7 fix(UXAssist): start late-discovered mod features 2026-07-11 14:25:46 +08:00
soarqin ab1d20683d fix(UXAssist): centralize mod-feature lifecycle to prevent duplicate execution
ModFeatureRegistry is a static class with shared collections accumulating
features from all mods. Dependent mods (CheatEnabler, UniverseGenTweaks)
each independently called InitAll/StartAll/OnInputUpdateAll/OnUpdateAll/
UninitAll, re-running lifecycle for ALL accumulated features including
other mods' — per-frame Update ran 2-3x (breaking CheatEnabler key toggles
to net no-ops), Init/Start/Uninit ran 2-3x (double RegisterExporter causing
save corruption, double SettingChanged subscriptions, double keybind
registration).

Fix:
- Init now runs eagerly at Discover/Register time (Awake-phase), preserving
  the original timing that keybind registration depends on (game's
  UIOptionWindow._OnCreate copies keybinds only after all plugins load)
- InitAll removed entirely
- StartAll/UninitAll/OnInputUpdateAll/OnUpdateAll made internal so only
  UXAssist (host, same assembly, no InternalsVisibleTo) can drive them
- Start deferred to UXAssist.Start (after all dependents' Awake complete;
  BepInEx runs all Awakes before any Start)
- Per-feature Started idempotency + per-frame Time.frameCount guards as
  defense-in-depth
- Dependent mods reduced to Discover-only in Awake

Document the Init/Start timing contract on IModFeature and
ModFeatureAttribute so future mods can rely on it.
2026-06-29 02:56:54 +08:00
soarqin c2016909ff refactor: phase 5 transpiler docs, mod-compat helpers, and build quality gates 2026-06-23 23:03:13 +08:00
soarqin b74005282e docs: inventory static mutable state 2026-06-23 22:04:25 +08:00
soarqin 36426d034d docs: update public API surface with Phase 2 additions 2026-06-23 08:36:15 +08:00
soarqin f4b163fae9 docs: update public API surface with Phase 1 additions 2026-06-23 07:43:07 +08:00
soarqin bfe0787923 docs: inventory UXAssist.UI/Common public API surface 2026-06-23 02:17:07 +08:00