Commit Graph
652 Commits
Author SHA1 Message Date
soarqin d084f9cf75 fix(uxassist): UI fixes 2026-09-24 16:19:19 +08:00
soarqin 60d54ac918 fix(compat): restore wind coverage startup and entity hiding
Defer wind coverage changes until prefab data is ready and preserve retryable activation state.

Replace fixed raycast local slots with semantic entity-field matching and guard fallback paths.
2026-09-24 13:37:30 +08:00
soarqin 8a10fc909a doc(UXAssist): update changelog 2026-09-24 13:00:33 +08:00
soarqin 0f640eb75b chore: release UXAssist 1.6.0 and CheatEnabler 2.4.5
Update changelogs and bump versions for UXAssist and CheatEnabler.
UXAssist 1.6.0 adds Orbital Collector product limits, reworked
auto-cruise navigation, auto-construct improvements, and DSP
0.10.35.29057 compatibility. CheatEnabler 2.4.5 adds the illegal
dyson shells button, Terraform anyway updates, and DSP 0.10.35
compatibility.
2026-09-24 04:04:34 +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 367a72b375 feat(livestreamassist): show cluster string on live dashboard 2026-09-21 00:14:52 +08:00
soarqin c0c4f51312 feat(livestreamassist): expose current cluster string 2026-09-20 14:46:15 +08:00
soarqin 3e3e995d55 feat(livestreamassist): add Chinese live dashboard with game icons
- Add a URL-driven Chinese overlay page rendering item rate tables,
  tech levels, current research, and Dyson sphere power for streams.
- Add the offline GameIcons layer and generate_icons.py, which extracts
  every item and tech icon from a local DSP install into
  js/generated/dsp-icons.js.
- Reuse the proto extraction in generate_text.py and cover the new
  page with test_dashboard.js.
2026-09-20 03:44:27 +08:00
soarqin 63a6a6ec6c fix(livestreamassist): refresh theoretical item rates
Queue the native production extra-info calculator on factory reads so
production and consumption reference speeds update without the stats UI.
Deduplicate and throttle refreshes, let active batches finish, and clear
pending work at session boundaries.

Add refresh scheduling regressions and document the initial cache warm-up.
2026-09-18 22:57:02 +08:00
soarqin f03d6c758e feat(livestreamassist): add resilient JavaScript overlay client
Add a JSON-RPC client, session-aware game queries, and generated offline locale data. Update research and stats overlays with cancellable single-flight polling and reconnect handling.

Add 41 JavaScript regression tests, Python locale and formatting checks, and generation and validation documentation.
2026-09-18 01:59:53 +08:00
soarqin 92e6511d91 feat(livestreamassist): add a simple example 2026-09-17 22:31:54 +08:00
soarqin e95c832e03 fix(livestreamassist): migrate WebSocket API to Kestrel
Replace Fleck with pinned in-process Kestrel packages and explicit runtime packaging. Fix connection lifetimes, deadlines, admission accounting, and reflection validation.

Add production transport regressions and update the migration guidance with remaining Unity/LAN acceptance gates.
2026-09-17 20:53:05 +08:00
soarqin 94254b8c28 feat(livestreamassist): add read-only WebSocket API
Add a Fleck/Newtonsoft.Json listener for local and LAN clients, with system methods, main-thread reflection reads, and ZipMod packaging of the two runtime DLLs. Ctrl+F8 statistics assist is unchanged. In-game and LAN acceptance remain pending.
2026-09-17 18:14:51 +08:00
soarqin ce9a4b73cd docs(livestreamassist): add WebSocket API and implementation plan 2026-09-17 17:38:08 +08:00
soarqin b5019abb62 fix(uxassist): improve auto-construct obstacle recovery 2026-09-17 02:01:11 +08:00
soarqin d32b44e337 docs: clean up agent guidelines 2026-09-17 00:03:12 +08:00
soarqin fe9c771230 fix(automation): clear stale routes and guard native navigation
Clear auto-construction orders on teardown and planet changes without

overwriting manual orders, and reject auto-cruise startup while native

autopilot is active. Reduce AGENTS.md to durable project guidance.
2026-09-16 03:08:11 +08:00
soarqin b5cb9aefb9 fix(uxassist): correct auto-cruise sail frame, braking and lifecycle
visual_uvel subtracted the unblended planet velocity. PlayerMove_Sail and
PlayerNavigation.DetermineSailVelocity both fade that reference frame out with
altitude and drop it entirely above 600 m, and PlayerController.UpdateRotation
runs after the whole action loop and turns visual_uvel into the mecha heading
and the speed readout, so the mecha visibly misaimed while sailing near a
planet. Apply the same blend, and stop writing uRotation from the sail
postfix, which the game recomputes immediately afterwards anyway.

