Added Instancing support through CLAs and ENV. - #80
Merged
KlaasWhite merged 1 commit intoAug 2, 2026
Conversation
github-actions
Bot
changed the base branch from
dev
to
feature/external/pr-80-dev
July 30, 2026 22:07
Contributor
Author
|
If the instance path you provide is valid, meaning KSA will create the missing |
KlaasWhite
merged commit Aug 2, 2026
bdf7bdd
into
StarMapLoader:feature/external/pr-80-dev
1 check passed
KlaasWhite
added a commit
that referenced
this pull request
Aug 2, 2026
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 A"and 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 relevant use cases that involve 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.!!DISCLAIMER!! - if you provide an illegal or non-existing path for instancing when launching StarMap, StarMap and KSA will both crash as there are no checks for if the path exists. This is an intended behavior as the program or user who is creating an instance should have the instance's directory made before launching.