1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-22 20:53:27 +08:00
Commit Graph

26 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
71c0fe75db minor fix 2026-01-27 23:31:16 +08:00
e9bbcf5e2c bug fix 2025-10-20 22:45:29 +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
a25f74443d donet format 2025-09-21 15:38:03 +08:00
75030c5b23 UXAssist v1.3.5 2025-05-10 20:09:30 +08:00
c7465133f7 UXAssist v1.3.3 2025-05-10 00:50:11 +08:00
b060204d80 4 bug fixes 2025-05-03 18:07:15 +08:00
40e3206953 optimized window repositioning 2025-04-29 15:38:29 +08:00
68a18c113d work in progress 2025-04-24 17:25:47 +08:00
1ae4aa3ecb work in progress 2025-04-23 02:50:33 +08:00
78379165e8 work in progress 2025-04-21 00:42:55 +08:00
092795cbac fix profile support 2025-03-26 02:15:44 +08:00
adcce8e298 UXAssist: add profile based option 2025-03-25 21:36:22 +08:00
34822453a7 try to remember window position across multiple display monitors 2025-01-24 20:03:07 +08:00
f897c0d9ec UXAssist 1.2.6 2024-09-26 21:23:13 +08:00
9d795e0ca4 WIP 2024-09-25 21:00:24 +08:00
9d5af1c340 WIP 2024-09-24 21:24:21 +08:00
237830fc91 UXAssist 1.2.4 2024-09-24 00:33:41 +08:00
daaf7b4901 WIP 2024-09-23 21:11:51 +08:00
1ab57eb7ca UXAssist 1.2.3 2024-09-21 19:57:33 +08:00
2d2602d8b9 new UXAssist and CheatEnabler release 2024-09-19 23:53:02 +08:00
f5b98c1c48 WIP 2024-09-18 19:36:31 +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