Fixed targets had no approach deceleration: the cruise always aimed at
maxSailSpeed and simply stopped at the arrival radius. PlayerMove_Sail only
hands over to PlayerMove_Fly below 75 m/s of planet-relative speed, so the
mecha could never land. Cap the speed from the remaining distance, apply the
brake directly as the original does instead of folding it into the turn
interpolation (which weakened it by up to 1/t), and release warp early enough
for that brake to settle, since the game's own warp guard only covers planets
and never stars.

Yield to the game's own autopilot: PlayerNavigation zeroes the movement input
inside PlayerMove_Sail and PlayerMove_Fly and drives uVelocity itself, so both
were fighting over the same state. AutoConstructPatch already did this.

Guard SpaceSector.dfHives, which Init never allocates and Import only
allocates when the save carries hive data; the game null-checks it everywhere
for that reason and this ran on every sailing tick.

Follow AutoCruiseEnabled with the Harmony patches so disabling the feature no
longer leaves a transpiler on the hot PlayerController.GameTick installed, and
require a resolvable target before starting so the feature cannot emit a
started and a stopped popup in the same frame.

Refresh the toggle button label wherever Checked is set directly, since
MyCheckButton.Checked only updates the colours and the label lives on the
OnChecked handlers; toggling by shortcut left it stale.

Rename the user-facing strings to auto-cruise so they stop colliding with the
game's own navigation feature, and clean up the region: fix the misspelled
safety-radius constants, invert and rename the precondition helper, drop the
unused Obstacle.Radius, raise the degenerate-vector epsilon, and convert the
file's mixed tab indentation to spaces.
2026-09-16 02:16:40 +08:00
soarqin 3a840e7b2d fix(uxassist): correct auto-construct settling, altitude and planning
Flight settling never ran its residual-speed check: the caller gated it on
the tick countdown, which always reached exactly zero, so the constant
thresholds were dead and the wait degraded into a fixed delay. Gate it on a
separate pending flag, bound it with a timeout, and re-issue the deferred
route with bypassBrake so a timeout cannot defer the same route again.

Arrival no longer keeps the detour altitude. The planner scores build-range
coverage at ConstructionFlightAltitude, so hovering at AvoidanceAltitude put
part of the counted ghosts out of drone reach.

Also fix four planning defects:

* the route corridor compared an angle against a sine, and could collapse
  instead of widening past 90 degrees;
* candidate near/far separation compared a difference of squared distances
  against a squared merge distance, so any slightly farther ghost claimed the
  far slot, and a displaced near candidate was dropped instead of demoted;
* the angular fan axes mixed the universal player rotation with planet-local
  positions;
* surface distances used chord length where great-circle length was meant.

Ghost eligibility now mirrors the material-delivery filter in
ConstructionModuleComponent.GameTick. A ghost rejected by constructableIdHash
or blocked by a nearby Dark Fog building can never clear itemRequired, so the
mecha would park on a site that makes no progress. The enemy probe is skipped
when the planet has no ground bases.

Drop the OrderNode.Stop in CancelAutoMotion: PlayerOrder.Clear() discards it
before PlayerOrder.GameTick can process it, and the actual braking comes from
PlayerMove_Fly decaying rtsVelocity. It only left a stray order gizmo at the
planet centre.

Untie the Harmony patch from AutoConstructButtonEnabled so hiding the button
cannot silently disable the feature, and throttle the enable diagnostics now
that enabling is an in-game action.

