1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-22 21:23:34 +08:00
Commit Graph

17 Commits

Author SHA1 Message Date
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
f7fc9aaab0 UXAssist: fix recent upload result 2026-03-12 00:30:03 +08:00
6e4416389d CheatEnabler v2.4.2 2026-01-29 02:13:06 +08:00
0049629fd1 remove all frames 2025-12-30 22:11:30 +08:00
29ee32b11b work in progress 2025-11-30 18:08:13 +08:00
16429936a9 UXAssist v1.4.0 and CheatEnabler v2.4.0 2025-09-29 23:46:44 +08:00
a25f74443d donet format 2025-09-21 15:38:03 +08:00
4584895345 new function to generate illegal shells quickly 2025-09-21 01:37:09 +08:00
31b1d90d5d work in progress 2025-09-19 22:18:48 +08:00
f8552d5c34 CheatEnabler: support for dyson shells with large radius 2025-09-10 21:40:42 +08:00
4e2b4a8e22 minor fix 2025-07-22 13:38:12 +08:00
b093a62e36 use predefined 60 points for illegal shell generation 2025-06-30 00:40:26 +08:00
c91a873e8d CheatEnabler v2.3.32 2025-06-08 20:44:15 +08:00
2c4d1b8b0d CheatEnabler: illegal dyson shell functions 2025-06-04 18:11:58 +08:00
cb3975ae1a use original game's consts 2025-06-03 19:01:19 +08:00
7d98471dca CheatEnabler: fix property revoking for current game 2025-05-13 23:38:24 +08:00
fb916b3813 refactoring UXAssist and CheatEnabler 2024-09-17 01:53:41 +08:00