Skip to content

Upgrades garble module description #83

@Starstrider42

Description

@Starstrider42

I've found a bug in how the BonVoyage part module reports upgrades. The bug appears in BonVoyage 1.5.0.0 and KSP 1.12.5, in a career game with per-part unlocks. I haven't tried to reproduce with default difficulty settings.

After researching the Unmanned Tech upgrade, the part popup in the VAB shows two copies of the upgrade text, as follows:
Image

(I assume the cost is a display bug in KSP itself -- the config nodes look sensible, and the upgraded part costs √1800, as expected.)

The cause of the bug appears to be this override to BonVoyageModule.GetInfo. It looks like the first "We added trace of..." text is from GetInfo, while the second was appended by KSP from the PARTUPGRADE node's title and description.

The code seems to assume that showUpgradesInModuleInfo = false (present in all the configs) removes display of upgrades entirely. However, when I try patching showUpgradesInModuleInfo = true, the only difference is that the module description appends "\nUpgrades available at Unmanned Tech, Automation, Artificial Intelligence." in addition to the upgrade description.

Apologies for not trying to fix this myself, I don't have an easy way of building plugins these days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions