overlay bug 1.14
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
overlay bug 1.14
Hi,
There a weird bug when applying overlays in 1.14.
Add an overlay image to some unit using
For every subsequent non-overlay object given to the unit, the image overlay gets replicated over and over again like so
Dummy test example.
There a weird bug when applying overlays in 1.14.
Add an overlay image to some unit using
apply_to=overlay
. If you check the unit in debug :inspect, the overlays= field will show the image file twice.For every subsequent non-overlay object given to the unit, the image overlay gets replicated over and over again like so
Code: Select all
overlays="misc/pickable-overlay.png,misc/pickable-overlay.png,misc/pickable-overlay.png,misc/pickable-overlay.png"
Code: Select all
[event]
name=start
[modify_unit]
[filter]
side=1
canrecruit=yes
[/filter]
[object]
id="pickable_overlay"
take_only_once=no
[effect]
apply_to=overlay
add=misc/pickable-overlay.png
[/effect]
[/object]
[object]
name="Orb of Teleport"
id="Orb of Teleport"
image=items/ball-magenta.png
description=_"This orb teleports the carrier between any two empty villages."
take_only_once=no
[effect]
apply_to=new_ability
[abilities]
{ABILITY_TELEPORT}
[/abilities]
[/effect]
[/object]
[object]
name="Heart of the Wose"
id="Heart of the Wose"
image=items/ball-green.png
description=_"The Heart of the Wose grants +8 regeneration and curing ability."
take_only_once=no
[effect]
apply_to=new_ability
[abilities]
{ABILITY_REGENERATES}
{ABILITY_CURES}
[/abilities]
[/effect]
[/object]
[/modify_unit]
[/event]