Skip to content

Kerbal Space program plugin : interface tweaks for the upgrades feature

Notifications You must be signed in to change notification settings

gotmachine/UpgradesUIExtensions

Repository files navigation

Upgrades GUI

This plugin is a collections of interface tweaks aimed at making the part/module upgrades feature introduced in 1.2 more user-friendly. Note that the plugin doesn't add any upgrades. If you want to have them in your game you need to download other mods that implement the upgrade feature.

screenshot

VAB/SPH part tooltips show upgraded stats

  • The part stats are now updated according to unlocked upgrades.
  • The part cost is now updated according to unlocked upgrades.
  • All module widgets now show the updated stats according to unlocked upgrades.
  • The part upgrade module widget show the detail of part stats/cost modifiers.
  • If "showUpgradesInModuleInfo" (stock field) is set to true the upgrade config, the module widget now show the details of every upgrade currently unlocked for this module
  • Some QOL tweaks to the tooltip stats : dry mass, mention of multi-mode engines, better formatting of engines thrust/ISP
  • (bonus feature) Non-stock modules using cost/mass modifiers should have their modifiers taken into account too.

Upgrades selection

  • This allow to customize which upgrades are applied to placed parts in all modes (Career, Science and Sandbox)
  • Parts with upgrades now have a clickable "upgrade widget" in the tooltip widget list
  • Clicking on the widget show a list of upgrade widgets that can be toggled to enable/disable upgrades for this part
  • Upgrades exclusivity/overrides rules and R&D unlock status can't be bypassed
  • Vessels with customized upgrades will work perfectly if the plugin is removed, all this is done within the stock upgrade implementation.

R&D tech tree feature

  • In the nodes part list, upgrades have a pale green background to better differentiate them from parts.

Download & source

Soon to be available on CKAN !

LATEST RELEASE and source from github.

Disclaimer

I'm far from a skilled programmer, so the code for this may be ugly. As far as I know, it does the job and doesn't break the game. However, keep in mind that I don't really know what I'm doing. If anybody has the time to review and comment my code, I'm open to suggestions and pull requests :)

KSP-AVC disclaimer

This mod doesn't include mini-AVC, but it has a version file that allow version checking trough the KSP-AVC Plugin.

Licensing

This masterful work of art is released under the unlicense. So public domain, feel free to do anything, especially updating this plugin if I'm not around.

Changelog and bugs

Known bugs and glitches

  • None at the moment

v1.5 for KSP 1.2.2 - 19/04/2017

  • (Issue #5 fix) : NRE when PartStats{} node is absent from PartStatsUpgradeModule bug
  • (Issue #4 fix) : ModuleDataTransmitter (and others) doesn't revert to base stats bug
  • (Issue #3 fix) : Incorrect state of upgrades at init bug

v1.4 for KSP 1.2.2 - 18/04/2017

  • New feature : upgrade selection system
  • Refactored a lot of things
  • Re-fixed nullref on creating the upgraded parts prefab (thanks @Oort for the perfect bug report)
  • Removed mini-AVC dll, KSP-AVC is still supported
  • Changed plugin name to "UpgradesGUI"

v1.3 for KSP 1.2.2 - 28/03/2017

  • Fixed an issue causing an exception within the GameDatabase, this resolve the issue with toolbar icons disappearance (Thanks @Rodger)
  • The module widget list in the part tooltip is now sorted alphabetically (this reproduce the stock behaviour)

v1.2 for KSP 1.2.2 - 24/03/2017

  • The "custom prefabs" parts now try to call OnLoad() on their modules, with the HighLogic.LoadedScene set to LOADING, in an effort to better replicate what happens with the real part prefabs. This fix the issue with Kerbalism custom modules, and may prevent the same kind of error from surfacing in other plugins. Thanks @ShotgunNinja for guidance on what was happening.
  • Added some error-checking so if things go wrong, the plugin should fail a bit more gracefully.

v1.1 for KSP 1.2.2 - 23/03/2017

  • Added KSP-AVC support for version checking

v1.0 for KSP 1.2.2 - 22/03/2017

  • Initial release

About

Kerbal Space program plugin : interface tweaks for the upgrades feature

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages