Commit Graph
97 Commits
Author SHA1 Message Date
soarqin bffab3c7ca feat(uxassist): make quick miner restoration and burial optional 2026-10-21 02:49:59 +08:00
soarqin 3ed616ce80 feat(uxassist): add dense mining machine placement 2026-10-20 02:31:45 +08:00
soarqin 94a6833aae fix(uxassist): restore native tips and align auto-cruise sliders 2026-09-26 16:15:20 +08:00
soarqin d084f9cf75 fix(uxassist): UI fixes 2026-09-24 16:19:19 +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 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 574919f1f0 fix(UXAssist): reset cloned UI state 2026-09-02 18:47:37 +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 8d70ce8862 refactor: use localization constants at remaining call sites 2026-06-23 21:41:24 +08:00
soarqin 51fc080ff2 fix: address localization review issues 2026-06-23 21:35:09 +08:00
soarqin 036243fd4a refactor: centralize localization keys and remove runtime Chinese literals 2026-06-23 21:19:42 +08:00
soarqin 34c99701ca refactor: localize hard-coded strings and translate comments 2026-06-23 20:58:05 +08:00
soarqin 39bdf06e88 refactor(UXAssist): introduce config providers between UI and patches 2026-06-23 03:27:01 +08:00
soarqin dace35a691 refactor(UXAssist): split LogisticsPatch into focused classes 2026-06-23 02:56:19 +08:00
soarqin f2abb7cc2c refactor(UXAssist): split FactoryPatch into focused classes 2026-06-23 02:42:21 +08:00
soarqin ee7ea6ec35 fix: config ui 2026-06-22 23:01:31 +08:00
soarqin cc783937e6 chore: move Increase maximum power usage in Logistic Stations and Advanced Mining Machines from CheatEnabler to UXAssist 2026-06-16 22:56:01 +08:00
soarqin ffd8b91930 UXAssist: add buttons to apply logistics auto-config to current planet's facilities 2026-06-16 03:37:55 +08:00
soarqin f69a90d452 Fix potential bugs in UXAssist and CheatEnabler
UXAssist:
- PlanetFunctions: fix infinite loop in constructStats cleanup (i++ -> i--)
- PlanetFunctions: skip entityPool slot 0 (sentinel) in DismantleAll foreach
- PlanetFunctions: fix belt buffer walk infinite loop when buffer[j]==250,
  add cargoPool bounds check
- FactoryPatch: fix UnfixProto guard condition (< 3 -> < PowerPoleIds.Length)
- FactoryPatch: fix Array.Resize(index*2) -> (index+1)*2 to handle index==0
- LogisticsPatch: fix UpdateStorageMax early-exit to check both local and remote
- LogisticsPatch: fix storage max scan to use Math.Max instead of last-write
- LogisticsPatch: add divide-by-zero guard in station storage ratio calculation
- LogisticsPatch: fix station entry right-click delegates using per-instance
  dictionary instead of shared static array to prevent unsubscribe mismatch
- LogisticsPatch: add null checks for GameObject.Find results in InitGUI
- GamePatch: log exception in previously empty catch block
- GameLogic: invoke event handlers individually with try/catch so one failing
  subscriber does not abort subsequent ones
- DysonSpherePatch/LogisticsPatch/PersistPatch/PlayerPatch: replace
  matcher.Labels = null with matcher.Labels = [] (5 sites)
- UIConfigWindow: remove duplicate I18N.Add for 'Outgoing integration count'
- UIConfigWindow: remove two orphaned y += 36f spacing increments

CheatEnabler:
- GamePatch: add null check for GameMain.gameScenario in AbnormalDisabler.OnEnable
- FactoryPatch: add null check for GameMain.mainPlayer in TakeTailItemsPatch
  and GetItemCountPatch
- FactoryPatch: add null check for GameMain.mainPlayer in
  ConstructionSystem_GameTick_Prefix
