Classic 1.60: store all 360 action buttons (#109)

The 1.60 client sends 360 action buttons (SMSG_UPDATE_ACTION_BUTTONS decoder
asserts 8 * 360 + 1). The server only stored 180 (MAX_ACTION_BUTTONS) and the
packet zero-padded 180-359, so anything bound above 180 was dropped: the
controller UI bound CMSG_SET_ACTION_BUTTON button 187 and it came back blank
on every relog.

Raise MAX_ACTION_BUTTONS to 360, send 360 real buttons, key ActionButtonList
and Add/Remove/GetActionButton/IsActionButtonDataValid by uint16, accept the
full uint16 button index from the client, and widen character_action.button
to SMALLINT (base schema + a re-runnable custom characters update).
This commit is contained in:
Duy Hoang
2026-10-23 19:00:34 +08:00
committed by GitHub
parent 6788e89bf2
commit fdf4c99fcc
6 changed files with 25 additions and 19 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ CREATE TABLE `character_action` (
`guid` bigint unsigned NOT NULL DEFAULT '0',
`spec` tinyint unsigned NOT NULL DEFAULT '0',
`traitConfigId` int NOT NULL DEFAULT '0',
`button` tinyint unsigned NOT NULL DEFAULT '0',
`button` smallint unsigned NOT NULL DEFAULT '0',
`action` bigint unsigned NOT NULL DEFAULT '0',
`type` tinyint unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`,`spec`,`traitConfigId`,`button`)