Open rkunze opened 1 year ago
I did a bit of preliminary analysis on this, and the underlying issue seems to be a general problem when parsing a List<string>. This seems to only work for quoted strings or when referencing values with the "@"-Syntax, but breaks down completely for unquoted strings:
[ "foo", "bar" ]
parses OK[ @foo, @bar ]
parses OK (if @foo
and @bar
exist)[ foo, bar ]
and [ foo ]
breaks with "Expected ',' or ']', got end of statement."And List
SCENARIO
{
name = PersistentDataStore
scene = 7, 8, 5
DATA
{
brokenEntry = List<String>:[ any string will do to break it ]
}
}
As a side note, parsing an empty list from []
seems to be broken for any List type.
Environment: Clean KSP 1.12.4 install with only ModuleManager and ContractConfigurator
Minimal contract type that reproduces the bug:
Steps to reproduce:
This will trigger the following exception after changing back to the space center: