overlay bug 1.14

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

overlay bug 1.14

Post by vghetto »

Hi,

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"
Dummy test example.

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]
Post Reply