Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Content Patcher] EditData - Entries with tokenised keys cannot have tokenised values #1056

Open
b-b-blueberry opened this issue Nov 9, 2024 · 0 comments

Comments

@b-b-blueberry
Copy link

b-b-blueberry commented Nov 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant