[DiscordArchive] how do you find the primary key using just the DBRecord pointer?
[DiscordArchive] how do you find the primary key using just the DBRecord pointer?
Archived author: Azarchius • Posted: 2023-08-06T20:30:35.996000+00:00
Original source
I used LightParamID to pull some record from LightData.db2, all I have is a record pointer, I don't have anything else is my problem.
Archived author: Azarchius • Posted: 2023-08-06T20:31:15.918000+00:00
Original source
Maybe if records exist in perfect sequence, I could extrapolate the index by diffing it vs the starting point and recordsize
Archived author: Azarchius • Posted: 2023-08-06T20:31:44.746000+00:00
Original source
But I am pretty sure they don't exist in such a perfect sequence always--my concern is mostly patches. But maybe they pre-allocate some room for them or something.
Archived author: Azarchius • Posted: 2023-08-06T20:31:59.479000+00:00
Original source
Don't know enough about hotfixes to say.
Archived author: Azarchius • Posted: 2023-08-06T20:33:41.419000+00:00
Original source
Hm, might work, but sounds very sus
Archived author: MaxWilson • Posted: 2023-08-06T20:36:13.254000+00:00
Original source
records do have a perfect sequence, in sections they come one after another, and their primary keys are usually sorted in ascending order )
Archived author: Azarchius • Posted: 2023-08-06T20:36:29.176000+00:00
Original source
you work with retail or wrath I'm curious?
Archived author: Azarchius • Posted: 2023-08-06T20:36:39.517000+00:00
Original source
if they are in perfect sequence _even with hotfixes_ then that's fantastic
Archived author: Azarchius • Posted: 2023-08-06T20:36:48.741000+00:00
Original source
thank you very much
Archived author: MaxWilson • Posted: 2023-08-06T20:37:06.857000+00:00
Original source
Is there a db2 in wrath? <:kekw:1115251543751532674>