This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Black ADTs, made from Taliis, can't seem to fix them  (Read 2749 times)

Reijis

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Black ADTs, made from Taliis, can't seem to fix them
« 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #1 on: July 09, 2015, 07:20:15 pm »
The solution is in your thread name. Made with Taliis is actually a key thing here. Get an ADT template from Steff's pack.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Reijis

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #2 on: July 09, 2015, 07:58:38 pm »
Quote from: "Skarn"
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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #3 on: July 10, 2015, 08:08:13 am »
Sorry, I don't get what you're trying to do.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Reijis

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #4 on: July 10, 2015, 01:51:13 pm »
Quote from: "Skarn"
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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #5 on: July 10, 2015, 04:10:26 pm »
It is not, if the work you mean is saved in the old adts.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Mjollna

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 254
    • View Profile
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #6 on: February 11, 2016, 11:05:26 am »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #7 on: February 12, 2016, 09:42:20 pm »
Quote from: "Mjollna"
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;
                            }                          
                    }
             }
     
    }
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #8 on: February 13, 2016, 10:18:42 am »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Mjollna

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 254
    • View Profile
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #9 on: February 17, 2016, 01:38:45 am »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #10 on: February 17, 2016, 05:53:42 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Mjollna

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 254
    • View Profile
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #11 on: February 20, 2016, 12:31:43 pm »
Oh that's weird, I thought I used the one you edited (1.4 SDL). Is there a newer Noggit ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #12 on: February 20, 2016, 01:27:07 pm »
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/
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Mjollna

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 254
    • View Profile
Re: Black ADTs, made from Taliis, can't seem to fix them
« Reply #13 on: February 20, 2016, 01:59:07 pm »
Oh ok thanks. After checking, it's the 3.0.22 I'm using already.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »