[DiscordArchive] as in you have no definitions ?
[DiscordArchive] as in you have no definitions ?
Archived author: Titi • Posted: 2022-11-01T20:12:18.910000+00:00
Original source
as in you have no definitions ?
Archived author: Titi • Posted: 2022-11-01T20:13:50.029000+00:00
Original source
a DBC reader/writer was one of the first ever thing I coded when learning programming it's quite fun to learn the format
tring_block_size' => 32,Archived author: Rymercyble • Posted: 2022-11-01T20:13:50.686000+00:00
Original source
```php
$header = $stream->readGroup([
's:magic' => 4,
'i:record_count' => 32,
'i:field_count' => 32,
'i:record_size' => 32,
'i
tring_block_size' => 32,
]);
```
its not like i was manually splitting it by 32 bits and parsing it into decimal but im specifying each column manually
Archived author: Titi • Posted: 2022-11-01T20:14:39.055000+00:00
Original source
what language is that
Archived author: Rymercyble • Posted: 2022-11-01T20:15:23.619000+00:00
Original source
php
Archived author: Titi • Posted: 2022-11-01T20:15:30.978000+00:00
Original source
jeez
Archived author: Rymercyble • Posted: 2022-11-01T20:16:13.092000+00:00
Original source
seems like php was not built to read binary
Archived author: <o> • Posted: 2022-11-01T20:16:35.499000+00:00
Original source
that's the common assumption, but the actual value always just looks like garbage
Archived author: <o> • Posted: 2022-11-01T20:17:19.944000+00:00
Original source
well, it's at least consistent, but it doesn't make any sense
![[Image: unknown.png?ex=690c59b8&is=690b0838&hm=4...8e0826f26&]](https://cdn.discordapp.com/attachments/415944535718494208/1037098203696336917/unknown.png?ex=690c59b8&is=690b0838&hm=4b9bfc9cc54a0b74fc70a03c127377e1cb6fe8e8efa9a5bd5a0934f8e0826f26&)
Archived author: Titi • Posted: 2022-11-01T20:18:00.187000+00:00
Original source
checked one of them in creaturefamily and it goes to 24
![[Image: unknown.png?ex=690c59b8&is=690b0838&hm=4...8e0826f26&]](https://cdn.discordapp.com/attachments/415944535718494208/1037098203696336917/unknown.png?ex=690c59b8&is=690b0838&hm=4b9bfc9cc54a0b74fc70a03c127377e1cb6fe8e8efa9a5bd5a0934f8e0826f26&)