Desync of attached objects, stream?
#1

Hello,

I have noticed this weird bug and I am sure this is not script related.
It has to do with attached object which are attached to a vehicle. In my case, a shipobject attached to a boat.

[ame="http://www.youtube.com/watch?v=DDGFqemASAc"]http://www.youtube.com/watch?v=DDGFqemASAc&feature=*********[/ame]

Things I can say about what happened in this video:

1. Spawning has most of the time sync, depends on who has spawned (the driver or the player).
2. When Player A is driving and Player B is on the ship and is synced and leaves the position and moves around and then comes back, the player is desynced (weird velocity problems).
3. When Player A is not driving and Player B is on the ship and is desynced and leaves the position and comes back to the position WITHOUT moving when he/she changed position, the player is still desynced. (weird velocity problems when Player A drives).
4. When Player A is not driving and Player B is on the ship and is desynced and leaves the position and comes back to the position WITH moving when he/she changed position, the player is synced when Player A starts driving the boat.

My thoughts:

There is something wrong with the streaming of attached objects.
When you move location to solid objects, which aren't attached and afterwards you create those attached objects, you are synced, but once they are already created and you move location to the attached objects, there are these weird velocities problems...

What are you thoughts?

EDIT: I would like to say that when noone is driving, the boat is destroyed, once Player A drives, a boat is created.
EDIT 2: Didn't get it? I gave an explanation on irc:

Код:
<Strawhat>: Ok, I'll explain it.
<Strawhat>: When Player A and B are on a boat, which has attached objects and Player A is driving, while Player B is walking on the attached objects, they are both synced.
<Strawhat>: But once Player B teleports to a different location and walks a bit there and comes back to the ship and walks on the attached objects.
<Strawhat>: Player B has weird desync problems, weird velocity problems.
<Strawhat>: The only way to fix that, is to remove the attached objects and teleport away and back again.
<Strawhat>: If you create a ship with attached objects again after you did that, you can walk normally again on the attached objects.
<Strawhat>: I have to say that the ship vehicle does get destroyed and recreated too.
<Strawhat>: That link has a video to it though, where you can view it.
<Strawhat>: So
EDIT 3:

I found out this only happens with dynamic object, which are actually playerobjects. SA-MP 0.3e released AttachPlayerObjectToVehicle, I think something went wrong with it, since normal objects attach correctly to a vehicle and there are no velocity problems with normal objects, only with dynamic (player) objects. I think this is a great find.


EDIT 4:

Requested by Jernejl,
I've uploaded this script for you, so you can test it yourself, you can do this alone too.

/shipobject makes a normal ship, with CreateObjects.
/shipdynamicobject makes a dynamic ship, with CreateDynamicObject.

* Baboon slaps yourself up on one ship (remember which one it is) and do /savepos, move a bit around and then do /pos, you will get teleported on the ship you were on. If this is the normal ship, everything is fine, but when you do the same with the dynamic ship, you get these weird velocity problems. around a bit with a large trout.

Apart from that I've also added a /spawn command.


http://pastebin.com/4bsmy7Zv

EDIT 5:

IT also happens with normal objects (static onces). It only happens if you first destroy them and later recreate them. Normal teleporting is fine though, but once you destroy and recreate them later, you have these problems too.
Reply


Messages In This Thread
Surfing object bug (attached objects) - by Baboon - 19.07.2012, 00:20
Re: Desync of attached objects, stream? - by [Twixx] - 19.07.2012, 21:26
Re: Object surfing bug (attached objects) - by Baboon - 19.07.2012, 21:32
Re: Desync of attached objects, stream? - by Rudy_ - 20.07.2012, 04:06
Re: Desync of attached objects, stream? - by Baboon - 20.07.2012, 09:31
surfing bug, found what's wrong. - by Baboon - 20.07.2012, 20:58
Re: Desync of attached objects, stream? - by Rudy_ - 21.07.2012, 06:48
Re: Desync of attached objects, stream? - by Baboon - 21.07.2012, 09:19
Re: Desync of attached objects, stream? - by Baboon - 21.07.2012, 11:16
Re: Desync of attached objects, stream? - by ShOoBy - 15.08.2012, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)