ME3Tweaks / ME3TweaksModManager

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

DLCOptionKey structs issue #454

Open Leszek90 opened 4 months ago

Leszek90 commented 4 months 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 4 months 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.