Standing Animations Not Working
Moderator: Forum Moderators
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.
Standing Animations Not Working
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:
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?
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]
Re: Standing Animations Not Working
Maybe missing [binary_path]?
Re: Standing Animations Not Working
[binary_path]...? Where would I put it? I haven't seen it on other units. What would it be directing towards?
Re: Standing Animations Not Working
In your _main.cfg. Look at any other campaign with custom images; they'll all have one, inside their #ifdef CAMPAIGN_WHATEVER.Shield wrote:[binary_path]...? Where would I put it?
Of course you might also have just typed the image paths wrong, but presumably you've double-checked that.
Re: Standing Animations Not Working
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:
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.
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}
Re: Standing Animations Not Working
Line
Check if you have standing animations setting enabled.
{~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.
Re: Standing Animations Not Working
Try this. I'm not sure but I have has worked so attack animation.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:
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?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]
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]