- FactoryPatch: fix _portalFrom.Remove(beltId) -> Remove(v) (wrong key)
- FactoryPatch: add null guard for GameMain.data before iterating factories
  in WindTurbinesPowerGlobalCoverage
- DysonSphereFunctions: fix shell pool rebuild loop writing all shells to
  slot 1 (id=1); now uses j+1 per iteration
- DysonSphereFunctions: replace GameMain.gameScenario.NotifyOnPlanDysonShell()
  with null-conditional call (?.) at 4 sites
- DysonSpherePatch: fix SkipAbsorbPatch/QuickAbsorbPatch sharing _instantAbsorb:
  OnDisable now recalculates the flag instead of unconditionally clearing it
- PlayerFunctions: add null check for GameMain.galaxy in TeleportToOuterSpace
- UIConfigWindow: add null guard in UpdateButtons before accessing button fields
- PlanetFunctions: add colliderId bounds check in BuryAllVeins
2026-03-16 19:52:14 +08:00
soarqin 5e501ea649 UXAssist: add 3 options to Initialize Planet 2026-03-07 19:42:14 +08:00
soarqin 2e13206346 UXAssist: bug fix 2026-02-13 23:29:22 +08:00
soarqin 78e86aeafe ready for next release of UXAssist 2026-01-23 03:05:40 +08:00
soarqin 2377f92589 ui fix 2026-01-23 00:55:31 +08:00
soarqin 29ee32b11b work in progress 2025-11-30 18:08:13 +08:00
soarqin 45445f82a1 UXAssist v1.4.5 2025-11-14 15:59:48 +08:00
soarqin 1a242af84e work in progress 2025-11-14 15:42:24 +08:00
soarqin d711dd25ef remove cpu affinity settings, as they are officially supported 2025-09-29 23:34:17 +08:00
soarqin 9d9a12c1af more fixes to make sure nothing working wrong on game 2025-09-29 23:34:17 +08:00
soarqin 73ebcf1aa3 more works 2025-09-28 17:36:19 +08:00
soarqin ba095d79f0 minor changes 2025-06-04 17:53:54 +08:00
soarqin a9286d2839 UXAssist: add a minor option to auto logistics config 2025-06-04 11:44:13 +08:00
soarqin 4a3bffd927 fix 2025-06-03 22:44:13 +08:00
soarqin dc246170ac UXAssist: buffer tweaks for ejector and silo 2025-05-29 04:33:37 +08:00
soarqin f7e1a27be1 UXAsisst 1.3.6 2025-05-25 10:55:03 +08:00
soarqin 75030c5b23 UXAssist v1.3.5 2025-05-10 20:09:30 +08:00
soarqin c7465133f7 UXAssist v1.3.3 2025-05-10 00:50:11 +08:00
soarqin 586ce9a427 Auto-config logistic stations: Can set Max. Charging Power for Battlefield Analysis Base now. 2025-05-04 00:52:42 +08:00
soarqin f407928579 UXAssist v1.3.2 2025-04-28 19:40:38 +08:00
soarqin 8362fcf546 UXAssist v1.3.0 2025-04-25 15:45:31 +08:00
soarqin b86825c645 Add an option to auto-config logistics 2025-04-25 15:36:32 +08:00
soarqin 2a3fed7180 UXAssist v1.2.20 2025-04-21 14:05:52 +08:00
soarqin 78379165e8 work in progress 2025-04-21 00:42:55 +08:00
soarqin 3c8f258a1b UXAssist: new feature for 1.2.20 2025-04-19 22:40:26 +08:00
soarqin 1d01fdbd15 UXAssist v1.2.19 2025-04-16 15:49:14 +08:00
soarqin db0970c3c4 UXAsssit: buffer count for LabComponent 2025-04-16 02:33:46 +08:00
soarqin ac7f2ef63c UXAssist WIP: finished shortcuts for show stars' name 2025-04-15 21:04:22 +08:00
soarqin 5674d601ec WIP for UXAssist new features 2025-04-13 20:06:37 +08:00