Open SlenderFox opened 2 weeks ago
Could you please provide an example of when the last Expected Output should be expected? I am unfamiliar with any situations where the Overwatch Workshop outputs a setting as an array with one element.
Did some more experimenting with this, the expected output is produced specifically with WorkshopSettingCombo, when custom game settings are copied while the values are set to something other than default. The copied settings are correctly decompiled into the settings.json but incorrectly compiled back into the overwatch format. A similar issue also happens with WorkshopSettingInteger and WorkshopSettingReal; the values are incorrectly trailed with a % like #493.
After creating a workshop custom setting you can then specify the default values in customGameSettings.json, however the values this outputs are wrong.
customGameSettings.json: Produces this output:
customGameSettings.json: produces this output:
Expected output: