Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] So how does phasing work anyway? I have two separate quests that end, individually, with their quest

[DiscordArchive] So how does phasing work anyway? I have two separate quests that end, individually, with their quest

[DiscordArchive] So how does phasing work anyway? I have two separate quests that end, individually, with their quest

rektbyfaith
Administrator
0
07-18-2022, 07:41 PM
#1
Archived author: whatwere • Posted: 2022-07-18T19:41:12.280000+00:00
Original source

So how does phasing work anyway? I have two separate quests that end, individually, with their quest givers, who are right next to each other, disappearing. Is there an efficient way to avoid using auras?
rektbyfaith
07-18-2022, 07:41 PM #1

Archived author: whatwere • Posted: 2022-07-18T19:41:12.280000+00:00
Original source

So how does phasing work anyway? I have two separate quests that end, individually, with their quest givers, who are right next to each other, disappearing. Is there an efficient way to avoid using auras?

rektbyfaith
Administrator
0
07-18-2022, 07:49 PM
#2
Archived author: <o> • Posted: 2022-07-18T19:49:00.434000+00:00
Original source

`WorldObject::SetPhaseMask` is the function you work with. Phasing is just a 32-bit integer stored on the world object. If two objects have a single bit overlapping, they are in the same phase, otherwise they are not
rektbyfaith
07-18-2022, 07:49 PM #2

Archived author: <o> • Posted: 2022-07-18T19:49:00.434000+00:00
Original source

`WorldObject::SetPhaseMask` is the function you work with. Phasing is just a 32-bit integer stored on the world object. If two objects have a single bit overlapping, they are in the same phase, otherwise they are not

rektbyfaith
Administrator
0
07-18-2022, 07:49 PM
#3
Archived author: whatwere • Posted: 2022-07-18T19:49:33.053000+00:00
Original source

Isn't 32 bits a very small amount of phases?
rektbyfaith
07-18-2022, 07:49 PM #3

Archived author: whatwere • Posted: 2022-07-18T19:49:33.053000+00:00
Original source

Isn't 32 bits a very small amount of phases?

rektbyfaith
Administrator
0
07-18-2022, 07:49 PM
#4
Archived author: <o> • Posted: 2022-07-18T19:49:47.703000+00:00
Original source

yes, that's why it's usually done with auras
rektbyfaith
07-18-2022, 07:49 PM #4

Archived author: <o> • Posted: 2022-07-18T19:49:47.703000+00:00
Original source

yes, that's why it's usually done with auras

rektbyfaith
Administrator
0
07-18-2022, 07:50 PM
#5
Archived author: <o> • Posted: 2022-07-18T19:50:00.925000+00:00
Original source

you need to be aware of the other phase bits used in the same area that you are creating quests in
rektbyfaith
07-18-2022, 07:50 PM #5

Archived author: <o> • Posted: 2022-07-18T19:50:00.925000+00:00
Original source

you need to be aware of the other phase bits used in the same area that you are creating quests in

rektbyfaith
Administrator
0
07-18-2022, 07:51 PM
#6
Archived author: whatwere • Posted: 2022-07-18T19:51:29.045000+00:00
Original source

Do you think replacing the system with an std::map would be worthwhile?
rektbyfaith
07-18-2022, 07:51 PM #6

Archived author: whatwere • Posted: 2022-07-18T19:51:29.045000+00:00
Original source

Do you think replacing the system with an std::map would be worthwhile?

rektbyfaith
Administrator
0
07-18-2022, 07:51 PM
#7
Archived author: <o> • Posted: 2022-07-18T19:51:32.684000+00:00
Original source

no
rektbyfaith
07-18-2022, 07:51 PM #7

Archived author: <o> • Posted: 2022-07-18T19:51:32.684000+00:00
Original source

no

rektbyfaith
Administrator
0
07-18-2022, 07:51 PM
#8
Archived author: <o> • Posted: 2022-07-18T19:51:39.831000+00:00
Original source

if you need a ridiculous amount of phases in the same place, you need to extend the phase field with something like a discrete integer. We have this in tswow if you need a reference
rektbyfaith
07-18-2022, 07:51 PM #8

Archived author: <o> • Posted: 2022-07-18T19:51:39.831000+00:00
Original source

if you need a ridiculous amount of phases in the same place, you need to extend the phase field with something like a discrete integer. We have this in tswow if you need a reference

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)