Standing Animations Not Working

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
Shield
Posts: 57
Joined: January 23rd, 2011, 5:58 pm

Standing Animations Not Working

Post by Shield »

Hi, I'm experiencing some problems with getting standing animations to work in my campaign. I've checked the wiki, and haven't found anything useful already on the forum. And since the problem isn't one that brings up an explanatory error message, I've no idea what I'm doing wrong.
Here is the code for the standing animation of the unit:

Code: Select all

    [standing_anim]
		start_time=0
        [frame]
            duration=150
            image="units/necro-drake/necro-drake1.png"
        [/frame]
        [frame]
            duration=150
            image="units/necro-drake/necro-drake2.png"
        [/frame]
        [frame]
            duration=150
            image="units/necro-drake/necro-drake3.png"
        [/frame]
    [/standing_anim]
Animation code copy-pasted from the "Rhami'datu" unit via EoMa with the images changed for my unit. The rest of the unit's animations, movement, attacking, death, etc. work perfectly. It's only standing that's malfunctioning-- the sprites don't appear at all, not even the regular unit image shows on the map. This error also applies to other units' standing animations I've tried to make. Anybody know what it is I'm messing up?
Creator of Lonely Era.
Here's my art!
I'm also on Tumblr.

User avatar
Ravana
Forum Moderator
Posts: 2380
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Standing Animations Not Working

Post by Ravana »

Maybe missing [binary_path]?

User avatar
Shield
Posts: 57
Joined: January 23rd, 2011, 5:58 pm

Re: Standing Animations Not Working

Post by Shield »

[binary_path]...? Where would I put it? I haven't seen it on other units. What would it be directing towards?
Creator of Lonely Era.
Here's my art!
I'm also on Tumblr.

User avatar
zookeeper
WML Wizard
Posts: 9741
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Standing Animations Not Working

Post by zookeeper »

Shield wrote:[binary_path]...? Where would I put it?
In your _main.cfg. Look at any other campaign with custom images; they'll all have one, inside their #ifdef CAMPAIGN_WHATEVER.

Of course you might also have just typed the image paths wrong, but presumably you've double-checked that.

User avatar
Shield
Posts: 57
Joined: January 23rd, 2011, 5:58 pm

Re: Standing Animations Not Working

Post by Shield »

I put a path directing to "images" into the _main.cfg, standing anim still didn't work. Like I said, only the standing animation images aren't working. All the other sprites appear just fine. But with the standing anim put in place, none of its sprites show on the map at all except when the unit is moving or attacking.
Here's the image path I put into the _main.cfg:

Code: Select all

#ifdef CAMPAIGN_TEST
[binary_path]
    path=data/add-ons/A_TEST
[/binary_path]

{~add-ons/A_TEST/utils}
[+units]
    {~add-ons/A_TEST/units}
[/units]
{~add-ons/A_TEST/scenarios}
{~add-ons/A_TEST/images}
I checked around, and I can't recall seeing any other campaigns with binary paths leading to images... Whatever it is that's making my units' standing animations not work, it sure isn't possible for me to figure out.
Creator of Lonely Era.
Here's my art!
I'm also on Tumblr.

User avatar
Ravana
Forum Moderator
Posts: 2380
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Standing Animations Not Working

Post by Ravana »

Line {~add-ons/A_TEST/images} does nothing, might be removed just as well. This type of inclusion does not read image files.

Check if you have standing animations setting enabled.

dragon_99
Posts: 21
Joined: February 19th, 2015, 2:49 pm

Re: Standing Animations Not Working

Post by dragon_99 »

Shield wrote:Hi, I'm experiencing some problems with getting standing animations to work in my campaign. I've checked the wiki, and haven't found anything useful already on the forum. And since the problem isn't one that brings up an explanatory error message, I've no idea what I'm doing wrong.
Here is the code for the standing animation of the unit:

Code: Select all

    [standing_anim]
		start_time=0
        [frame]
            duration=150
            image="units/necro-drake/necro-drake1.png"
        [/frame]
        [frame]
            duration=150
            image="units/necro-drake/necro-drake2.png"
        [/frame]
        [frame]
            duration=150
            image="units/necro-drake/necro-drake3.png"
        [/frame]
    [/standing_anim]
Animation code copy-pasted from the "Rhami'datu" unit via EoMa with the images changed for my unit. The rest of the unit's animations, movement, attacking, death, etc. work perfectly. It's only standing that's malfunctioning-- the sprites don't appear at all, not even the regular unit image shows on the map. This error also applies to other units' standing animations I've tried to make. Anybody know what it is I'm messing up?
Try this. I'm not sure but I have has worked so attack animation.
Pre rename files
necro-drake-1.png
necro-drake-2.png
necro-drake-3.png

Code: Select all

 [frame]
            duration=150
            image="units/necro-drake/necro-drake[1~3].png:[50,50,50]"
        [/frame]

Post Reply