Extract the shared manual-movement input probe, name the obstacle layer mask,
reset a copied Localizer on the cloned count text, and drop the dead
representative-target guard.
2026-09-16 02:16:14 +08:00
soarqin b7564903d0 fix(uxassist): route construction through nearby ghosts
Select the closest eligible ghost in the approach corridor before flying to a selected site, and use spherical cross-track checks to avoid bypassing nearer construction work.
2026-09-16 01:35:36 +08:00
soarqin 27c6a959ad fix(uxassist): improve warp steering responsiveness
Top up the warp heading toward the requested direction after game rotation so the actual heading achieves the 1.6-degree-per-tick turn step. Reduce warp speed control during large heading errors while preserving manual warp speed input.
2026-09-16 00:49:11 +08:00
soarqin 7f9f0b62ae fix(uxassist): preserve satellite targeting near gas giants
Only avoid an orbiting parent when the direct target segment intersects it. Constrain its avoidance radius to stay outside the target and follow a heading-selected tangent before resuming direct approach.
2026-09-15 15:09:17 +08:00
soarqin 04a2fbb85a fix(uxassist): improve construction routing and detours
Dispatch one construction wave before relocating, prefer nearby sites, and let recovery routes retake control without waiting for a full stop.
2026-09-15 14:02:28 +08:00
soarqin f5cb17dbd8 chore(gitignore): ignore LLM folders 2026-09-14 17:10:27 +08:00
soarqin 3a5676d737 refactor(uxassist): simplify navigation and construction state 2026-09-14 17:00:25 +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 fa65236d5c fix(uxassist): stabilize auto-construct routing 2026-09-14 03:09:12 +08:00
soarqin 7dd9830b48 fix(uxassist): only show new navigation shortcut hint when target is set 2026-09-13 23:53:13 +08:00
soarqin 75017476e3 perf(uxassist): minimize construction drone travel 2026-09-13 23:51:21 +08:00
soarqin 1cbda9a1d6 fix(uxassist): poll shortcuts after native input updates
Dispatch shortcut polling from VFInput.OnUpdate's postfix so key-down events use fresh modifier and typing state. Keep regular feature updates in the plugin Update loop.
2026-09-13 23:36:06 +08:00
soarqin 82f6f53fa8 feat(uxassist): optimize auto-construct planning 2026-09-13 22:30:10 +08:00
soarqin 0604308d8a feat(LiveStreamAssist): add automatic statistics tab cycling 2026-09-13 20:07:32 +08:00
soarqin f91ccfcffb feat(LuaScriptEngine): ref production 2026-09-13 19:30:31 +08:00
soarqin e74bd915a7 doc(AGENTS): update AGENTS.md 2026-09-13 19:30:10 +08:00
soarqin 3f8e04f4a0 feat(uxassist): show new navigation shortcut hint 2026-09-13 19:28:24 +08:00
soarqin 5ae85eb031 fix(UXAssist): align auto-cruise takeoff with manual flight 2026-09-13 17:38:27 +08:00
soarqin 47c3c79d8c fix(uxassist): route around tall construction obstacles 2026-09-13 17:18:28 +08:00
soarqin 4b2f9c67dc fix(UXAssist): fix UI color issue imported in 574919f 2026-09-11 00:41:28 +08:00
soarqin 87061d5235 chore: update manifest 2026-09-10 15:16:32 +08:00
soarqin 574919f1f0 fix(UXAssist): reset cloned UI state 2026-09-02 18:47:37 +08:00
soarqin f611f2f9b3 fix(CheatEnabler): initialize shield after instant build 2026-08-23 20:24:05 +08:00
soarqin 0e09c17ea0 feat(UXAssist): show original building buffer values 2026-07-22 15:50:16 +08:00
soarqin 69d5a4b3ce feat(UXAssist): set orbital collector product limits 2026-07-22 15:25:30 +08:00
soarqin 53d558a9a4 feat(UXAssist): add advanced auto-navigation 2026-07-22 15:01:34 +08:00
FyisFe a48ae5ad96 feat: add 'hide sorters too' sub-option for do-not-render feature
When enabled (with the parent feature on), sorters are also hidden,
leaving only belts and their cargo visible. Hidden sorters also become
click-through so clicks reach the belts beneath them.

- RenderingPatch: gate InserterRenderer.Render and the RaycastLogic
  inserter exemption on a new HideSorters flag
- FactoryPatch/UXAssist/FactoryConfigProvider: new
  DoNotRenderEntitiesHideSorters config wired to the flag
- UIConfigWindow/I18NKeys: indented sub-checkbox + EN/zh label
- README/CHANGELOG: document the sub-option; bump to 1.5.9
2026-07-22 14:21:05 +08:00
soarqin 82365b3d16 fix(CheatEnabler): retry invalid Dyson shell candidates 2026-07-21 23:53:21 +08:00
soarqin 010ec73c8d fix(CheatEnabler): restore BuildToolOpt station replacement 2026-07-12 18:30:20 +08:00
soarqin 66ecebaca7 fix(UXAssist): start late-discovered mod features 2026-07-11 14:25:46 +08:00
soarqin 15c5bbdd72 feat(cheatenabler): add bounded shell-count input 2026-07-11 01:02:12 +08:00
soarqin 6b03801681 fix: Auto-Construct panel visibility on panel switching 2026-07-11 00:53:06 +08:00