Closed stevecotton closed 1 year ago
There has been something unreliable about dalefolk variations, I had to remove them from orocia lists.
variation_id: The id of this variation. Defaults to variation_name.
Looks like this warning should be ignored.
I did a test, and corrected that Wiki page you quoted. :(
In debug mode, create a AE_mag_Walking_Corpse
. There's an edge case with the first variation that has no id: creating a unit with debug mode will default to the variation with variation_name=wyvern
, which is the first one with no id, instead of creating the base unit.
Hovering over that unit, the debug commands:
:unit variation=camel
- selects a variation by id (changes the graphics but not the stats):unit variation=wyvernrider
- selects a variation by id (again, just the graphics):unit variation=anything_unknown
- changes to the graphic to zombie-sister.png
, which is the graphic for the base unit:unit variation=wyvern
- also zombie-sister.png
, even though this matches a variation_name
it doesn't match a variation_id
:unit variation=
- a blank id gets the wyvern imageI've just noticed that this is an EoMa unit, and the missing ids have been added in the EoMa version.
In Wesnoth's codebase, 724dd0f9 is supposed to fall back to the variant_name
, but this is only in code for displaying the help.
(changes the graphics but not the stats)
I came along that recently too … what I got from it (when using WML instead of debug mode) that using the [transform_unit]
tag – and transforming to itself instead of some other unit – will change the stats afterwards as well.
https://github.com/Robertdebrus/ANLEra/blob/master/units/dunefolk/Civilian.cfg#L110-L143
With Ageless 4.28.0, Wesnoth 1.16 prints the warning
error config: Skipping duplicate unit variation ID: ''
several times when starting a multiplayer game. Having adding a bit more debugging, the unit_types involved are:AE_efm_dalefolk_Wilderman
4 times (might be 5, I think the first one without avariation_id
is accepted)AE_efm_dalefolk_shifter
5 times (might be 6)AE_mag_Walking_Corpse
19 or 20 timesAE_rhy_tr_Sentinel
2 or 3 times