[DiscordArchive] <@197724887387734016> I see you asked about replaceable textures again, did you understand now?
[DiscordArchive] <@197724887387734016> I see you asked about replaceable textures again, did you understand now?
Archived author: schlumpf • Posted: 2018-03-08T20:59:54.089000+00:00
Original source
for any other texture, it depends on context.
Archived author: schlumpf • Posted: 2018-03-08T21:00:16.993000+00:00
Original source
if the context is "a creature using creaturedisplayinfo": the "types" 11, 12, 13 are defined by dbc.
Archived author: schlumpf • Posted: 2018-03-08T21:01:09.979000+00:00
Original source
after loading the m2, look at the dbc and replace model.textures_filenames[model.texture_type_to_texture_id[11 + i]] = cdi.texture[0+i].
Archived author: schlumpf • Posted: 2018-03-08T21:01:27.224000+00:00
Original source
texture_type_to_texture_id is "texreplace" in your m2 template.
Archived author: schlumpf • Posted: 2018-03-08T21:01:46.123000+00:00
Original source
that also explains all the -1s there: those types do not have a texture entry.
Archived author: Skarn • Posted: 2018-03-08T21:01:59.780000+00:00
Original source
Got it, thank you.
Archived author: schlumpf • Posted: 2018-03-08T21:02:00.083000+00:00
Original source
in that model, there are two replaceable textures, type 11 and 12.
Archived author: Skarn • Posted: 2018-03-08T21:02:27.928000+00:00
Original source
Why storing so many useless data... fucking blizzard
Archived author: schlumpf • Posted: 2018-03-08T21:02:36.615000+00:00
Original source
it is a lookup table.
Archived author: schlumpf • Posted: 2018-03-08T21:02:41.475000+00:00
Original source
o(ntextures) → o(1)