Added Instancing Support to StarMap using CLA and/or Environment Variables - #79
Closed
MrJeranimo wants to merge 27 commits into
Closed
Added Instancing Support to StarMap using CLA and/or Environment Variables#79MrJeranimo wants to merge 27 commits into
MrJeranimo wants to merge 27 commits into
Conversation
Mods can implement the IStarMapOnUi to access OnBeforeUi and OnAfterUi which are called before and after the OnDrawUi of Program in KSA, this can be used to add or overwrite ui elements using ImGui
Fix package release
Version 0.1.5
Only publish API when there is a change
Switch interface to use attributes instead of interfaces
Force build API
Resolve issue in attribute resolution
Resolve mods never being unloaded
Fixed issue with StarMap.API forcing dummy KSA dll
Provide installer for StarMap
Fix installer pipeline
StarMapBeforeMainAttribute attribute + Fix issue with ALCs unloading after initialization
Fix interface use of ModLibrary (StarMapLoader#33)
Update to net10
Change actions to publish StarMap.API to nuget instead of github
Force build API (StarMapLoader#40)
Make the AssemblyLoadContexts not collectable (StarMapLoader#42)
Do not try to unload the assembly load contexts (StarMapLoader#44) Add StarMap hook for after onFrame
Release 0.4.0
Fix-release-action (StarMapLoader#60)
Fix PR logic and release flow
Feature/external/pr 65 fix local mods folder dev (StarMapLoader#69)
Fix OnDrawUi harmony patch for KSA 2026.4.6.4036 (StarMapLoader#71)
Add config option for game CLI arguments
…manifest and mod loading. Also redirects KSA to the new instance folder.
github-actions
Bot
changed the base branch from
dev
to
feature/external/pr-79-main
July 26, 2026 01:10
Contributor
Author
|
This is the stale version of my pull request that was made on the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added the ability to switch which directory StarMap looks at for the manifest and mod loading. Also redirects KSA to the new instance folder.
You can now select which folder you want StarMap and KSA to look at for things like
manifest.toml,\mods,settings.toml,\saves,\vehicles,\logs,\crashdumps,\HUDLayouts, etc.This can be done either by using a Command Line Argument ->
.\StarMap.exe -InstancePath C:\users\<user>\OneDrive\Documents\My Games\Instance Aand StarMap, KSA, and all mods (as long as the mods useConstants.DocumentFolderPathor other variables/functions that derive from that) will now read/write to the new instance folder.The other option is be setting the file path you want in an Environment Variable when launching StarMap. ->
$env:INSTANCE_PATH = "C:\Users\<user>\OneDrive\Documents\My Games\Instance A"; .\StarMap.exe(this is for power shell).This modification is done through a Harmony Patch of the
Constants.DocumentsFolderPathgetter which flows down to all relavent use cases that invole theDocuments\My Games\Kitten Space Agency\folder, and only provides the newly given path if it exists, otherwise it falls back to KSA's default getter.