Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Does trinitycore 3.3.5 have any limit for the phasemasks that can be used?

[DiscordArchive] Does trinitycore 3.3.5 have any limit for the phasemasks that can be used?

[DiscordArchive] Does trinitycore 3.3.5 have any limit for the phasemasks that can be used?

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
06-14-2019, 11:12 AM
#1
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:12:42.210000+00:00
Original source

Does trinitycore 3.3.5 have any limit for the phasemasks that can be used?
rektbyfaith
06-14-2019, 11:12 AM #1

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:12:42.210000+00:00
Original source

Does trinitycore 3.3.5 have any limit for the phasemasks that can be used?

rektbyfaith
Administrator
0
06-14-2019, 11:12 AM
#2
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:12:57.629000+00:00
Original source

so far I never used more than phasemask 128
rektbyfaith
06-14-2019, 11:12 AM #2

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:12:57.629000+00:00
Original source

so far I never used more than phasemask 128

rektbyfaith
Administrator
0
06-14-2019, 11:15 AM
#3
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:15:15.030000+00:00
Original source

```
void Unit::SetPhaseMask(uint32 newPhaseMask, bool update)
```
rektbyfaith
06-14-2019, 11:15 AM #3

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:15:15.030000+00:00
Original source

```
void Unit::SetPhaseMask(uint32 newPhaseMask, bool update)
```

rektbyfaith
Administrator
0
06-14-2019, 11:15 AM
#4
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:15:23.709000+00:00
Original source

in unit, PhaseMask is set as uint32
rektbyfaith
06-14-2019, 11:15 AM #4

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:15:23.709000+00:00
Original source

in unit, PhaseMask is set as uint32

rektbyfaith
Administrator
0
06-14-2019, 11:15 AM
#5
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:15:34.660000+00:00
Original source

idk why but I have some false memory that it was uint8
rektbyfaith
06-14-2019, 11:15 AM #5

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:15:34.660000+00:00
Original source

idk why but I have some false memory that it was uint8

rektbyfaith
Administrator
0
06-14-2019, 11:17 AM
#6
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:17:53.562000+00:00
Original source

How to see the maximal possible phasemask
rektbyfaith
06-14-2019, 11:17 AM #6

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:17:53.562000+00:00
Original source

How to see the maximal possible phasemask

rektbyfaith
Administrator
0
06-14-2019, 11:18 AM
#7
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:18:10.142000+00:00
Original source

So I can nake a iteration check
rektbyfaith
06-14-2019, 11:18 AM #7

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:18:10.142000+00:00
Original source

So I can nake a iteration check

rektbyfaith
Administrator
0
06-14-2019, 11:33 AM
#8
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:33:08.042000+00:00
Original source

For those that are facing the same question, I think that this might be good enough to loop trough most usable phases that are not PHASEMASK_NORMAL
```cpp
// loop all unique phases
for (uint32 i = 2; i <= MAXINT32; i *= 2)
```
rektbyfaith
06-14-2019, 11:33 AM #8

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:33:08.042000+00:00
Original source

For those that are facing the same question, I think that this might be good enough to loop trough most usable phases that are not PHASEMASK_NORMAL
```cpp
// loop all unique phases
for (uint32 i = 2; i <= MAXINT32; i *= 2)
```

rektbyfaith
Administrator
0
06-14-2019, 11:47 AM
#9
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:47:04.621000+00:00
Original source

nvm found a similiar script on the net
rektbyfaith
06-14-2019, 11:47 AM #9

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:47:04.621000+00:00
Original source

nvm found a similiar script on the net

rektbyfaith
Administrator
0
06-14-2019, 11:47 AM
#10
Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:47:10.685000+00:00
Original source

```cpp
// loop all unique phases
for (uint32 phase = 2; phase <= ULONG_MAX / 2; phase *= 2)
{

```
rektbyfaith
06-14-2019, 11:47 AM #10

Archived author: MR.MUSTACHE • Posted: 2019-06-14T11:47:10.685000+00:00
Original source

```cpp
// loop all unique phases
for (uint32 phase = 2; phase <= ULONG_MAX / 2; phase *= 2)
{

```

Pages (4): 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)