SA-MP Forums Archive
Animation + pause - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Animation + pause (/showthread.php?tid=423907)



Animation + pause - Baboon - 19.03.2013

Please take a look here, since my thread doesn't really get attention, I suppose I will post this in the Bug Reports board.

https://sampforum.blast.hk/showthread.php?tid=421644


Re: Animation + pause - Basssiiie - 19.03.2013

Are you using the forcesync param in ApplyAnimation?


Re: Animation + pause - Baboon - 19.03.2013

Yes, I have also disabled it, it still occured.
Force sync is something else though. That is if the player himself is doing an animation, while he is paused.
This is the opposite, someone else is doing an animation and the player is just pausing, doing nothing.


Re: Animation + pause - Basssiiie - 19.03.2013

Is this dependent on the amount of NPCs where you use ApplyAnimation for? I've got one NPC in my server which sometimes uses ApplyAnimation, but thus far I haven't noticed any problems. I'll check in a minute if I can cause it to crash.

Edit: Nope, no crash and no warning. But in my case the player himself was in an anim too. If I've got the time, I'll try to test it again with some friends somewhere in the upcoming days. (Probably the weekend.)


Re: Animation + pause - Baboon - 20.03.2013

That'd be great. Yes, with one person it wouldn't cause a problem.

Perhaps you could get yourself about 10 people, that it would crash for sure.
I don't have 10 people who can test that together with me.

It'd be nice if you could test 2 cases: everyone except you doing an animation in a loop (activated once, without a timer).
And one case with which you reactive the animation for everyone at 1 moment (by using a timer). Make sure you are paused when they are doing the anim. Then wait 10 sec.


Re: Animation + pause - Basssiiie - 20.03.2013

I don't have much time to test it a lot and I'm not sure if I can get 10 people to test. :P I'll try my best.

Edit 26th of March: Weekend ended two days ago, woops! Anyway, we couldn't test it due to problems with the host. (We couldn't access the server at all.) Maybe next weekend.


Re: Animation + pause - Baboon - 20.03.2013

I've tested it!
When I just loop the animation, without resetting them, I don't crash while pausing.
But when I reset the animations each second of the npcs, and I pause, I do crash...