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

76 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
2e13206346 UXAssist: bug fix 2026-02-13 23:29:22 +08:00
78e86aeafe ready for next release of UXAssist 2026-01-23 03:05:40 +08:00
2377f92589 ui fix 2026-01-23 00:55:31 +08:00
29ee32b11b work in progress 2025-11-30 18:08:13 +08:00
45445f82a1 UXAssist v1.4.5 2025-11-14 15:59:48 +08:00
1a242af84e work in progress 2025-11-14 15:42:24 +08:00
d711dd25ef remove cpu affinity settings, as they are officially supported 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
73ebcf1aa3 more works 2025-09-28 17:36:19 +08:00
ba095d79f0 minor changes 2025-06-04 17:53:54 +08:00
a9286d2839 UXAssist: add a minor option to auto logistics config 2025-06-04 11:44:13 +08:00
4a3bffd927 fix 2025-06-03 22:44:13 +08:00
dc246170ac UXAssist: buffer tweaks for ejector and silo 2025-05-29 04:33:37 +08:00
f7e1a27be1 UXAsisst 1.3.6 2025-05-25 10:55: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
586ce9a427 Auto-config logistic stations: Can set Max. Charging Power for Battlefield Analysis Base now. 2025-05-04 00:52:42 +08:00
f407928579 UXAssist v1.3.2 2025-04-28 19:40:38 +08:00
8362fcf546 UXAssist v1.3.0 2025-04-25 15:45:31 +08:00
b86825c645 Add an option to auto-config logistics 2025-04-25 15:36:32 +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
3c8f258a1b UXAssist: new feature for 1.2.20 2025-04-19 22:40:26 +08:00
1d01fdbd15 UXAssist v1.2.19 2025-04-16 15:49:14 +08:00
db0970c3c4 UXAsssit: buffer count for LabComponent 2025-04-16 02:33:46 +08:00
ac7f2ef63c UXAssist WIP: finished shortcuts for show stars' name 2025-04-15 21:04:22 +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
adcce8e298 UXAssist: add profile based option 2025-03-25 21:36:22 +08:00
087ceac1e3 WIP for UXAssist 1.2.16 2025-03-17 17:37:41 +08:00
27f04376ae minor fix 2025-01-04 17:25:35 +08:00
a823d4f2c3 move mismatch tip button 2024-12-20 21:15:45 +08:00
54f04eb5d7 tweaks for Dyson Shell dismantling 2024-10-15 15:59:17 +08:00
26df57f911 WIP 2024-10-12 20:53:25 +08:00
9d795e0ca4 WIP 2024-09-25 21:00:24 +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
fb916b3813 refactoring UXAssist and CheatEnabler 2024-09-17 01:53:41 +08:00
96b4d6cfc8 UXAssist and CheatEnabler new release 2024-09-04 20:32:00 +08:00
d52bc630ba Work in progress 2024-09-02 12:12:44 +08:00
92445a452a UXAssist and CheatEnabler new releases 2024-08-30 19:14:34 +08:00
287cfbbed4 UXAssist 1.1.5 2024-08-30 03:26:10 +08:00
d11817d4c3 Work in progress 2024-08-29 21:58:41 +08:00
12c5077abc work in progress 2024-08-24 01:36:30 +08:00
efa3198d81 UXAssist 1.1.2 2024-08-17 20:20:18 +08:00