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

[DiscordArchive] how do you find the primary key using just the DBRecord pointer?

Pages (4): Previous 1 2 3 4 Next
rektbyfaith
Administrator
0
08-06-2023, 08:23 PM
#11
Archived author: Azarchius • Posted: 2023-08-06T20:23:34.172000+00:00
Original source

but I don't have that, where would I know what that is?
rektbyfaith
08-06-2023, 08:23 PM #11

Archived author: Azarchius • Posted: 2023-08-06T20:23:34.172000+00:00
Original source

but I don't have that, where would I know what that is?

rektbyfaith
Administrator
0
08-06-2023, 08:23 PM
#12
Archived author: Azarchius • Posted: 2023-08-06T20:23:57.141000+00:00
Original source

is the record ptr significant in relation to some other pointer in order to deduce a record number?
rektbyfaith
08-06-2023, 08:23 PM #12

Archived author: Azarchius • Posted: 2023-08-06T20:23:57.141000+00:00
Original source

is the record ptr significant in relation to some other pointer in order to deduce a record number?

rektbyfaith
Administrator
0
08-06-2023, 08:24 PM
#13
Archived author: Azarchius • Posted: 2023-08-06T20:24:37.666000+00:00
Original source

this function call blizzard uses to find records using the relation returns a pointer directly; from what I can see there _is_ some kind of table that is maybe a record index + relation (16bit)
rektbyfaith
08-06-2023, 08:24 PM #13

Archived author: Azarchius • Posted: 2023-08-06T20:24:37.666000+00:00
Original source

this function call blizzard uses to find records using the relation returns a pointer directly; from what I can see there _is_ some kind of table that is maybe a record index + relation (16bit)

rektbyfaith
Administrator
0
08-06-2023, 08:24 PM
#14
Archived author: Azarchius • Posted: 2023-08-06T20:24:46.439000+00:00
Original source

but it doesn't seem to match up to the order of the actual records
rektbyfaith
08-06-2023, 08:24 PM #14

Archived author: Azarchius • Posted: 2023-08-06T20:24:46.439000+00:00
Original source

but it doesn't seem to match up to the order of the actual records

rektbyfaith
Administrator
0
08-06-2023, 08:25 PM
#15
Archived author: Azarchius • Posted: 2023-08-06T20:25:27.359000+00:00
Original source

but perhaps the order of the index is not the order of the records
rektbyfaith
08-06-2023, 08:25 PM #15

Archived author: Azarchius • Posted: 2023-08-06T20:25:27.359000+00:00
Original source

but perhaps the order of the index is not the order of the records

rektbyfaith
Administrator
0
08-06-2023, 08:25 PM
#16
Archived author: Azarchius • Posted: 2023-08-06T20:25:42.325000+00:00
Original source

you'd think the order of the index would be in ascending order or something though
rektbyfaith
08-06-2023, 08:25 PM #16

Archived author: Azarchius • Posted: 2023-08-06T20:25:42.325000+00:00
Original source

you'd think the order of the index would be in ascending order or something though

rektbyfaith
Administrator
0
08-06-2023, 08:29 PM
#17
Archived author: MaxWilson • Posted: 2023-08-06T20:29:17.353000+00:00
Original source

record index is just the record number in order
Including encrypted sections (with TactID != 0). It is needed to allocate memory for data; index * _header->RecordSize

```DB2Record DB2FileLoaderRegularImpl::GetRecord(uint32 recordNumber) const
{
return DB2Record(*this, recordNumber, nullptr);
}```
rektbyfaith
08-06-2023, 08:29 PM #17

Archived author: MaxWilson • Posted: 2023-08-06T20:29:17.353000+00:00
Original source

record index is just the record number in order
Including encrypted sections (with TactID != 0). It is needed to allocate memory for data; index * _header->RecordSize

```DB2Record DB2FileLoaderRegularImpl::GetRecord(uint32 recordNumber) const
{
return DB2Record(*this, recordNumber, nullptr);
}```

rektbyfaith
Administrator
0
08-06-2023, 08:29 PM
#18
Archived author: Azarchius • Posted: 2023-08-06T20:29:46.060000+00:00
Original source

yeah I know how to use the index
rektbyfaith
08-06-2023, 08:29 PM #18

Archived author: Azarchius • Posted: 2023-08-06T20:29:46.060000+00:00
Original source

yeah I know how to use the index

rektbyfaith
Administrator
0
08-06-2023, 08:29 PM
#19
Archived author: Azarchius • Posted: 2023-08-06T20:29:48.005000+00:00
Original source

I know what it is
rektbyfaith
08-06-2023, 08:29 PM #19

Archived author: Azarchius • Posted: 2023-08-06T20:29:48.005000+00:00
Original source

I know what it is

rektbyfaith
Administrator
0
08-06-2023, 08:29 PM
#20
Archived author: Azarchius • Posted: 2023-08-06T20:29:58.262000+00:00
Original source

If I had it I wouldn't have a problem is what I'm saying :p
rektbyfaith
08-06-2023, 08:29 PM #20

Archived author: Azarchius • Posted: 2023-08-06T20:29:58.262000+00:00
Original source

If I had it I wouldn't have a problem is what I'm saying :p

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