Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Hi, I have a question.

[DiscordArchive] Hi, I have a question.

[DiscordArchive] Hi, I have a question.

rektbyfaith
Administrator
0
08-24-2022, 04:01 PM
#1
Archived author: Marius • Posted: 2022-08-24T16:01:00.693000+00:00
Original source

Hi, I have a question.
I have implemented hotfix for AnimKit and AnimKitSegment tables.
According to Db2Metadata.h, AnimKitSegment.ParentAnimKitId (which references AnimKit.Id) is a FT_SHORT unsigned, which I think is int16 in MySql. And as unsigned, the max value here is 65535. So even though AnimKit.Id is an int and can hold much higher values, I am limited to this int16 if I want a reference.
Do I understand it correctly? I can't change this datatype without breaking some table hash or something, right?
rektbyfaith
08-24-2022, 04:01 PM #1

Archived author: Marius • Posted: 2022-08-24T16:01:00.693000+00:00
Original source

Hi, I have a question.
I have implemented hotfix for AnimKit and AnimKitSegment tables.
According to Db2Metadata.h, AnimKitSegment.ParentAnimKitId (which references AnimKit.Id) is a FT_SHORT unsigned, which I think is int16 in MySql. And as unsigned, the max value here is 65535. So even though AnimKit.Id is an int and can hold much higher values, I am limited to this int16 if I want a reference.
Do I understand it correctly? I can't change this datatype without breaking some table hash or something, right?

rektbyfaith
Administrator
0
08-24-2022, 04:01 PM
#2
Archived author: Tea • Posted: 2022-08-24T16:01:48.308000+00:00
Original source

that is correct, you cannot change data type
rektbyfaith
08-24-2022, 04:01 PM #2

Archived author: Tea • Posted: 2022-08-24T16:01:48.308000+00:00
Original source

that is correct, you cannot change data type

rektbyfaith
Administrator
0
08-24-2022, 04:03 PM
#3
Archived author: Tea • Posted: 2022-08-24T16:03:03.087000+00:00
Original source

the reason for that is simple, client expects exactly these datatypes in hotfix packet (types are hardcoded in client binary, there is no way for the server to say "hey, this field is uint32")
rektbyfaith
08-24-2022, 04:03 PM #3

Archived author: Tea • Posted: 2022-08-24T16:03:03.087000+00:00
Original source

the reason for that is simple, client expects exactly these datatypes in hotfix packet (types are hardcoded in client binary, there is no way for the server to say "hey, this field is uint32")

rektbyfaith
Administrator
0
08-24-2022, 04:05 PM
#4
Archived author: Marius • Posted: 2022-08-24T16:05:20.145000+00:00
Original source

I get it. Thanks
I have been keeping my custom stuff at a very high id to avoid conflicts, but then I cant do it here. Ill try find a safe range
rektbyfaith
08-24-2022, 04:05 PM #4

Archived author: Marius • Posted: 2022-08-24T16:05:20.145000+00:00
Original source

I get it. Thanks
I have been keeping my custom stuff at a very high id to avoid conflicts, but then I cant do it here. Ill try find a safe range

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)