Modcraft - The community dedicated to quality WoW modding!

Content creation => Texturing and 2D Art => Topic started by: Kiun on June 05, 2014, 02:43:44 pm

Title: [SOLVED] [QUESTION] Change texture path of M2
Post by: Kiun on June 05, 2014, 02:43:44 pm
I'm trying to change hardcoded texture path of a M2 but I'm not having success.

All I can do is edit the path text with 010 editor but this only allows me to set a path with lesser or equal lenght as the original path.

E. g.
   Standard texture path: WORLDGENERICORCPASSIVE DOODADSBRAZIERSTALLBRAZIER01.BLP
   Desired texture path (1): MyCustomObjectsCustomTexturesCustomDoodadsCustomMaterialsCustomTexture.blp <- Longer than standard texture path - will mess up the m2

  Desired texture path (2): MyCustomTexturesCustomTexture.blp <- Shorter than standard texture path - will work BUT I want longer custom paths in some m2 that have short standard paths

I'm asking if there is a way to change texture path with no restrictions. I hope you understand me.
Thank you.
Title: Re: [QUESTION] Change texture path of M2
Post by: schlumpf on June 05, 2014, 02:54:21 pm
I'm not sure if offsets in texture entries are relative or absolute. if relative:

if they are absolute:
Title: Re: [QUESTION] Change texture path of M2
Post by: Kiun on June 05, 2014, 05:29:17 pm
Much appreciated schlumpf, fast and clear answer.

Adding path at the end of the file and changing FileName lenght and FileName offset was enough so I guess offsets in texure entries are absolute.

Thanks!  :D