[Content Patcher] EditData - Entries with tokenised keys cannot have tokenised values
b-b-blueberry opened this issue ยท 0 comments
Issue
When editing a data model, any entries with "{{Tokens}}"
in the key will have their tokenised values left unresolved. If the value is a data model, none of its entries will be tokenised either.
Example:
"DynamicTokens": [
{
"Name": "PATH",
"Value": "Mods/CPNestedModelTokenTest"
},
{
"Name": "KEY",
"Value": "TokenisedKey"
}
]
// Entries:
"SimpleDictionary": {
"UntokenisedKey_SimpleDictionary": "{{PATH}}/String",
"{{KEY}}_SimpleDictionary": "{{PATH}}/String"
}
// Exported:
"SimpleDictionary": {
"UntokenisedKey_SimpleDictionary": "Mods/CPNestedModelTokenTest/String",
"TokenisedKey_SimpleDictionary": "{{PATH}}/String"
}
Attachments
Log: log.smapi.io
Patch export: json.smapi.io
Repro solution and content pack: CPNestedModelTokenTest.zip