View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002975VCMIGUI - Battlespublic2018-07-19 16:012018-07-20 13:21
Assigned To 
PlatformPCOSWindowsOS Version8.1
Product Version0.99 
Target VersionFixed in Version 
Summary0002975: Cyclops Kings don't use their 2-hex attack animation
DescriptionAfter being given "TWO_HEX_ATTACK_BREATH" bonus, Cyclops Kings still use their normal attacking animation when they attack in melee, despite having unused 2-hex attacking animation in their original def file.
Steps To Reproduce1. Unpack my attached mod,
2. Start any single player with Stronghold,
3. vcmiarmenelos,
4. Take some Cyclops Kings to battle, wait until enemy stacks align and attack.
Additional InformationI attach an example test mod that makes Cyclops Kings attack with 2-hex attack BONUS and makes them unable to shoot, to help reproduce the issue.
TagsNo tags attached.
Attached Fileszip file icon [^] (1,073 bytes) 2018-07-19 16:01

- Relationships

-  Notes
AVS (administrator)
2018-07-19 16:15

VCMI use different frame groups for 2-HEX attack.
        VCMI_2HEX_UP = 40,
        VCMI_2HEX_FRONT = 41,
        VCMI_2HEX_DOWN = 42

It is recommended to alter animation to use these indexes.

However, fallback option for 2-HEX attack should be done in a way similar to cast animation.
Andruids (reporter)
2018-07-20 13:01

Wow, it worked : D

However there's a new issue, now cyclopes use this animation every time when they attack, not only when they hit 2 units.

By the way, are there other frame groups used by VCMI?
AVS (administrator)
2018-07-20 13:21

Here is complete list:
    enum EAnimType // list of creature animations, numbers were taken from def files
        TURN_R=8, //same
        //TURN_L2=9, //identical to previous?

        DEAD = 22, // new group, used to show dead stacks. If empty - last frame from "DEATH" will be copied here
        DEAD_RANGED = 23, // new group, used to show dead stacks (if DEATH_RANGED was used). If empty - last frame from "DEATH_RANGED" will be copied here

        VCMI_CAST_UP = 30,
        VCMI_CAST_FRONT = 31,
        VCMI_CAST_DOWN = 32,
        VCMI_2HEX_UP = 40,
        VCMI_2HEX_FRONT = 41,
        VCMI_2HEX_DOWN = 42

- Issue History
Date Modified Username Field Change
2018-07-19 16:01 Andruids New Issue
2018-07-19 16:01 Andruids File Added:
2018-07-19 16:15 AVS Note Added: 0007600
2018-07-20 13:01 Andruids Note Added: 0007601
2018-07-20 13:21 AVS Note Added: 0007602

Site | Forums | Wiki | Slack | GitHub

Copyright © 2000 - 2021 MantisBT Team
Hosting provided by DigitalOcean