AMLA Teachers
Moderator: Forum Moderators
AMLA Teachers
Hi! This is the feedback topic for my addon "AMLA Teachers".
A small Wesnoth modification that adds a "Teacher" advancement option for units that reached AMLA. The Teacher redistributes it's own XP to units around it at every turn. This makes them gaining XP gain less wasteful, while still providing some interesting decistion in positioning units.
I basically hacked it together from Garak's ability in UtBS and the LotI custom advancements mod.
Github: https://github.com/dragonfi/AMLA_Teacher
A small Wesnoth modification that adds a "Teacher" advancement option for units that reached AMLA. The Teacher redistributes it's own XP to units around it at every turn. This makes them gaining XP gain less wasteful, while still providing some interesting decistion in positioning units.
I basically hacked it together from Garak's ability in UtBS and the LotI custom advancements mod.
Github: https://github.com/dragonfi/AMLA_Teacher
Re: AMLA Teachers
From code review it does not look like you do anything that would need require_modification=yes.
I would remove distribution of local mod = teacher.experience % #students. Sorting can sort multiple units equally, so different clients may have different units get xp. And instead of teacher.experience = 0 reducing xp based on how much is moved.
I would remove distribution of local mod = teacher.experience % #students. Sorting can sort multiple units equally, so different clients may have different units get xp. And instead of teacher.experience = 0 reducing xp based on how much is moved.
Re: AMLA Teachers
I couldn't find a good definition on when require_modification can be "no", so I just went for the safe one. Can you tell me when it's not required?Ravana wrote: ↑June 22nd, 2025, 9:44 am From code review it does not look like you do anything that would need require_modification=yes.
I would remove distribution of local mod = teacher.experience % #students. Sorting can sort multiple units equally, so different clients may have different units get xp. And instead of teacher.experience = 0 reducing xp based on how much is moved.
I would prefer for teacher.experience to evaporate at the beginning of every turn, otherwise, you could just send them on a solo mission and bring them back to level up some fresh recruits.
It is a valid point that the sorting is not completely deterministic, I will probably just use coordinates to disambiguate fuzzy cases.
Re: AMLA Teachers
Non-wml files like images are most common reason to require download. Next common is some tags like [unit_type] which are not sent over network.
Re: AMLA Teachers
Thanks! I made the sorting deterministic by breaking ties based on position.
Re: AMLA Teachers
Sorry, maybe I'm noob, but how to activate this mod? I downloaded it and though it will just start working. Is it not supposed to work with addon campaigns?
UPD: found checkbox... look like it's required to restart company to add feature. xD
UPD: found checkbox... look like it's required to restart company to add feature. xD