Topic: Order of addons
MarkMcWire Topic Opener |
Posted at: 2024-05-13, 09:54
I have made several dependent addons for the European tribe. Including Craft Addon, Food Addon, Terraforming Addon and Trading Addon. All these addons require the basic European tribe as I have not included all the basic definitions in each addon. The problem now is that the addons in the manager are sometimes sorted before and sometimes after the main addon. The ones behind it function completely normally. Those in front of it are not, due to the dependencies. How is the order of the addons decided in the manager and how can I influence this as an addon developer? My widelands addons: https://drive.google.com/file/d/1jopANlODo41T2reHJ0zaCOMYxq_rxXP-/view?usp=sharing Top Quote |
Nordfriese |
Posted at: 2024-05-13, 16:20
That's what the "requires" key in the Top Quote |
MarkMcWire Topic Opener |
Posted at: 2024-05-13, 17:43
It works for two (terraforming, trading) of them, but not for craft and food addon. My widelands addons: https://drive.google.com/file/d/1jopANlODo41T2reHJ0zaCOMYxq_rxXP-/view?usp=sharing Top Quote |
MarkMcWire Topic Opener |
Posted at: 2024-05-14, 13:24
Manuell sorting solved the problem. My widelands addons: https://drive.google.com/file/d/1jopANlODo41T2reHJ0zaCOMYxq_rxXP-/view?usp=sharing Top Quote |
SandJ |
Posted at: 2024-09-25, 07:17
I am confused by what the wiki says on this. Link: https://www.widelands.org/documentation/add-ons/#restrictions "The order of add-ons matters. Add-ons can be reordered in the in-game add-ons manager. Enabled add-ons are executed from top to bottom. If, for example, you enable one add-on A that adds a new worker type that requires experience and below another add-on B that modifies all workers’ experience thresholds, the new worker’s experience is modified by B because B is loaded later than A. If B is listed above A, the new worker’s experience is not modified by B." Should it say: "...If, for example, you enable one add-on A that adds a new worker type that requires experience and above another add-on B that modifies all workers’ experience thresholds, the new worker’s experience is modified by B because B is loaded later than A..." ? Top Quote |
hessenfarmer |
Posted at: 2024-09-25, 08:53
the wik is correct. the addons are enabled from top to down. Top Quote |
SandJ |
Posted at: 2024-09-25, 20:33
After much puzzlement, twice over, I see the cause of my confusion. The sentence is ambiguous. I read it as:
which makes no sense, rather than:
It's one of those cases where if you know what it is trying to say, you will read it to say what you expect, but a newbie can misinterpret it. Perhaps better wording might be:
Top Quote |
kaputtnik |
Posted at: 2024-09-26, 07:01
Because add-ons can modify widelands a lot, can this just be generalized?
Fight simulator for Widelands: |