[DiscordArchive] as in reading the binary format or just opening them with an editor?
[DiscordArchive] as in reading the binary format or just opening them with an editor?
Archived author: <o> • Posted: 2022-07-28T06:20:37.053000+00:00
Original source
as in reading the binary format or just opening them with an editor?
Archived author: Rymercyble • Posted: 2022-07-28T06:21:21.117000+00:00
Original source
binary
Archived author: <o> • Posted: 2022-07-28T06:23:41.831000+00:00
Original source
there's a 20 byte header with the row count/size, then a big chunk of row data and finally a string pool that the rows can reference (if there are strings in that dbc of course). Contents of the rows are specific for the specific dbc file, one dbc might have a uint32,uint32,uint32,uint32 layout while another has a uint32,uint32,string,uint32 etc
Archived author: Rymercyble • Posted: 2022-07-28T06:23:42.299000+00:00
Original source
or maybe i should say not only read but also modify so basically i want to create something like wdbx from scratch
Archived author: <o> • Posted: 2022-07-28T06:26:52.318000+00:00
Original source
the format is described here: <https://wowdev.wiki/DBC>
you can find individual row layouts here: <https://github.com/WowDevTools/WDBXEditor/blob/master/WDBXEditor/Definitions/WotLK%203.3.5%20(12340).xml>
how we read them in tswow here: <https://github.com/tswow/tswow/blob/2d6554e003ccdbe5c38f760188f87f19f2cc3e6a/tswow-scripts/data/dbc/DBCBuffer.ts#L142>
localized string cells consists of about 16 or something cells that are all pointers into the string chunk
Archived author: Bench • Posted: 2022-07-28T06:27:36.084000+00:00
Original source
Worth pointing out that *some* definitions aren't quite correct in WDBX, the localizations for instance are in the wrong order
Plus some incorrect datatypes if I recall correctly from an issue someone had here
Archived author: <o> • Posted: 2022-07-28T06:28:21.337000+00:00
Original source
yeah, we've corrected a few over the years for our project but it's the most complete one out there
Archived author: <o> • Posted: 2022-07-28T06:28:50.348000+00:00
Original source
and apparently tswow reads booleans by writing a uint32 so there's that too lmao
Archived author: Bench • Posted: 2022-07-28T06:28:56.799000+00:00
Original source
Nice
Archived author: <o> • Posted: 2022-07-28T06:29:23.849000+00:00
Original source
well that might explain some bugs with charhairtextures