Modcraft - The community dedicated to quality WoW modding!
Featured => Noggit => Topic started by: Reijis on July 09, 2015, 04:01:58 pm
-
Hello, I know that it's already been asked, but it didn't solve it for me.
So I made a new map, wdt and adts made with Taliis, which I now know is not reliable. I built the map with noggit and once I was satisfied I checked ingame, the textures are all black.
Also I have 2 patches, 1 is patch-enUS-4.mpq which has all the adts, wdt and map.dbc, the other one is patch-4.mpq which has the edited world in it.
I tried swapping the adt's I made with Taliis with the ones in Steff's tutorial pack in patch-4.mpq but it deleted everything I did, so I really don't know what to do because I want to keep my work.
Then I tried swapping in the patch-enUS-4.mpq and while in noggit everything I edited is still the same but the adts I didn't touch have the other texture; and if I try to login there is only a flat world with nothing edited.
I have seen 1 thread where it was solved by swapping said adts, but I'm doing something wrong because by doing so I just loose all my work.
Thanks in advance.
-
The solution is in your thread name. Made with Taliis is actually a key thing here. Get an ADT template from Steff's pack.
-
The solution is in your thread name. Made with Taliis is actually a key thing here. Get an ADT template from Steff's pack.
That's what I did, but using said adt in the patch just flattened the world and deleted any model on it, and changed the texture from grass to dirt. It would probably be fixed but I would have to rebuild everything, which I want to avoid.
I'm guessing the solution is still using that template but I don't know how to use it.
This is what I did, I made the adts I needed from tha 0_0 template, (I needed from 3-3 to 12-12), then I replaced on my mpq file all the adts I made previously with taliis, but that didn't fix anything.
I'm using 2 patches atm, cuz with only one I wouldn't be able to find the new map in noggit, and without the other I wouldn't be able to make it an update (I'm working on a server which uses a launcher, and said launche only updates files in DATA, the patch that I need to see the map in noggit is in enUS)
Do you know what I did wrong?
-
Sorry, I don't get what you're trying to do.
-
Sorry, I don't get what you're trying to do.
I'm trying to change the adts, but I would like to mantain my work.
Is it not possible?
-
It is not, if the work you mean is saved in the old adts.
-
Found it :)
It can be solved.
The problem comes from MCCV chunk values being set to 0, which, as the wiki says :
" uint8_t blue; // setting all values to 0x00 makes a chunk completely black."
So to fix : in every MCCV (MCNK subchunk), change 0 to 7F to add lighting again to your vertex painting.
Edit, more detailed manual fix, for people allergic to scripting :
- Backup your existing ADT, you never know.
- You can use 010 Editor, open your black ADT, select the first complete MCCV chunk (letters included) ->Edit > replace (the bytes you've selected should appear on the "select" box of the replace dialog). Don't close the tab.
- Then find an MCCV chunk on any Northrend (3.3.5) ADT, copy as hex bytes the whole chunk, then open your black ADT, paste the content in the "replace" field.
- Replace all.
- If you have 256 replacements, it should be ok.
-
Found it :)
It can be solved.
The problem comes from MCCV chunk values being set to 0, which, as the wiki says :
" uint8_t blue; // setting all values to 0x00 makes a chunk completely black."
So to fix : in every MCCV (MCNK subchunk), change 0 to 7F to add lighting again to your vertex painting.
Edit, more detailed manual fix, for people allergic to scripting :
- Backup your existing ADT, you never know.
- You can use 010 Editor, open your black ADT, select the first complete MCCV chunk (letters included) ->Edit > replace (the bytes you've selected should appear on the "select" box of the replace dialog). Don't close the tab.
- Then find an MCCV chunk on any Northrend (3.3.5) ADT, copy as hex bytes the whole chunk, then open your black ADT, paste the content in the "replace" field.
- Replace all.
- If you have 256 replacements, it should be ok.
Don't know why you revived this dead topic but if someone needs to do this in a quicker way this is a script setting all MCCV values on ADTs to 7Fh
char sFile[];
int sIndex;
int k;
TOpenFileNames z = InputOpenFileNames( "Select .adt files", "(*.adt)" );
for( k = 0; k < z.count; k++ )
{
sFile = z.file[k].filename;
sIndex = FileOpen(sFile);
if(sIndex < 0)
return;
ClearShader();
FileSave();
FileClose();
}
void ClearShader()
{
int z, y, a;
RunTemplate( "WoWADT.bt" );
for( z = 0; z < 16; z++ )
{
for( y = 0; y < 16; y++ )
{
for( a = 0; a < 580; a++)
{
ADT_file.MCNKs.row[z].mcnk[y].MCCV.data[a] = 7Fh;
}
}
}
}
-
thanks for a solution for this problem to mjollna and to skarn for the script.
btw creation adts with taliis is fine. if you do it right. my template is also made in taliis but as people can do things wrong it is easyer to just use it.
-
Haha, thank you for the script :)
I've revived the topic when I ran into the issue myself and tried to repair my ADT. I'm so used to create it with Taliis that I have to admit, I didn't even try another tool.
-
You could only run into it if you use some outdated Noggit version, but np. Those scripts are super easy to make if you have the template. That's what I am doing for MCNet as they can replace so many tasks people can't do or had to do manually.
-
Oh that's weird, I thought I used the one you edited (1.4 SDL). Is there a newer Noggit ?
-
You are using 3.0.15 probably. 3.0.22 is the last version which you can get inside of this pack: http://www.model-changing.net/files/fil ... pment-kit/ (http://www.model-changing.net/files/file/19-world-of-warcraft-development-kit/" onclick="window.open(this.href);return false;)
-
Oh ok thanks. After checking, it's the 3.0.22 I'm using already.