[DiscordArchive] The phase_id system is more for stuff like the DK starting zone progressing through entirely differe
[DiscordArchive] The phase_id system is more for stuff like the DK starting zone progressing through entirely differe
Archived author: whatwere • Posted: 2022-07-18T20:05:10.412000+00:00
Original source
The phase_id system is more for stuff like the DK starting zone progressing through entirely different stages isn't it?
Archived author: <o> • Posted: 2022-07-18T20:05:49.263000+00:00
Original source
no, phase ids are not used at all by wow normally, it's a custom extension we added because it happens to make things like player housing extremely easy
Archived author: <o> • Posted: 2022-07-18T20:06:12.936000+00:00
Original source
you can still use phasemasks like phase ids by having them as discrete ids, e.g. 1,2,4,8,16,32 etc
Archived author: <o> • Posted: 2022-07-18T20:06:18.729000+00:00
Original source
they just run out pretty quickly
Archived author: whatwere • Posted: 2022-07-18T20:06:30.588000+00:00
Original source
But isn't the && between them extremely exclusionary?
Archived author: <o> • Posted: 2022-07-18T20:07:07.218000+00:00
Original source
yes, and that's kind of the point. You can't have both huge numbers of discrete phases and a huge number of overlap, the memory just runs out
Archived author: <o> • Posted: 2022-07-18T20:07:25.808000+00:00
Original source
so a very common compromise is to && together a discrete system with a masked system like that
Archived author: whatwere • Posted: 2022-07-18T20:07:26.918000+00:00
Original source
A more extreme mask system with hundreds of minute masks would be more appropriate for my issue from what I see. If I have 300 soldiers standing next to each other and want to display a random amount of them to each player, phase_ids aren't suited for that.
Archived author: <o> • Posted: 2022-07-18T20:09:08.691000+00:00
Original source
if those soldiers can all see each others or players can then no, discrete ids is not what you want, then you can just extend the phasemask instead
Archived author: <o> • Posted: 2022-07-18T20:10:01.593000+00:00
Original source
if you want another example from the game itself, this is exactly what spell "class" flags do. They added 96 bits to the masks and then a family id for discreteness