Adding to effect group

Started by Acuru, July 17, 2017, 01:43:16 AM

Acuru

I'm adding new effect to effects group (let say industry_exp to effect_definitions_industry.xml). I copied file to mod, and just added another entry and it is working smoothly. BUT! Is there a way to add just entry to effect group without coping whole file (and overriding it)? Something like push to array, not creating whole with new elements. I'm asking it for sake of compatibility with other mods, if they will also modify this file, there will be a problem :C And i don't want to create new, mod specific file (it would display badly on pilot profile).

ai_enabled

Unfortunately, we didn't implement any solution for this problem. You need to override the whole file.

Acuru

That's sad and another reason to not make my mod modular :C Well i propably just include others mods into mine if they autors won't have any objections.

Lurler

Hmm. Wait. It should be possible!
Just create a new file with only that single effect. It should work perfectly.
Same for categories. Just create any new category in a new file and it will work as well.
Just make sure to follow the format as in other files.

ai_enabled

#4
Right, it seems to be possible to add new effects by adding new XML file with these effects (effect_definitions_YOUR_MOD_NAME.xml might be a good idea).
But adding new effect group is not so easy as there is an only single file for all the groups - effect_groups.xml - it should be overridden completely...

Lurler

Again, from what I understand it should be possible to do by adding a new file too :)
(the effect group)

Acuru

Yea, adding new group was a correct way to achive what i wanted :)