1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-03-23 04:43:27 +08:00
Commit Graph

37 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
5e501ea649 UXAssist: add 3 options to Initialize Planet 2026-03-07 19:42:14 +08:00
80aa2f9b70 UXAssist: fix belt signal overlap issue 2026-02-07 20:26:12 +08:00
d711dd25ef remove cpu affinity settings, as they are officially supported 2025-09-29 23:34:17 +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
a25f74443d donet format 2025-09-21 15:38:03 +08:00
75030c5b23 UXAssist v1.3.5 2025-05-10 20:09:30 +08:00
5545d7a2bf UXAssist v1.3.2 2025-04-27 19:31:49 +08:00
5674d601ec WIP for UXAssist new features 2025-04-13 20:06:37 +08:00
092795cbac fix profile support 2025-03-26 02:15:44 +08:00
34822453a7 try to remember window position across multiple display monitors 2025-01-24 20:03:07 +08:00
2d6f5fdf56 try to fix P/E-core check 2024-11-26 18:46:01 +08:00
bbab36bc35 reformat code 2024-11-12 15:02:22 +08:00
5b725ff94f avoid use console window if debug console is enabled in BepInEx 2024-11-12 15:01:53 +08:00
6048db8069 try to fix multi-instance bug 2024-11-12 02:45:56 +08:00
4534540786 Work in progress for UXAssist 1.2.5 2024-09-25 20:40:46 +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
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
bacd1b7d75 move resources to embedded 2024-09-02 18:17:53 +08:00
d52bc630ba Work in progress 2024-09-02 12:12:44 +08:00
50e209fd38 only patch once 2024-08-28 20:52:28 +08:00
054b8e14b8 More works 2024-08-25 14:41:17 +08:00
b27ed3f96b WIP 2024-08-16 21:40:46 +08:00
456598f2a1 WIP 2024-03-10 18:25:51 +08:00
c7972fd736 new version of UXAssist, CheatEnabler and CompressSave, which fix #17 and #20 2023-12-18 19:43:58 +08:00
d4b1ea93c8 Support for DSP 0.10 2023-12-15 20:59:48 +08:00
51f35bb573 code cleanup 2023-12-14 21:52:35 +08:00
e6a8e00e0d UXAssist v1.0.4 2023-11-18 15:28:44 +08:00
3d16baaa9a UXAssist v1.0.2, UniverseGenTweaks v1.2.1, CheatEnabler v2.3.4 2023-10-22 15:46:06 +08:00
31b992c7a2 work in progress 2023-10-14 15:27:10 +08:00
41f2103c11 UXAssist: Work in progress 2023-10-09 21:23:23 +08:00