Page 1 of 1

Size 3 (1x2) enemy bug

Posted: Wed Apr 21, 2021 8:16 am
by Pongo
Slight bug I think in the size 3 enemies in version 197.

I'm using the pool of radiance ogre. The token is 100x400, with an inactive 100x200 pose and attacking 100x200 pose. The inactive token works well, but when the ogre attacks the token stretches and looks weird. Its just a graphical glitch so no big deal but flagging for a future fix.


ogre1.png
ogre1.png (592.11 KiB) Viewed 9976 times
ogre2.png
ogre2.png (556.33 KiB) Viewed 9976 times

Re: Size 3 (1x2) enemy bug

Posted: Wed Apr 21, 2021 7:00 pm
by Dorateen
Pongo, what I did for large sized creatures is to use 200 x 400 tokens (size 4) even if they were tall, or even wide (100 x 200). Anything bigger than the standard 100 x 100, used size 4 and there was no stretching. I don't know if that would be a good solution for you, but that is how I worked with large creatures.

Re: Size 3 (1x2) enemy bug

Posted: Wed Apr 21, 2021 7:17 pm
by slowdive
Thanks for the bug report, this looks like an easy fix. I may take a crack at some bug fixes and adding some of the IBbasic features to IB once I have IBbasic up and going in a few weeks. I’ll need to research how to safely make a pull and push on GitHub that doesn’t mess up any of Karl’s work. Maybe I need to make a branch and then he can pull/merge any of my additions?

Side note: IBbasic is only using size 1 and size 4 so I’m doing exactly what Dorateen is doing.

Re: Size 3 (1x2) enemy bug

Posted: Fri Apr 23, 2021 2:57 pm
by Pongo
ok - thanks both for the help and replies!

Re: Size 3 (1x2) enemy bug

Posted: Fri Jun 11, 2021 7:28 am
by Pongo
Creature sizes don't seem to be working in v199.

These orcs are 100x200 (for an idle/attack png) - set to size 1 in the editor:
1 tile creatures.png
1 tile creatures.png (485.42 KiB) Viewed 9791 times

These ogres are 100x400 - set to size 3:
1x2.png
1x2.png (609.35 KiB) Viewed 9791 times

And this giant spider is 200x400 - set to size 4:
2x2 creatures.png
2x2 creatures.png (609.83 KiB) Viewed 9791 times


I thought it might be something to do with the changeover from v197, so I've tried removing and replacing some of the creatures but it doesn't fix it. In v197 size 1 creatures worked fine for both idle and attack; size 3 worked for idle but not attack; I hadn't tried size 4.

Re: Size 3 (1x2) enemy bug

Posted: Fri Jun 11, 2021 9:26 pm
by slowdive
Something weird happened there, I had tested all sizes. I'll have a look and see if there is somewhere else in the code that may not have been changed or if some was undone.

Love the sticky boots blood mage spell ;-)

Re: Size 3 (1x2) enemy bug

Posted: Sun Jun 27, 2021 8:18 pm
by slowdive
I was able to track this issue down to the use of the "useCombatSmoothMovement" flag set at false. I will need to update the creature draw code for that situation, but I tried a couple of quick changes that didn't work. It will take some work probably due to the complexities of the panning of the combat map system. Stay tuned.

Re: Size 3 (1x2) enemy bug

Posted: Wed Jun 30, 2021 3:20 am
by slowdive
Okay, I think I have it fixed now so that those who are not using the smooth combat movement system will now draw creature sizes correctly. I'll post v1.0.202 in a day or two (once I've done some more testing in a few modules).

Re: Size 3 (1x2) enemy bug

Posted: Wed Jun 30, 2021 1:44 pm
by Pongo
Good work, thank you!