Serp
King
- Joined
- Apr 1, 2015
- Messages
- 666
First mod adds a new promotion. (short "ProMod")
The second mod introduces new icons and changes (update) the icon of the previous promotion. ("iconmod").
The ProMod is of course in the depencies of the iconmod in the modinfo file.
So I always activate the ProMod before the Iconmod.
Both mods have the relevant xml file in Actions:
It seems it is absolutely random, which xml entries are written first into the database. Because it already worked the right way.
But now the iconmod is obviously written in the database, before the ProMod.
At least the icon of the promotion is not changed. (the iconmod does work, since it also changes some standard promotion icons, which does work)
.. But there are no errors in the database log. I thought there would be something like "promotion not found to update" or simular.
So what can I do and check and add, to guarantee, that one mod is written in the database before the other?
The second mod introduces new icons and changes (update) the icon of the previous promotion. ("iconmod").
The ProMod is of course in the depencies of the iconmod in the modinfo file.
So I always activate the ProMod before the Iconmod.
Both mods have the relevant xml file in Actions:
<Actions>
<OnModActivated>
<UpdateDatabase>XML/ProMod.xml</UpdateDatabase>
</OnModActivated>
</Actions>
It seems it is absolutely random, which xml entries are written first into the database. Because it already worked the right way.
But now the iconmod is obviously written in the database, before the ProMod.
At least the icon of the promotion is not changed. (the iconmod does work, since it also changes some standard promotion icons, which does work)
.. But there are no errors in the database log. I thought there would be something like "promotion not found to update" or simular.
So what can I do and check and add, to guarantee, that one mod is written in the database before the other?


