Skip to content

Rework scenariomodule, group offset editor and other changes - #43

Merged
siimav merged 18 commits into
KSP-RO:masterfrom
KerbalColonies:master
Aug 30, 2025
Merged

Rework scenariomodule, group offset editor and other changes#43
siimav merged 18 commits into
KSP-RO:masterfrom
KerbalColonies:master

Conversation

@AMPW-german

Copy link
Copy Markdown
  • Reworked the scenario module to use the current saving methods for static instances and added support for groups and map decals
  • Added a group offset editor to change the position of all of the static instances relativ to the group center which is useful when creating the base groups for the KC mod, see attached screenshoots
  • Added range limits to the group editor with range = 0 disables it
  • The group editor window size now gets changed to properly fit everything in the window, previously when changing the name some buttons were not visible
  • Some changes to access modifiers
KK_GroupEditorsV2

…increment/decrement button/repeatbutton combinations to prevent buttons disappearing while the repeatbutton is active
* Reworked the existing static instance saving for the scenario module to use the normal saving except for writing the config to the disk
…cal group list to prevent a nullref exception when deleting groups via the api
… the instances because it caused issues when there are only instances in the savegame but not in the global storage
…e group itself to better align the basegroups for the KC mod

* Made the Actions in the API public to allow the KC group editor to trigger them the old "selectedgroup.save()" does not work with groups in a savegame
* Groupcenters/staticinstances that were previously not in a savegame now get their global config files cleared/deleted
* Delete mapdecal config files upon deletion of the assosciated mapdecal
* Don't assign a config path to savegame map decals
* Check the correct location (with the ksp application path) if there's already a config file for the new mapdecal config path
… if the active instance gets deleted (nullref exception when a savegame group is the active group and it gets unloaded)
…ALL bases, including from other bodies, are drawn on the current body.
@siimav siimav changed the title Reworked scenariomodule, group offset editor and other changes Rework scenariomodule, group offset editor and other changes Aug 30, 2025
@siimav
siimav merged commit 55707c7 into KSP-RO:master Aug 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants