Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] i got another stupid question so when dbc contains strings they are located at end of file but what

[DiscordArchive] i got another stupid question so when dbc contains strings they are located at end of file but what

[DiscordArchive] i got another stupid question so when dbc contains strings they are located at end of file but what

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
11-01-2022, 07:48 PM
#1
Archived author: Rymercyble • Posted: 2022-11-01T19:48:05.360000+00:00
Original source

i got another stupid question so when dbc contains strings they are located at end of file but what is located on their "original" position ?
rektbyfaith
11-01-2022, 07:48 PM #1

Archived author: Rymercyble • Posted: 2022-11-01T19:48:05.360000+00:00
Original source

i got another stupid question so when dbc contains strings they are located at end of file but what is located on their "original" position ?

rektbyfaith
Administrator
0
11-01-2022, 07:49 PM
#2
Archived author: <o> • Posted: 2022-11-01T19:49:27.673000+00:00
Original source

an offset into the string block (file offset local to the beginning of the string block)
rektbyfaith
11-01-2022, 07:49 PM #2

Archived author: <o> • Posted: 2022-11-01T19:49:27.673000+00:00
Original source

an offset into the string block (file offset local to the beginning of the string block)

rektbyfaith
Administrator
0
11-01-2022, 07:50 PM
#3
Archived author: Rymercyble • Posted: 2022-11-01T19:50:15.265000+00:00
Original source

i guess in bytes ?
rektbyfaith
11-01-2022, 07:50 PM #3

Archived author: Rymercyble • Posted: 2022-11-01T19:50:15.265000+00:00
Original source

i guess in bytes ?

rektbyfaith
Administrator
0
11-01-2022, 07:50 PM
#4
Archived author: <o> • Posted: 2022-11-01T19:50:29.058000+00:00
Original source

correct
rektbyfaith
11-01-2022, 07:50 PM #4

Archived author: <o> • Posted: 2022-11-01T19:50:29.058000+00:00
Original source

correct

rektbyfaith
Administrator
0
11-01-2022, 07:50 PM
#5
Archived author: Rymercyble • Posted: 2022-11-01T19:50:36.470000+00:00
Original source

from right ?
rektbyfaith
11-01-2022, 07:50 PM #5

Archived author: Rymercyble • Posted: 2022-11-01T19:50:36.470000+00:00
Original source

from right ?

rektbyfaith
Administrator
0
11-01-2022, 07:50 PM
#6
Archived author: <o> • Posted: 2022-11-01T19:50:43.909000+00:00
Original source

no, from the start of the string block
rektbyfaith
11-01-2022, 07:50 PM #6

Archived author: <o> • Posted: 2022-11-01T19:50:43.909000+00:00
Original source

no, from the start of the string block

rektbyfaith
Administrator
0
11-01-2022, 07:51 PM
#7
Archived author: <o> • Posted: 2022-11-01T19:51:04.450000+00:00
Original source

you can calculate the start of the string block via dbc headers record_count * record_size (plus size of header itself)
rektbyfaith
11-01-2022, 07:51 PM #7

Archived author: <o> • Posted: 2022-11-01T19:51:04.450000+00:00
Original source

you can calculate the start of the string block via dbc headers record_count * record_size (plus size of header itself)

rektbyfaith
Administrator
0
11-01-2022, 07:51 PM
#8
Archived author: <o> • Posted: 2022-11-01T19:51:24.159000+00:00
Original source

then you read a string until you find a 0 byte (this is called "null/zero termination")
rektbyfaith
11-01-2022, 07:51 PM #8

Archived author: <o> • Posted: 2022-11-01T19:51:24.159000+00:00
Original source

then you read a string until you find a 0 byte (this is called "null/zero termination")

rektbyfaith
Administrator
0
11-01-2022, 07:51 PM
#9
Archived author: <o> • Posted: 2022-11-01T19:51:55.597000+00:00
Original source

first byte in the string block should always be a 0 byte for this reason, so that string fields with a 0 can easily point at an empty string
rektbyfaith
11-01-2022, 07:51 PM #9

Archived author: <o> • Posted: 2022-11-01T19:51:55.597000+00:00
Original source

first byte in the string block should always be a 0 byte for this reason, so that string fields with a 0 can easily point at an empty string

rektbyfaith
Administrator
0
11-01-2022, 07:53 PM
#10
Archived author: Rymercyble • Posted: 2022-11-01T19:53:55.736000+00:00
Original source

aaaaand 17th value of loc is also 4 bytes ?
rektbyfaith
11-01-2022, 07:53 PM #10

Archived author: Rymercyble • Posted: 2022-11-01T19:53:55.736000+00:00
Original source

aaaaand 17th value of loc is also 4 bytes ?

Pages (3): 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)