Commit Graph
21 Commits
Author SHA1 Message Date
soarqin 205cf55440 fix(uxassist): clear beacon markers on planet reset in 1.6.3 2026-10-06 15:47:28 +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 be86aebf7c fix possible crash 2026-03-27 16:51:33 +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 c823e72c67 UXAssist: Fix crash 2026-03-11 22:18:06 +08:00
soarqin d6b00b1b78 UXAssist 1.5.5 2026-03-07 20:46:30 +08:00
soarqin 5e501ea649 UXAssist: add 3 options to Initialize Planet 2026-03-07 19:42:14 +08:00
soarqin 6f33669163 UXAssist: crash fix 2026-03-02 22:47:05 +08:00
soarqin a5009496d5 UXAssist: fix re-initialize planet 2026-02-10 15:39:59 +08:00
soarqin 788ed4275e try to fix known issues 2026-01-22 23:55:52 +08:00
soarqin c339041824 bug fix 2025-12-28 23:07:52 +08:00
soarqin 269cc3b801 minor fixes 2025-11-15 01:02:33 +08:00
soarqin cacbfd6d5f fix recreate planet 2025-11-14 22:08:46 +08:00
soarqin 1d11ba90bd we make them compile first 2025-09-29 23:34:17 +08:00
soarqin a25f74443d donet format 2025-09-21 15:38:03 +08:00
soarqin 17aca89249 crash fix 2025-06-04 00:25:58 +08:00
soarqin 0d5a07b1ac fix crash 2025-05-02 19:59:51 +08:00
soarqin f407928579 UXAssist v1.3.2 2025-04-28 19:40:38 +08:00
soarqin f6f28efd88 UXAssist: minor bug fix 2025-04-26 13:12:12 +08:00
soarqin 3486cc9ca2 try to fix recreate planet issue 2024-12-20 18:56:38 +08:00
soarqin fb916b3813 refactoring UXAssist and CheatEnabler 2024-09-17 01:53:41 +08:00