ME3Tweaks / ME3TweaksModManager

Mod Manager for Mass Effect Original Trilogy and Mass Effect Legendary Edition
GNU General Public License v3.0
123 stars 34 forks source link

DLCOptionKey structs issue #454

Open Leszek90 opened 1 month ago

Leszek90 commented 1 month ago

Moddesc.ini editor requires space after coma in DLCOptionKey structs parameter list.

Example:

Doesn't work: +DLC_MOD_SOMENAME[optionkey=[option=Option1],optionkey=[option=Option2]]

Works: +DLC_MOD_SOMENAME[optionkey=[option=Option1], optionkey=[option=Option2]]

Required space in deserialized moddesc.ini is missing which makes it impossible to serialize it again.

Mgamerz commented 1 month ago

Looking into this, it does not work because the code is splitting values on ,. When you have two option keys, it has an additional , which it is splitting on, and is causing invalid values. I am not sure how how this can be updated without a moddesc parser version update to cmmver 9.01. The fix would be to use a parser that respects the [ ] blocks.