Forums WoW Modding Support Archives WoWModding Support Archives [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`

[DiscordArchive] does string block offsets start with 1 or 0 ? i mean string ends with empty byte so string `Hangar`

Pages (8): 1 2 3 4 5 8 Next  
rektbyfaith
Administrator
0
11-08-2022, 05:59 PM
#1
Archived author: Rymercyble • Posted: 2022-11-08T17:59:04.082000+00:00
Original source

does string block offsets start with 1 or 0 ? i mean string ends with empty byte so string `Hangar` will take 7 bytes with first being empty so if it is at offset 1 does that mean 1st is that empty byte or `H` ?
rektbyfaith
11-08-2022, 05:59 PM #1

Archived author: Rymercyble • Posted: 2022-11-08T17:59:04.082000+00:00
Original source

does string block offsets start with 1 or 0 ? i mean string ends with empty byte so string `Hangar` will take 7 bytes with first being empty so if it is at offset 1 does that mean 1st is that empty byte or `H` ?

rektbyfaith
Administrator
0
11-08-2022, 05:59 PM
#2
Archived author: <o> • Posted: 2022-11-08T17:59:34.027000+00:00
Original source

all the dbcs i know of has one empty byte at the start of the string block where it points all empty strings
rektbyfaith
11-08-2022, 05:59 PM #2

Archived author: <o> • Posted: 2022-11-08T17:59:34.027000+00:00
Original source

all the dbcs i know of has one empty byte at the start of the string block where it points all empty strings

rektbyfaith
Administrator
0
11-08-2022, 06:00 PM
#3
Archived author: <o> • Posted: 2022-11-08T18:00:31.317000+00:00
Original source

but that's not part of any standard, it's just how they typically solve it
rektbyfaith
11-08-2022, 06:00 PM #3

Archived author: <o> • Posted: 2022-11-08T18:00:31.317000+00:00
Original source

but that's not part of any standard, it's just how they typically solve it

rektbyfaith
Administrator
0
11-08-2022, 06:00 PM
#4
Archived author: <o> • Posted: 2022-11-08T18:00:44.622000+00:00
Original source

don't know if dbcs without empty strings has it
rektbyfaith
11-08-2022, 06:00 PM #4

Archived author: <o> • Posted: 2022-11-08T18:00:44.622000+00:00
Original source

don't know if dbcs without empty strings has it

rektbyfaith
Administrator
0
11-08-2022, 06:00 PM
#5
Archived author: Rymercyble • Posted: 2022-11-08T18:00:54.958000+00:00
Original source

so it starts from 0 where 0 is empty byte and 1 is `H` 2 is `a` etc
rektbyfaith
11-08-2022, 06:00 PM #5

Archived author: Rymercyble • Posted: 2022-11-08T18:00:54.958000+00:00
Original source

so it starts from 0 where 0 is empty byte and 1 is `H` 2 is `a` etc

rektbyfaith
Administrator
0
11-08-2022, 06:01 PM
#6
Archived author: <o> • Posted: 2022-11-08T18:01:09.525000+00:00
Original source

usually yes
rektbyfaith
11-08-2022, 06:01 PM #6

Archived author: <o> • Posted: 2022-11-08T18:01:09.525000+00:00
Original source

usually yes

rektbyfaith
Administrator
0
11-08-2022, 06:01 PM
#7
Archived author: Rymercyble • Posted: 2022-11-08T18:01:46.255000+00:00
Original source

just to be sure do u think these offsets are correct ?
[Image: image.png?ex=690c39ca&is=690ae84a&hm=648...ca605554f&]
rektbyfaith
11-08-2022, 06:01 PM #7

Archived author: Rymercyble • Posted: 2022-11-08T18:01:46.255000+00:00
Original source

just to be sure do u think these offsets are correct ?
[Image: image.png?ex=690c39ca&is=690ae84a&hm=648...ca605554f&]

rektbyfaith
Administrator
0
11-08-2022, 06:02 PM
#8
Archived author: <o> • Posted: 2022-11-08T18:02:13.330000+00:00
Original source

looks right, but can't say if that generalizes or not
rektbyfaith
11-08-2022, 06:02 PM #8

Archived author: <o> • Posted: 2022-11-08T18:02:13.330000+00:00
Original source

looks right, but can't say if that generalizes or not

rektbyfaith
Administrator
0
11-08-2022, 06:03 PM
#9
Archived author: Rymercyble • Posted: 2022-11-08T18:03:38.903000+00:00
Original source

and im writing them with leading empty byte so its `empty byte -> hangar -> empty byte -> alliance controlled -> empty byte -> docks`
rektbyfaith
11-08-2022, 06:03 PM #9

Archived author: Rymercyble • Posted: 2022-11-08T18:03:38.903000+00:00
Original source

and im writing them with leading empty byte so its `empty byte -> hangar -> empty byte -> alliance controlled -> empty byte -> docks`

rektbyfaith
Administrator
0
11-08-2022, 06:04 PM
#10
Archived author: <o> • Posted: 2022-11-08T18:04:25.492000+00:00
Original source

the "leading" empty byte isn't really leading, it's the end of the first string in the block, which is almost always empty
rektbyfaith
11-08-2022, 06:04 PM #10

Archived author: <o> • Posted: 2022-11-08T18:04:25.492000+00:00
Original source

the "leading" empty byte isn't really leading, it's the end of the first string in the block, which is almost always empty

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