I had wowMapper working a couple of patches ago and recently went back to it now that I have better ability to generate quest data.
When i fired up my previously working version, bam. It is broken.
I traced through the code and found out that libMPQ now thinks the part *.wdt file is encrypted and can not decrypt it. I loaded the MPQ file in MPQEditor and the encrypted flag is not set.
I traced into libMPQ functions:
int32_t libmpq__block_open_offset(mpq_archive_s *mpq_archive, uint32_t file_number) {
and found that
/* check if the archive is protected some way, sometimes the file appears not to be encrypted, but it is. */
if (mpq_archive->mpq_file[file_number]->packed_offset[0] != rb) {
/* file is encrypted. */
mpq_archive->mpq_block[mpq_archive->mpq_map[file_number].block_table_indices].flags |= LIBMPQ_FLAG_ENCRYPTED;
}
is true and it is flagging the file as encrypted.
I commented this check out and wowMapper works fine again and extracts the adts that i am looking for.
Anyone have an idea what I am doing wrong or what changed in a recent patch?
thanks,
-counted