StationCoreCombined.cfg checks if SSPXr is installed; if so, it adds a requirement "Include a station core and a habitat" to the comtract. However, the code isn't quite right. An error will occur if SSPXr is installed, making the most basic contract unable to be loaded:
[LOG 23:17:50.958] [INFO] ContractConfigurator.ContractType: Loading CONTRACT_TYPE: 'StationCoreCombined'
[ERR 23:17:50.979] ContractConfigurator.PartValidationFactory: CONTRACT_TYPE 'StationCoreCombined', PARAMETER 'PartValidHab' of type 'PartValidation': unexpected node 'PARAMETER'.
[WRN 23:17:50.987] ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'StationCoreCombined'
[LOG 23:17:50.990] [INFO] ContractConfigurator.ContractConfigurator: Loaded 19 out of 20 CONTRACT_TYPE nodes.
This PR fixes this issue. The logic is:
Check if SSPXr is installed
NO: "Include a station core and a habitat" is not a requirement
YES: "Include a station core and a habitat" is a requirement
An SSPXr station core is required
A habitat module is required, which could be any of the following:
PPD-10 Hitchhiker Storage Container (stock)
A habitat module from SSPXr
A habitat module from Tokamak (only if Tokamak is installed, of course)
I've tested the fix and it works for all occasions (SSPXr is installed or not / Tokamak is installed or not).
StationCoreCombined.cfg
checks if SSPXr is installed; if so, it adds a requirement "Include a station core and a habitat" to the comtract. However, the code isn't quite right. An error will occur if SSPXr is installed, making the most basic contract unable to be loaded:This PR fixes this issue. The logic is:
I've tested the fix and it works for all occasions (SSPXr is installed or not / Tokamak is installed or not).