Repository navigation
Description
What happens
1.14.2 client, CMaNGOS classic from before mangos-classic 85e06ac9d, which sends elevators and trams (gameobject type 11) as plain gameobjects, guid high 0xF110. HermesProxy v4.7.6.
Board a Deeprun Tram car at the Stormwind platform. A few seconds later the car is gone from under the character and it drops into the track pit, still at the platform.
Found while testing #592. This path is not touched by #591 or #592: the guid is a gameobject guid before and after.
Observed
Car 176081 (spawn guid 18803), boarded by a GM teleport onto its floor while it stood at the platform. The server was asked for the character's position every 1.5 s (.gps).
| Time | Client (its own move packets) | Server (.gps) |
|---|---|---|
| 0 s | lands on the car, world y 8.4, offset 0 on the car | |
| +3 s | still y 8.4 on the car | y 59, aboard |
| +4.5 s | still y 8.4 on the car | y 144, aboard |
| +6 s | still y 8.4 on the car | y 208, aboard |
| +7 s | no transport, falling at y 8.4 | |
| +8 s | on the pit floor at y 8.4 | y 8.4, not aboard |
- The server moved the car away with the character on it. On the client the car stayed at the platform for the whole 7 seconds.
- Just before the fall the server sent
SMSG_DESTROY_OBJECTfor the three cars of that train (spawn guids 18802, 18803, 18807). - Each move the client sent carried its own world position, still at the platform.
The same ride on a CMaNGOS classic from after that commit (trams under the guid high 0x6000) passes with v4.7.6: client and server go from y 8.4 to y 2490.7 together, the server has the character aboard in every answer, and no car is destroyed.
Likely cause (from the code, not proven by a fix yet)
The client and the server disagree about where the car is on its path. The 1.14 create carries the transport's path timer (ServerTime) only when the guid is a transport guid:
HermesProxy/World/Objects/Version/V1_14_0_40237/ObjectUpdateBuilder.cs, line 143, with a note below it that type 11 should be covered too. The 1.14.1, 2.5.2 and 2.5.3 builders have the same line.
A type-11 object that arrives under a gameobject guid gets no timer, so the client runs the car's animation on a clock of its own. CMaNGOS sends the timer for these objects (UPDATEFLAG_TRANSPORT, the path progress), and moves the cars itself (ElevatorTransport::Update). When the two drift apart, the server carries its passenger down the tunnel, the next move from the client puts the character back at the platform, the cars are now out of its range and the server removes them.
That would also explain why the 0x6000 server works: there the guid is a transport guid, and the timer is sent.
Not checked
- Whether the Undercity lift is out of step in the same way on that server. The ride passes there, but that test compares nothing between the two sides.
- 2.5 clients on CMaNGOS TBC from before mangos-tbc 52568b667, which sent these objects as plain gameobjects as well.
Next step
Send the path timer for every type-11 transport that came with one, whatever its guid, and run the tram on both servers.
Done when
On a CMaNGOS classic that sends trams as 0xF110, a 1.14 client rides a Deeprun Tram car from the Stormwind platform to the Ironforge one, and the ride still passes on a 0x6000 server.
Activity