AtomicTorch Studio Forums

VoidExpanse => Modding info => Topic started by: Acuru on July 17, 2017, 01:43:16 AM

Title: Adding to effect group
Post by: Acuru on July 17, 2017, 01:43:16 AM
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).
Title: Re: Adding to effect group
Post by: ai_enabled on July 17, 2017, 03:17:22 AM
Unfortunately, we didn't implement any solution for this problem. You need to override the whole file.
Title: Re: Adding to effect group
Post by: Acuru on July 17, 2017, 04:02:39 AM
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.
Title: Re: Adding to effect group
Post by: Lurler on July 17, 2017, 11:32:03 PM
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.
Title: Re: Adding to effect group
Post by: ai_enabled on July 17, 2017, 11:44:04 PM
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...
Title: Re: Adding to effect group
Post by: Lurler on July 18, 2017, 12:07:43 AM
Again, from what I understand it should be possible to do by adding a new file too :)
(the effect group)
Title: Re: Adding to effect group
Post by: Acuru on July 18, 2017, 06:58:05 AM
Yea, adding new group was a correct way to achive what i wanted :)