Skip to content

PAWs are not refreshed correctly for resources on symmetry counterparts when switching variants #15

@JonnyOThan

Description

@JonnyOThan

copied from blowfishpro#215

As in the title.

This doesn't seem to occur for all symmetry counterparts but some subset. The resources don't seem to really exist (as measured by looking at ship total mass).

See more detail and reproduction steps post-kerbin-mining-corporation/CryoTanks#119

From DRVeyl:

I believe this relates to some PAW caching behaviour, apparently introduced after KSP 1.8. (As in, this is not observed in a 1.8 build, but is in 1.10)
See also KSP-RO/RealFuels#255 and a maybe heavy-handed fix KSP-RO/RealFuels#256
Heavy-handed because this ends up tracking if we would have marked the PAW dirty if it were open, but can't because it is not open.
I think this has to do with updating symmetry counterparts during the onFieldChanged handler, instead of the onSymmetryFieldChanged handler. (onSymmetryFieldChanged has its problems, not suggesting that as a solution.)

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