sampgdk icon indicating copy to clipboard operation
sampgdk copied to clipboard

sampgdk 4.6.1 + streamer trailer sync bug

Open ziggi opened this issue 5 years ago • 3 comments

Something wrong with trailer sync and streamer 2.9.4.

When players has attached trailer and when they not moving, other players see they as AFK. They don't see players who streamed in until any movement.

It's difficult to explain, look at the video (Russian comments): https://youtu.be/D0btBJ2693A Bug disappears with streamer 2.9.4 builded with sampgdk 4.5.3.

ziggi avatar Feb 27 '19 15:02 ziggi

@ziggi Have you found the root cause?

Zeex avatar Jul 10 '22 06:07 Zeex

@Zeex As I remember, I have tried to use streamer with sampgdk 4.5.3 for a while, but it didn't solve the problem. I was checking something else, but eventually I gave up.

ziggi avatar Jul 10 '22 11:07 ziggi

As an alternative you could use my streamer: https://github.com/philip1337/samp-plugin-streamer

I've used the streamer directly and never had an issue. https://github.com/philip1337/samp-plugin-streamer/blob/master/src/callbacks.cpp

You have to make sure that u call all the natives (callbacks) that the streamer would do usually. I've reimplemented all the streamer functions as native c++ functions.

Here are the corresponding header files: https://github.com/philip1337/samp-plugin-streamer/tree/master/src/include/streamer

It's an older version, never bothered updating it (currently pretty busy). Maybe you can give it a try... Feel free to update it :D

Is there maybe an issue with the streamer using the gdk too? They all have to register the callbacks and there could be an issue with the sync (Update).

Kind regards Phil

philip1337 avatar Jul 10 '22 13:07 philip1337