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

44 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
669ce9f88c minor fixes 2026-03-11 19:26:40 +08:00
5e501ea649 UXAssist: add 3 options to Initialize Planet 2026-03-07 19:42:14 +08:00
f0ee1aaea9 code format 2026-02-09 21:12:32 +08:00
9787636d08 UXAssist 1.5.0 and CheatEnabler 2.4.1 2026-01-23 16:23:10 +08:00
6eb9161af1 collector max value fix 2026-01-14 19:39:02 +08:00
2201de2b1b support for logistic control panel 2026-01-14 19:32:07 +08:00
f237789fa0 minor fixes 2025-12-06 22:41:23 +09:00
a9959a2f07 try to fix a strange issue 2025-10-29 15:27:13 +08:00
a183485286 UXAssist: some fixes 2025-10-04 17:23:41 +08:00
e909b6d9d2 rename GameLogicProc back to make things compatible with old dependants 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
dc092d7f6f Planet Vein Utilization embedded 2025-09-28 00:42:16 +08:00
d9f87ca4e9 Logistics Panel Info fix again again 2025-09-24 15:06:09 +08:00
a3c60c32ca Logistics Panel Info fix again 2025-09-24 12:19:50 +08:00
96a9e8a570 Logistics Panel Info fix 2025-09-24 02:51:41 +08:00
a25f74443d donet format 2025-09-21 15:38:03 +08:00
0178c8cc2e work in progress 2025-08-10 15:16:53 +08:00
b7abb3a32a finished new mechanism for blueprint building sorting 2025-06-18 01:39:00 +08:00
a9286d2839 UXAssist: add a minor option to auto logistics config 2025-06-04 11:44:13 +08:00
f7e1a27be1 UXAsisst 1.3.6 2025-05-25 10:55:03 +08:00
177d8b3caf minor tweak 2025-05-10 22:48:31 +08:00
f2a849c1af UXAssist: fixed know bugs in logistics config 2025-05-10 00:50:39 +08:00
586ce9a427 Auto-config logistic stations: Can set Max. Charging Power for Battlefield Analysis Base now. 2025-05-04 00:52:42 +08:00
b060204d80 4 bug fixes 2025-05-03 18:07:15 +08:00
950bde3464 CheatEnabler v2.3.30 2025-04-25 17:50:52 +08:00
b86825c645 Add an option to auto-config logistics 2025-04-25 15:36:32 +08:00
1ae4aa3ecb work in progress 2025-04-23 02:50:33 +08:00
e765f0f42d work in progress 2025-04-22 01:58:07 +08:00
2a3fed7180 UXAssist v1.2.20 2025-04-21 14:05:52 +08:00
78379165e8 work in progress 2025-04-21 00:42:55 +08:00
043e7a8e70 UXAssist 1.2.15, which fixed #54 and #57 2025-02-19 14:33:13 +08:00
27f04376ae minor fix 2025-01-04 17:25:35 +08:00
706e1649a1 fix a logistics panel display issue while recreating planet 2024-12-20 19:06:37 +08:00
26df57f911 WIP 2024-10-12 20:53:25 +08:00
83b544c172 minor opt 2024-09-30 20:50:43 +08:00
c2d55dd16e WIP 2024-09-30 19:10:04 +08:00
9d795e0ca4 WIP 2024-09-25 21:00:24 +08:00
1ab57eb7ca UXAssist 1.2.3 2024-09-21 19:57:33 +08:00
177c74d6e9 some fixes 2024-09-20 17:34:10 +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
fb916b3813 refactoring UXAssist and CheatEnabler 2024-09-17 01:53:41 +08:00