[DiscordArchive] Sorry to jump back in here, but if im moving the mcly from a chunk with 4 layers to one with 3 is it
[DiscordArchive] Sorry to jump back in here, but if im moving the mcly from a chunk with 4 layers to one with 3 is it
Archived author: Go'Vic.Ϻέψ • Posted: 2021-03-14T21:43:51.638000+00:00
Original source
Sorry to jump back in here, but if im moving the mcly from a chunk with 4 layers to one with 3 is it okay to take the flags and detail texture ids that come with the new layer?
![[Image: unknown.png?ex=690c6dd8&is=690b1c58&hm=c...4ee35b6aa&]](https://cdn.discordapp.com/attachments/408013572430626817/820774257478729728/unknown.png?ex=690c6dd8&is=690b1c58&hm=ce470e1b14d3061d28ff12397fcc59c2b600715ccf0eae26f49ab314ee35b6aa&)
Archived author: Go'Vic.Ϻέψ • Posted: 2021-03-14T21:43:52.963000+00:00
Original source
![[Image: unknown.png?ex=690c6dd8&is=690b1c58&hm=c...4ee35b6aa&]](https://cdn.discordapp.com/attachments/408013572430626817/820774257478729728/unknown.png?ex=690c6dd8&is=690b1c58&hm=ce470e1b14d3061d28ff12397fcc59c2b600715ccf0eae26f49ab314ee35b6aa&)
Archived author: A2 • Posted: 2021-03-14T21:44:22.026000+00:00
Original source
yes
Archived author: Go'Vic.Ϻέψ • Posted: 2021-03-14T21:44:53.066000+00:00
Original source
alright, and then I would also update this to 4
![[Image: unknown.png?ex=690c6e15&is=690b1c95&hm=4...a16b5a7c3&]](https://cdn.discordapp.com/attachments/408013572430626817/820774515126173756/unknown.png?ex=690c6e15&is=690b1c95&hm=498794bf2b4bf86ee624c30164bc75512367edb791f70eaca4d3019a16b5a7c3&)
Archived author: Go'Vic.Ϻέψ • Posted: 2021-03-14T21:44:54.336000+00:00
Original source
![[Image: unknown.png?ex=690c6e15&is=690b1c95&hm=4...a16b5a7c3&]](https://cdn.discordapp.com/attachments/408013572430626817/820774515126173756/unknown.png?ex=690c6e15&is=690b1c95&hm=498794bf2b4bf86ee624c30164bc75512367edb791f70eaca4d3019a16b5a7c3&)
Archived author: schlumpf • Posted: 2021-03-14T21:47:31.046000+00:00
Original source
`[]` indicates an array. `/**/` is a comment. `<= 4` is text referencing "16 bytes per layer, up to 4 layers (thus, layer count = size / 16)." as it says above.
Archived author: schlumpf • Posted: 2021-03-14T21:48:05.134000+00:00
Original source
If you want to replace it, yes.
Archived author: schlumpf • Posted: 2021-03-14T21:49:02.327000+00:00
Original source
Within one ADT it is possible to take effectively the entire MCNK and move it somewhere else, just updating the position and x/y in the header.
Archived author: schlumpf • Posted: 2021-03-14T21:50:41.663000+00:00
Original source
When moving between ADTs,
- MCLY.textureID -> MTEX
- MCRF/MCRD/MCRW -> MODF
are pointing outside of MCNK. The remainder is self-contained.
Archived author: schlumpf • Posted: 2021-03-14T21:52:03.330000+00:00
Original source
For MTEX, append the strings from source MTEX to destination MTEX and increase textureID by #destination MTEX. I explained that before.
For MODF/MDDF: It is easier to just re-calculate them rather than trying to move or to merge. Iterate all MDDF/MODF entries and check whether the bounding box intersects the MCNK bounding box. If yes, add to list.