Commit Graph
23 Commits
Author SHA1 Message Date
soarqin b08eaf13b7 fix(uxassist): preserve title-screen background rendering
Require native hide-UI mode before suppressing the space scene, and exclude menu demos and combat cutscenes. Share the visibility check between render hooks and planet simulators.
2026-09-29 21:49:31 +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 c2016909ff refactor: phase 5 transpiler docs, mod-compat helpers, and build quality gates 2026-06-23 23:03:13 +08:00
soarqin 79dea142de chore: disable rendering when only player is hidden now 2026-06-16 01:46:07 +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 a9ad961bd3 CheatEnabler: Use proliferators for belt signal 2026-03-11 19:25:57 +08:00
soarqin d98d87af48 UXAssist: hide all universe simulators and messages while hide UIs in space 2026-03-05 21:16:36 +08:00
soarqin 6ab286bb0b Fix crash in NeutronStarHandler.OnEnable() 2026-03-05 18:28:34 +08:00
soarqin 6e0484f035 UXAssist v1.5.2 2026-01-31 00:28:56 +08:00
soarqin 0d7941387f work in progress 2025-12-10 01:01:12 +09:00
soarqin b2c04c1dff work in progress 2025-12-02 00:10:02 +08:00
soarqin 29ee32b11b work in progress 2025-11-30 18:08:13 +08:00
soarqin 6f5b779d58 work in progress 2025-11-12 02:43:26 +08:00
soarqin 96f160926c work in progress 2025-11-10 22:39:58 +08:00
soarqin ee812bbc79 work in progress 2025-11-10 01:41:55 +08:00
soarqin 16429936a9 UXAssist v1.4.0 and CheatEnabler v2.4.0 2025-09-29 23:46:44 +08:00
soarqin 9d9a12c1af more fixes to make sure nothing working wrong on game 2025-09-29 23:34:17 +08:00
soarqin f58bd869fe add comments 2025-06-27 02:39:15 +08:00
soarqin b7abb3a32a finished new mechanism for blueprint building sorting 2025-06-18 01:39:00 +08:00
soarqin b79cfbc994 work in progress for blueprint sorting 2025-06-17 20:32:13 +08:00
soarqin 833bc3b0ac tip-fix 2024-12-06 21:21:51 +08:00
soarqin 722c32fdd6 WIP 2024-09-19 01:39:11 +08:00
soarqin f5b98c1c48 WIP 2024-09-18 19:36:31 +08:00