Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] The client is using *descriptors* with the *mirrors*. How does that work exactly?

[DiscordArchive] The client is using *descriptors* with the *mirrors*. How does that work exactly?

[DiscordArchive] The client is using *descriptors* with the *mirrors*. How does that work exactly?

rektbyfaith
Administrator
0
04-09-2024, 02:35 PM
#1
Archived author: Natrist • Posted: 2024-04-09T14:35:12.629000+00:00
Original source

The client is using *descriptors* with the *mirrors*. How does that work exactly?
rektbyfaith
04-09-2024, 02:35 PM #1

Archived author: Natrist • Posted: 2024-04-09T14:35:12.629000+00:00
Original source

The client is using *descriptors* with the *mirrors*. How does that work exactly?

rektbyfaith
Administrator
0
04-09-2024, 02:36 PM
#2
Archived author: Natrist • Posted: 2024-04-09T14:36:46.542000+00:00
Original source

Like everything that should be a member variable of the object, corpse, player, unit, etc. classes are instead stored in an array in the Object class. I don't intend to fix it all up just yet but I would like to extract at least the player flags from that hellish nightmare of a code.
rektbyfaith
04-09-2024, 02:36 PM #2

Archived author: Natrist • Posted: 2024-04-09T14:36:46.542000+00:00
Original source

Like everything that should be a member variable of the object, corpse, player, unit, etc. classes are instead stored in an array in the Object class. I don't intend to fix it all up just yet but I would like to extract at least the player flags from that hellish nightmare of a code.

rektbyfaith
Administrator
0
04-09-2024, 02:37 PM
#3
Archived author: Natrist • Posted: 2024-04-09T14:37:24.377000+00:00
Original source

Seems like someone just extracted everything from the client (says it's auto generated in the Object header file) and called it a day.
rektbyfaith
04-09-2024, 02:37 PM #3

Archived author: Natrist • Posted: 2024-04-09T14:37:24.377000+00:00
Original source

Seems like someone just extracted everything from the client (says it's auto generated in the Object header file) and called it a day.

rektbyfaith
Administrator
0
04-09-2024, 02:47 PM
#4
Archived author: Natrist • Posted: 2024-04-09T14:47:30.312000+00:00
Original source

Also, how do you know the player is stunned? Does that get sent in the compressed object update message?
rektbyfaith
04-09-2024, 02:47 PM #4

Archived author: Natrist • Posted: 2024-04-09T14:47:30.312000+00:00
Original source

Also, how do you know the player is stunned? Does that get sent in the compressed object update message?

rektbyfaith
Administrator
0
04-09-2024, 02:49 PM
#5
Archived author: brotalnia • Posted: 2024-04-09T14:49:39.283000+00:00
Original source

you can see the stun unit flag is being applied
rektbyfaith
04-09-2024, 02:49 PM #5

Archived author: brotalnia • Posted: 2024-04-09T14:49:39.283000+00:00
Original source

you can see the stun unit flag is being applied

rektbyfaith
Administrator
0
04-09-2024, 02:56 PM
#6
Archived author: brotalnia • Posted: 2024-04-09T14:56:16.164000+00:00
Original source

is this what you're referring to?
https://github.com/cmangos/mangos-wotlk/...ds.cpp#L29
[Embed: mangos-wotlk/src/game/Entities/UpdateFields.cpp at master · cmangos...]
C(ontinued)-MaNGOS is about: -- Doing WoW-Emulation Right! - cmangos/mangos-wotlk
https://github.com/cmangos/mangos-wotlk/...Fields.cpp
rektbyfaith
04-09-2024, 02:56 PM #6

Archived author: brotalnia • Posted: 2024-04-09T14:56:16.164000+00:00
Original source

is this what you're referring to?
https://github.com/cmangos/mangos-wotlk/...ds.cpp#L29
[Embed: mangos-wotlk/src/game/Entities/UpdateFields.cpp at master · cmangos...]
C(ontinued)-MaNGOS is about: -- Doing WoW-Emulation Right! - cmangos/mangos-wotlk
https://github.com/cmangos/mangos-wotlk/...Fields.cpp

rektbyfaith
Administrator
0
04-09-2024, 02:56 PM
#7
Archived author: brotalnia • Posted: 2024-04-09T14:56:44.819000+00:00
Original source

the flags need to be used to decide who can see updates to a given field
rektbyfaith
04-09-2024, 02:56 PM #7

Archived author: brotalnia • Posted: 2024-04-09T14:56:44.819000+00:00
Original source

the flags need to be used to decide who can see updates to a given field

rektbyfaith
Administrator
0
04-09-2024, 02:57 PM
#8
Archived author: brotalnia • Posted: 2024-04-09T14:57:18.563000+00:00
Original source

for example those with UF_FLAG_PRIVATE are only seen by the player himself, others dont receive those fields in the update object packet
rektbyfaith
04-09-2024, 02:57 PM #8

Archived author: brotalnia • Posted: 2024-04-09T14:57:18.563000+00:00
Original source

for example those with UF_FLAG_PRIVATE are only seen by the player himself, others dont receive those fields in the update object packet

rektbyfaith
Administrator
0
04-09-2024, 03:01 PM
#9
Archived author: Natrist • Posted: 2024-04-09T15:01:50.270000+00:00
Original source

Yes I think that’s it but what I don’t get is why it is implemented in that way on the server side, when the client clearly has the fields in member variables.
rektbyfaith
04-09-2024, 03:01 PM #9

Archived author: Natrist • Posted: 2024-04-09T15:01:50.270000+00:00
Original source

Yes I think that’s it but what I don’t get is why it is implemented in that way on the server side, when the client clearly has the fields in member variables.

Recently Browsing
 
Recently Browsing