State Icons Are Displaying Underneath Dragonbones Enemies

NikkiKaji

Veteran
Veteran
Joined
Jun 30, 2016
Messages
30
Reaction score
6
First Language
English
Primarily Uses
Plugins: Yanfly Buffs & States Core, KELYEP_Dragonbones
Well...I guess this is kinda self explanatory with the title. The state overlay is displaying just fine, but the actual state icon (in this case, the frozen state) is showing up beneath the dragonbones enemy. On normal, non-dragonbones enemies, it appears as normal. Is there a way to fix this?
3Dbi0jP.png
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
943
Reaction score
589
First Language
English
Primarily Uses
RMMV
Without looking at the problem too hard, as I don't use the dragon bones plugin myself, and it's a little difficult to set it up, I feel like battle engine core sets the height of the state icons based on the height of the battler's sprite. That said, your non dragonbones battlers obviously have sprites, so it works.
What happens if you give the dragonbone battler a sprite in the database (or does it have one already)? I think the dragonbones plugin doesn't overwrite the original sprite for the battler, it just hides it for compatibility reasons, and that battle engine core is using a 'blank' or non-existent sprite to define the height here.
 

NikkiKaji

Veteran
Veteran
Joined
Jun 30, 2016
Messages
30
Reaction score
6
First Language
English
Primarily Uses
Without looking at the problem too hard, as I don't use the dragon bones plugin myself, and it's a little difficult to set it up, I feel like battle engine core sets the height of the state icons based on the height of the battler's sprite. That said, your non dragonbones battlers obviously have sprites, so it works.
What happens if you give the dragonbone battler a sprite in the database (or does it have one already)? I think the dragonbones plugin doesn't overwrite the original sprite for the battler, it just hides it for compatibility reasons, and that battle engine core is using a 'blank' or non-existent sprite to define the height here.

When I tested this, the dragonbone battler already had a sprite. Is there possibly a way to just set an offset for the state sprite location? Or another fix in general?
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
943
Reaction score
589
First Language
English
Primarily Uses
RMMV
When I tested this, the dragonbone battler already had a sprite. Is there possibly a way to just set an offset for the state sprite location? Or another fix in general?
Quite likely. As I don't use the DragonBones plugin, I'm not much help in fixing an issue specific to it. However, by further determining what the trigger of the problem is, we can find a workaround, and maybe even make a patch for it.

Was the sprite you were using for the giant enemy up in your screenshot there substantially smaller than the actual battler? Like a tiny default slime, or something similar? If you change it to something much larger, like the default minotaur, is there a different in the draw position of those icons?
 

NikkiKaji

Veteran
Veteran
Joined
Jun 30, 2016
Messages
30
Reaction score
6
First Language
English
Primarily Uses
Quite likely. As I don't use the DragonBones plugin, I'm not much help in fixing an issue specific to it. However, by further determining what the trigger of the problem is, we can find a workaround, and maybe even make a patch for it.

Was the sprite you were using for the giant enemy up in your screenshot there substantially smaller than the actual battler? Like a tiny default slime, or something similar? If you change it to something much larger, like the default minotaur, is there a different in the draw position of those icons?
Nope. The dragonbones battler actually has a static battle sprite the same size as it and I used that one, but for testing purposes I switched it to something bigger and got the same result.
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
943
Reaction score
589
First Language
English
Primarily Uses
RMMV
Is there a demo for the dragonbones plugin? Does this happen in the demo as well, or just your project? Are your yanfly plugins being loaded in the correct order? It's important to discount any project specific issues before trying to work on a fix. If it happens in the demo (or a clean project) then we know that it's an actual incompatibility or bug. Load order is also important, as plugins like this rely heavily on functions already defined in other plugins, and if they're loaded out of order, changes can be overwritten.
 

NikkiKaji

Veteran
Veteran
Joined
Jun 30, 2016
Messages
30
Reaction score
6
First Language
English
Primarily Uses
Is there a demo for the dragonbones plugin? Does this happen in the demo as well, or just your project? Are your yanfly plugins being loaded in the correct order? It's important to discount any project specific issues before trying to work on a fix. If it happens in the demo (or a clean project) then we know that it's an actual incompatibility or bug. Load order is also important, as plugins like this rely heavily on functions already defined in other plugins, and if they're loaded out of order, changes can be overwritten.

Omg thank you for suggesting the demo project. I completely forgot that akashics put sample project downloads when you support their *******. I went and downloaded their sample project and copied all of the plugins that they used. Turns out, yanfly's animated sideview battler actually fixes the problem with the state position! I never would've considered that since it's not a required plugin. Anyways, thank you!
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
943
Reaction score
589
First Language
English
Primarily Uses
RMMV
Glad to have been of assistance.
 

Latest Threads

Latest Posts

Latest Profile Posts

Sneak peak of my upcoming update! Who's holding her, you may ask? Find out tonight!
10.PNG
BCj
Finished another GUI! Turn indicator wasn't made by me.

ff981f8dc50b03cf58038c644334b454.jpg


3cb092fdc00087acfa0a190fd891f0ed.jpg
Added a small refining scene to my game.

It makes sense that you try to focus on the squishy mages at the back of the party first, right? If the mage can out-DPS the enemy DPS before the latter can kill the tank in front, the fight becomes boring.

Forum statistics

Threads
115,240
Messages
1,088,298
Members
149,834
Latest member
hootwhoration
Top