minecraftPlayerAnimator icon indicating copy to clipboard operation
minecraftPlayerAnimator copied to clipboard

Added support for easing arguments

Open ZigyTheBird opened this issue 1 year ago • 25 comments
trafficstars

Pretty self explanatory, some easings now use the easingArgs parts of a Blockbench animation json I have tested this personally and it works great I didn't touch your networking though so animations synced through that won't support this feature I also tried my best to make sure this doesn't break anything with mods developed on older versions

ZigyTheBird avatar Jul 28 '24 21:07 ZigyTheBird

Is this gonna be merged?

ZigyTheBird avatar Aug 03 '24 02:08 ZigyTheBird

This doesn't break Emotecraft so I am assuming it will work just fine

ZigyTheBird avatar Aug 04 '24 03:08 ZigyTheBird

Still not synchronizing over the network

dima-dencep avatar Aug 04 '24 12:08 dima-dencep

You also forgot to change the hashCode and toString methods of the KeyFrame class

dima-dencep avatar Aug 04 '24 12:08 dima-dencep

Still not synchronizing over the network

How are you testing if it is?

ZigyTheBird avatar Aug 04 '24 15:08 ZigyTheBird

You also forgot to change the hashCode and toString methods of the KeyFrame class

Aw man I swear I did it before! Thanks for the reminder I will fix that whenever I can

ZigyTheBird avatar Aug 04 '24 15:08 ZigyTheBird

How are you testing if it is?

I just see in the code that it's not done, that's all

dima-dencep avatar Aug 04 '24 16:08 dima-dencep

Sorry I am surviving on 3 hours of sleep so I somehow messed up the commit before this one that's why it had NOTHING IN IT Thankfully IntelliJ's local history option saved the day

ZigyTheBird avatar Aug 04 '24 18:08 ZigyTheBird

I was so confused as to why you thought my code didn't work little did I know there was no code

ZigyTheBird avatar Aug 04 '24 18:08 ZigyTheBird

Everything is fine now, but the only thing I don't like is that you haven't updated the keyframe size calculator

dima-dencep avatar Aug 05 '24 00:08 dima-dencep

If I didn't mess this up then this should do the job

ZigyTheBird avatar Aug 05 '24 02:08 ZigyTheBird

I like the idea, but I might do it in a different, more powerful way.

KosmX avatar Aug 05 '24 08:08 KosmX

One reason is: this will unnecessarily increase the binary size, which is already at its size limit. I'll experiment with an alternative solution, if that doesn't work, I'll merge this.

KosmX avatar Aug 05 '24 08:08 KosmX

Please, no

dima-dencep avatar Aug 05 '24 19:08 dima-dencep

Please, no

How bad of an idea is this?

ZigyTheBird avatar Aug 05 '24 19:08 ZigyTheBird

KosmX probably wasn't referring to the size of the packets, you should never increase their size that way

dima-dencep avatar Aug 05 '24 19:08 dima-dencep

Welp I don't understand this stuff which is why I decided not to touch networking at the start Doesn't your pull request also cause the same issue with the "binary size" or is that different somehow?

ZigyTheBird avatar Aug 05 '24 19:08 ZigyTheBird

I didn't know the binary animation format had a limit at all...

dima-dencep avatar Aug 05 '24 19:08 dima-dencep

As for the size of the packets... Well, with the new emotecraft it's not a problem 🙃

dima-dencep avatar Aug 05 '24 19:08 dima-dencep

Well this commit made things way more efficient so if new Emotecraft has a larger size limit then everything should be fine

ZigyTheBird avatar Aug 05 '24 21:08 ZigyTheBird

Any updates? I am fine if this doesn't get merged if you have your own solution but just saying that I have seen a couple folks that think the 1.21 port hasn't happened yet because you haven't uploaded the new version on Modrinth and CurseForge

ZigyTheBird avatar Aug 28 '24 18:08 ZigyTheBird

@KosmX does the new system for deserializing GeckoLib animations support easing arguments on 1.21? If not then I can get started porting this if you don't have other plans

ZigyTheBird avatar Sep 15 '24 08:09 ZigyTheBird

Although considering how much you changed things I doubt there is much to salvage from here

ZigyTheBird avatar Sep 15 '24 08:09 ZigyTheBird

blender does not support easing arguments, and geckolib animation import is apparently deprecated in playeranimator

That's the reason why this pr doesn't merge

dima-dencep avatar Sep 15 '24 10:09 dima-dencep

deprecated??? That's what most people use tho :(

ZigyTheBird avatar Sep 15 '24 16:09 ZigyTheBird

@KosmX thoughts? Wallahi this PR is good 😔

ZigyTheBird avatar Dec 16 '24 10:12 ZigyTheBird