Skip to content

[FEATURE] Allow saves to load with parts missing #258

@jan-bures

Description

@jan-bures

Feature Information

Feature description

This issue can be divided into two separate but very related scenarios:

  1. There's an in-flight vessel with a specific part "A". Let's say that part A comes from a mod, and the user disables or uninstalls the mod in between two play sessions. When they come back to the campaign that contains the loaded vessel with the part, the game will freeze during loading at the "Creating Vessel" loading action:
    Loading frozen
    The following error causes this freeze:
    Freeze error

  2. There are no vessels with missing parts in flight, but the user has such a vessel saved in VAB. When they attempt to load the vessel into the editor, they don't see any message or error, there's only an exception in a log, which is not very user friendly:
    VAB vessel loading exception

Solution proposal
  1. Implement some sort of a system similar to KSP 1, where we would check during the save loading whether any of the vessels in the save have missing parts, and if so, don't load those vessels and warn the user:
    Game load vessel problems
    Game load vessel loading error

  2. This should be relatively easy - just patch the ObjectAssemblyBuilderFileIO.LoadWorkspaceFromFile method and display an error dialog when the vessel cannot be loaded. Example from KSP 1:
    VAB missing parts
    VAB craft loading error

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    Status

    Planned for Production

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions