Page 1 of 1
Docs: Mention event order by mod name
Posted: Mon Oct 17, 2016 12:22 pm
by aubergine18
viewtopic.php?p=215849#p215849
This was completely unexpected to me. I was expecting the events to be fired based on mod load order, and thus dependencies would have had an effect on it, but this is not the case. IMO docs should mention this.
Re: Docs: Mention event order by mod name
Posted: Mon Oct 17, 2016 1:15 pm
by Klonan
Mods shouldn't be doing anything based off other mods script event actions,
The remote interface and/or custom events are what you use when your mod script depends on some other mod
Re: Docs: Mention event order by mod name
Posted: Mon Oct 17, 2016 1:33 pm
by aubergine18
Yes, but recent discussions have shown that modders, myself included, were assuming that events would be handled based on mod load order, not alphabetical order. The current documentation does nothing to rectify this widely adopted invalid assumption. This will lead to bugs, and frustrated end users and modders.
Re: Docs: Mention event order by mod name
Posted: Mon Oct 17, 2016 1:36 pm
by aubergine18
Suggested text:
When multiple mods listen to the same event, the order the mods receive the event is determined by alphabetic order of the mod names, not the order in which the mods are loaded. Setting mod dependencies will have no effect on event sequencing. To ensure correct flow between mods, use remote interfaces instead.