Content Patcher

Content Patcher

463k Downloads

[Lookup Anything] LocalizedText not working in name with Custom Bush compatibility

6480k opened this issue ยท 1 comments

commented

Describe the bug
When adding a DisplayName field to LeFauxMatt's Custom Bush data for Lookup Anything integration, utilizing vanilla game strings via the LocalizedText feature displays the field exactly as it is.
For example:
In Custom Bush data -- "DisplayName": "[LocalizedText Strings\\Objects:Blueberry_Name]", (copied from vanilla Object data)
When using LA ingame -- bush displays as [LocalizedText Strings\Objects:Blueberry_Name]

The vanilla strings could be duplicated within the mod for use with i18n instead, but this may lead to inconsistencies in translation/more work for translators. I'm not sure whether this is considered a bug or not.

To Reproduce
Download and install attached demo mod (Growable Forage and Crop Bushes beta) (bush data is in data/teabushes.json)
Download and install attached Custom Bush (or download from Nexus)
Plant any of the bush planting items (such as Morel Planter or Blueberry Sapling)
Use latest Lookup Anything to look up the bush data

Log file
https://smapi.io/log/f2b70bfea0cf4190846ca49cac07f27d

Screenshots

[CP] Growable Forage and Crop Bushes.zip
CustomBush.zip

commented

Fixed in develop for the upcoming Lookup Anything 1.44.0. Thanks for reporting it!