otclient icon indicating copy to clipboard operation
otclient copied to clipboard

Dat Outfit Group Flag

Open Riverlance opened this issue 9 years ago • 1 comments

Before creating an issue, please ensure:

  • [x] This issue is reproducible without changes to the code in this repository
  • [X] This is a bug in the software that resides in this repository, and not a support matter (use https://otland.net/forums/otclient.494/ for support)

Steps to reproduce (include any configuration/script required to reproduce)

  1. Select the outfit 724/725 (Evoker) and use the bat addon. image

Expected behaviour

The outfit should be reproducing the idle/stand animation.

Actual behaviour

The outfit is not reproducing any animation when is idle/stand. Also, maybe for this reason, the walking animation is not using the correct sprites.

Environment

Protocol 10.99 with latest OTClient.

More informations

I don't know exactly when the Tibia added the group animation flag on the dat, but it works like this:

  • You can have 2 groups of animations: 1. Idle/Stand and the 2. Walking.
  • You can set different values of width, height, crop size, layers, X, Y, Z and animations count for each one animation group. It means I could do like the Evoker outfit: make the bat animated while stand, for example, with maybe like 10 animations and size like 3x3 and, on the walking animation, with just 4 animations and size like 2x2.

Also, I tried to use the outfits 24 (Minotaur Archer), 81 (Cobra), 274 (Squirrel) outfits. Which each one have the idle animation with size 1x1 of sqm and animation 1, but on the group 2 (animated) they all have sizes 2x2 of sqms and more than 1 animation. On the game it crashes when these outfits moves. I reported this once here ( https://github.com/edubart/otclient/issues/813 ), but I found a "fix" just setting the idle/stand animation size to 1x1 and filling the sprites correctly with this new size. It didn't crashed anymore until today. But... this is not a fix, right? The group flag is not working properly as it should, I think.

Riverlance avatar Jun 14 '17 05:06 Riverlance

Any update on this?

JavierP avatar Sep 26 '17 18:09 JavierP