Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] can anyone tell, what to do in this situation:

[DiscordArchive] can anyone tell, what to do in this situation:

[DiscordArchive] can anyone tell, what to do in this situation:

rektbyfaith
Administrator
0
12-03-2022, 07:15 PM
#1
Archived author: @alisha • Posted: 2022-12-03T19:15:57.669000+00:00
Original source

can anyone tell, what to do in this situation:

*example data:*
```
world/maps/2444/2444_33_31.adt
world/wmo/expansion09/dragon/10dg_dragon_inn01.wmo
```

1. we have `MODFFlags.use_sets_from_mwds `flag
2. and we have multiple sets in `MWDR`
3. and those should be used to get indexed from from` MWDS`
4, to be used for iterating over MODS `DoodadSetsCount`

in our case:
`MODF` DoodadSet == 12, so we take entry with corresponding `MWDR` index
which output us
StartIndex: 51
EndIndex: 74
and we use it for iterating `MWDS`
and it gives us indexes values 7-26

but what to do if in model definition there is less sets in `MODS`, in our case only 7 entries (so our `MWDS` indexes would be out of range) , i.e. we can't iterate 7-26

am i missing something?
rektbyfaith
12-03-2022, 07:15 PM #1

Archived author: @alisha • Posted: 2022-12-03T19:15:57.669000+00:00
Original source

can anyone tell, what to do in this situation:

*example data:*
```
world/maps/2444/2444_33_31.adt
world/wmo/expansion09/dragon/10dg_dragon_inn01.wmo
```

1. we have `MODFFlags.use_sets_from_mwds `flag
2. and we have multiple sets in `MWDR`
3. and those should be used to get indexed from from` MWDS`
4, to be used for iterating over MODS `DoodadSetsCount`

in our case:
`MODF` DoodadSet == 12, so we take entry with corresponding `MWDR` index
which output us
StartIndex: 51
EndIndex: 74
and we use it for iterating `MWDS`
and it gives us indexes values 7-26

but what to do if in model definition there is less sets in `MODS`, in our case only 7 entries (so our `MWDS` indexes would be out of range) , i.e. we can't iterate 7-26

am i missing something?

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