Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Did blizz actually wrote 'while (1)' in their source code?

[DiscordArchive] Did blizz actually wrote 'while (1)' in their source code?

[DiscordArchive] Did blizz actually wrote 'while (1)' in their source code?

rektbyfaith
Administrator
0
06-02-2024, 01:23 AM
#1
Archived author: Thulz • Posted: 2024-06-02T01:23:14.652000+00:00
Original source

Did blizz actually wrote 'while (1)' in their source code?
rektbyfaith
06-02-2024, 01:23 AM #1

Archived author: Thulz • Posted: 2024-06-02T01:23:14.652000+00:00
Original source

Did blizz actually wrote 'while (1)' in their source code?

rektbyfaith
Administrator
0
06-02-2024, 01:23 AM
#2
Archived author: Thulz • Posted: 2024-06-02T01:23:20.176000+00:00
Original source

or why does it look like that
rektbyfaith
06-02-2024, 01:23 AM #2

Archived author: Thulz • Posted: 2024-06-02T01:23:20.176000+00:00
Original source

or why does it look like that

rektbyfaith
Administrator
0
06-02-2024, 01:23 AM
#3
Archived author: Azarchius • Posted: 2024-06-02T01:23:35.726000+00:00
Original source

Though I definitely do not understand what MLFD is trying to do. if MLFD _does_ exist... it seems to call InitializePVSDoodad 3 times, with m2lod length/offset as the "combinations" of doodads.

But if MLFD doesn't exist, it calls InitializePVSDoodad _once_, with offset 0, and length = mldd_count, so every single doodad in that Area.

So this is a "LOD level", I get it. And in each LOD level, there is a linked list of PBSObjListDoodad, each containing a maximum of 16 entities. Trying to figure out how exactly the lod level comes into play here...
rektbyfaith
06-02-2024, 01:23 AM #3

Archived author: Azarchius • Posted: 2024-06-02T01:23:35.726000+00:00
Original source

Though I definitely do not understand what MLFD is trying to do. if MLFD _does_ exist... it seems to call InitializePVSDoodad 3 times, with m2lod length/offset as the "combinations" of doodads.

But if MLFD doesn't exist, it calls InitializePVSDoodad _once_, with offset 0, and length = mldd_count, so every single doodad in that Area.

So this is a "LOD level", I get it. And in each LOD level, there is a linked list of PBSObjListDoodad, each containing a maximum of 16 entities. Trying to figure out how exactly the lod level comes into play here...

rektbyfaith
Administrator
0
06-02-2024, 01:24 AM
#4
Archived author: Azarchius • Posted: 2024-06-02T01:24:40.272000+00:00
Original source

No it's just IDA fucking up. I managed to get another one fixed a few minutes ago by mapping a var.

The one that handles PVSCells for WMOs is practically copy-pasted code with a few small differences, but looks normal. (fields may be wrong; `v26` incorrectly uses same structure as `v25`)
[Image: image.png?ex=690ca198&is=690b5018&hm=ab9...1f5170c7c&]
rektbyfaith
06-02-2024, 01:24 AM #4

Archived author: Azarchius • Posted: 2024-06-02T01:24:40.272000+00:00
Original source

No it's just IDA fucking up. I managed to get another one fixed a few minutes ago by mapping a var.

The one that handles PVSCells for WMOs is practically copy-pasted code with a few small differences, but looks normal. (fields may be wrong; `v26` incorrectly uses same structure as `v25`)
[Image: image.png?ex=690ca198&is=690b5018&hm=ab9...1f5170c7c&]

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