Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Tutorials => Topic started by: Rangorn on June 08, 2015, 02:37:38 pm

Title: [tutorial] Convert DB2 format to DBC and reverse
Post by: Rangorn on June 08, 2015, 02:37:38 pm
[deleted]
Title: Re: [tutorial] Convert DB2 format to DBC and reverse
Post by: PhilipTNG on June 08, 2015, 03:59:53 pm
If you're going to be using MyDBCEditor to edit the db2 files, you don't need to change the WDB2 into WDBC, that part can be left alone, you just gotta take out the 0x14 to 0x2F bytes, save it and the db2 file will work in the dbc editor, well given it's an int32/float type of db2 file, if it's a byte or short, it will throw back an error just like normal dbc files that are in byte/short formats.

Luckily the DB2 format for MoP/WoD was simplified, the one for Cataclysm lol.... that's another story rofl.... look at any expansion's Item-sparse.db2 for a general idea of the older db2 format, this edit here won't do snot on it XD.

It should be noted that the bytes at 0x14 is a security hash/signature checked by the client(also stored on the client) and the bytes at 0x18 is the version of the game it's for.  That means if you try to use a hash from 5.4.7 db2 onto a 5.4.8 db2 file of the same name, you will be met with an error.
Title: Re: [tutorial] Convert DB2 format to DBC and reverse
Post by: Rangorn on June 08, 2015, 04:11:16 pm
Yup, i have try, WDB2 to WDBC is useless,

i don't have really check what are the headers in db2, i just have see many unknown and locales flags,

Thanks for your informations :)