[DiscordArchive] does string block offsets start with 1 or 0 ? i mean string ends with empty byte so string `Hangar`
[DiscordArchive] does string block offsets start with 1 or 0 ? i mean string ends with empty byte so string `Hangar`
Archived author: <o> • Posted: 2022-11-08T18:04:42.136000+00:00
Original source
since almost all dbcs has at least one empty string, it's almost always at the start
Archived author: Rymercyble • Posted: 2022-11-08T18:04:44.687000+00:00
Original source
yes i know im saying leading bcs writing is left to right even though binary is right to left
Archived author: stoneharry • Posted: 2022-11-08T18:05:31.832000+00:00
Original source
I've seen dbcs that write empty strings throughout the string block
Archived author: stoneharry • Posted: 2022-11-08T18:05:56.444000+00:00
Original source
I always just write the empty string at the first position and make everything point to that
Archived author: <o> • Posted: 2022-11-08T18:06:30.634000+00:00
Original source
were those blizzard dbcs? would prolly be relevant for rymercyble if he's still using the heuristic approach to reading them
Archived author: <o> • Posted: 2022-11-08T18:06:52.983000+00:00
Original source
the ones with random empty strings throughout the dbc
Archived author: Rymercyble • Posted: 2022-11-08T18:07:08.225000+00:00
Original source
im finishing export script and im not sure if im writing them correctly im not sure if im even explaining my issue well right now
Archived author: stoneharry • Posted: 2022-11-08T18:07:16.970000+00:00
Original source
Yes
Archived author: <o> • Posted: 2022-11-08T18:07:52.239000+00:00
Original source
writing shouldn't be an issue, you can write them almost however you want as long as the pointers are to the right offset, but it could cause issues for reading
Archived author: Rymercyble • Posted: 2022-11-08T18:08:11.972000+00:00
Original source
i want to check if im not shifting them by 1 byte bcs it is difference if string `Hangar` starts at 1 with empty byte or if that 1 is already `H` and empty byte is 0