Skip to content

Better error handling#25

Open
Kade-N wants to merge 3 commits intomainfrom
better-error-handling
Open

Better error handling#25
Kade-N wants to merge 3 commits intomainfrom
better-error-handling

Conversation

@Kade-N
Copy link
Copy Markdown
Member

@Kade-N Kade-N commented Apr 25, 2026

  • Clean up various areas of code, less spaghetti
  • Mod Identity
    • Relocated dllsBuild handling to Easy Installer (it's not relevant anywhere else)
    • Reject installing mods where dllsBuild is present but cannot be parsed as a version, with a clear error message
    • When installing a mod that requires newer DLLs version, show current and required DLLs version
  • Spore Path handling (closes Change Galactic Adventures Not Found message #13)
    • Overhaul how LK locates the game's folders
      • New behavior attempts to mimic how the game itself does it, by only checking for DataDir
      • Idea is that if the game can run, then LK should work, and contrapositively, if the game cannot run, LK should not work
    • Removed PathDialog, users can no longer choose the game folder
      • Users often chose the wrong one, leading to problems
      • Should be obsolete - if the folder can't be detected, then the game likely won't work on its own
      • Also removed LauncherSettings as this was the only thing there
    • Add new error for when game has been downloaded from Steam, but Steam still needs to run its installation script
    • Clean up code relating to registry paths, add support for C&C path on GOG/Steam (unused, but may be useful in the future if we implement C&C Fixer #21)
  • Centralize and update how errors and support info is displayed
    • Added SupportInfo which standardizes how this info (game version, LK version, paths...) is obtained and displayed
    • Most error messages now use this system
    • Updated phrasing in many messages for consistency and clarity
    • Added checks for LAA/4GB patch, if enabled then this is displayed with game version
    • Added new warning when LAA/4GB patch is used on an incompatible game version (currently just Steam October2024 due to steamstub DRM)
    • Easy Uninstaller now shows game version info

Kade-N added 3 commits April 11, 2026 19:22
cleaned up, added new error for when dllsBuild is present but invalid
Streamlined and centralized logic for finding game folder paths, updated logic to more closely match the game, removed path dialog as it should be obsolete, updated related strings
Moved most errors to a common system that shows support info, add check for LAA and show error if used on incompatible game version
Comment thread ModAPI.Common/SporePath.cs Dismissed
Comment thread ModAPI.Common/SporePath.cs Dismissed
Comment thread ModAPI.Common/SupportInfo.cs Dismissed
Comment thread ModAPI.Common/SupportInfo.cs Dismissed
Comment thread ModAPI.Common/SupportInfo.cs Dismissed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Change Galactic Adventures Not Found message

1 participant