samp-streamer-plugin icon indicating copy to clipboard operation
samp-streamer-plugin copied to clipboard

OnPlayerEditDynamicObject not being called in latest version?

Open Crayder opened this issue 8 years ago • 7 comments

It seems like OnPlayerEditDynamicObject isn't being called in the latest version but it works fine in version 2.7.2 (used in Texture Studio before 1.9... and switching back to until this is fixed).

Crayder avatar Dec 12 '17 20:12 Crayder

It works fine for me. Worked fine in v2.8.2 and works fine in v2.9.2 too. Try using crashdetect to see if something weird appears ? Also, try to see if any hook is blocking it.

IstuntmanI avatar Dec 12 '17 21:12 IstuntmanI

crashdetect is loaded. The only script being used is Texture Studio. In 2.9.2, nothing is printed in the console, not even this message:

public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
	printf("%i, %i, %i", playerid, objectid, response);

With 2.7.2 everything works fine, but I want to use the new features. xD

It doesn't make sense to me though, everything else seems to work AFAIK.

Crayder avatar Dec 12 '17 22:12 Crayder

Well, I'm using that callback mainly to edit house items. I was using v2.8.2 for a long time and it was working fine every time (heavily used by players). I didn't test it too much on v2.9.2, but it is working fine in the latest version too if I remember correctly. I looked earlier and all the version after 2.7.2 (v2.7.3 ?) did related to callbacks was a sampGDK update related to them which actually fixed some things. Make sure to produce minimal code to reproduce that and debug it as fine as possible until you spot the problem (I never saw a problem related to this callback not being called).

Everything looks fine here: https://github.com/samp-incognito/samp-streamer-plugin/blob/29862cfdb70367a9d476f3a8da1c37c904862b09/src/callbacks.cpp#L184-L236

IstuntmanI avatar Dec 12 '17 22:12 IstuntmanI

Solved it ?

IstuntmanI avatar Jan 13 '18 15:01 IstuntmanI

It seems to me that this is having problems in the latest version. I edited an object and it simply went to 0 0 0 and I was not even close to it (CentOS 7).

Locky0 avatar Mar 07 '18 13:03 Locky0

Not solved unfortunately, @ IstuntmanI.

I'm going to try TS with all releases after 2.7.2 to see which one it stops working in later.

Crayder avatar Mar 08 '18 14:03 Crayder

Can't recreate.

karimcambridge avatar Jul 15 '18 19:07 karimcambridge