1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-22 10:23:26 +08:00

42 Commits

Author SHA1 Message Date
a346778db9 fix possible crash 2026-03-20 15:08:02 +08:00
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
669ce9f88c minor fixes 2026-03-11 19:26:40 +08:00
a9ad961bd3 CheatEnabler: Use proliferators for belt signal 2026-03-11 19:25:57 +08:00
f0ee1aaea9 code format 2026-02-09 21:12:32 +08:00
157c86112b optimized batch building 2026-02-04 14:54:06 +08:00
8ae88f4b41 CheatEnabler: Immediate Build fix optimization 2026-02-04 13:22:29 +08:00
c1428f6aee CheatEnabler: Immediate Build fix 2026-02-04 03:07:25 +08:00
6e4416389d CheatEnabler v2.4.2 2026-01-29 02:13:06 +08:00
f237789fa0 minor fixes 2025-12-06 22:41:23 +09:00
29ee32b11b work in progress 2025-11-30 18:08:13 +08:00
556493b2b6 some fixes 2025-11-15 22:48:35 +08:00
6f5b779d58 work in progress 2025-11-12 02:43:26 +08:00
e909b6d9d2 rename GameLogicProc back to make things compatible with old dependants 2025-09-29 23:34:17 +08:00
2a4008deac fixed rest issues 2025-09-29 23:34:17 +08:00
6b423225fe partial fix belt signal 2025-09-29 23:34:17 +08:00
9d9a12c1af more fixes to make sure nothing working wrong on game 2025-09-29 23:34:17 +08:00
1d11ba90bd we make them compile first 2025-09-29 23:34:17 +08:00
d6a8275938 minor fix 2025-09-21 23:01:29 +08:00
a25f74443d donet format 2025-09-21 15:38:03 +08:00
31b1d90d5d work in progress 2025-09-19 22:18:48 +08:00
688b50344c clean up 2025-09-15 14:22:06 +08:00
a9dd130f76 try to fix belt signal generation source calculation 2025-08-10 15:34:37 +08:00
0178c8cc2e work in progress 2025-08-10 15:16:53 +08:00
cb3975ae1a use original game's consts 2025-06-03 19:01:19 +08:00
23aa8c1f13 CheatEnabler: fire all bullets 2025-05-25 23:35:49 +08:00
944a4d7948 CheatEnabler: fix a known issue in Immediate Build 2025-05-25 14:33:51 +08:00
b6c182168b CheatEnabler: unlock orbit radius 2025-05-19 18:17:05 +08:00
d61b40216c CheatEnabler: minor changes 2025-04-26 02:00:20 +08:00
6877b8e9ac CheatEnabler: optimization 2025-04-26 00:31:56 +08:00
950bde3464 CheatEnabler v2.3.30 2025-04-25 17:50:52 +08:00
bb18912155 Try to optimize ImmBuild 2025-04-25 15:36:08 +08:00
78379165e8 work in progress 2025-04-21 00:42:55 +08:00
d867bca1ba CheatEnabler: fix a warning bug 2025-04-19 01:18:21 +08:00
5dba87dc7f CheatEnabler v2.3.28 2025-03-25 21:11:42 +08:00
c30758cfab CheatEnabler: fix panel display for Infinite Resource patches 2025-03-25 20:38:48 +08:00
0a8fa9971c UXAssist 1.2.14 & CheatEnabler 2.3.27 2025-01-24 19:21:06 +08:00
f224b72838 UXAssist 1.2.13 2025-01-12 14:24:04 +08:00
26df57f911 WIP 2024-10-12 20:53:25 +08:00
2d2602d8b9 new UXAssist and CheatEnabler release 2024-09-19 23:53:02 +08:00
bd512a6b78 WIP 2024-09-18 04:55:40 +08:00
fb916b3813 refactoring UXAssist and CheatEnabler 2024-09-17 01:53:41 +08:00