Gamepad hotbar slots are empty after relog #15

Closed
opened 2026-11-28 10:30:04 +00:00 by eineath · 3 comments

What happens

Spells I put on the gamepad hotbars, including the directional pad slots, survive /reload but are gone after relogging or exiting the game.

  1. Turn on the Gamepad UI.
  2. Put spells on the gamepad hotbars.
  3. Type /reload. The spells are still there.
  4. Relog, or exit and start the game again. The slots are empty.

Likely cause

The gateway handles only action slot indices 0–119, both when saving and when loading (source at commit c0dca66).

On my client the gamepad slots start at slot 181 (index 180 counting from 0), above that limit. The client reports this through C_GamepadUI.GetFirstGamepadActionStorageSlotIndex().

Direction Where What the code does
Save (client to server) native/world_translation.cpp, line 2550 Rejects index 120 and higher: "action button outside Turtle spell/item/index representation"
Load (server to client) src/world.cpp, line 147 (forever_action_buttons) Converts 120 server slots into 360 and fills indices 120–359 with zero

The packet test, line 214, expects indices 120, 255, 256 and 359 to be rejected. Line 215 also expects a macro-type action (0x40) to be rejected, so macros may not be saved on any bar (I haven't tested that).

Not yet confirmed:

  • That the rejection message appears in my gateway log.
  • That my installed gateway matches this commit.
  • That it still happens with all add-ons disabled.

Suggested fix

Have the gateway store the extra slots itself, per character, since the server side takes only 120.

  • Accept saves for indices 120–359 and keep them in the gateway, without forwarding them to the server.
  • Merge the stored entries into the action button list sent to the client at login.
  • Cover both callers of forever_action_buttons: src/relay.cpp and native/world_translation.cpp.
  • Check that every gamepad slot index falls below 360.

Environment

  • Client 1.60.1.70334 on Debian Linux with GE-Proton
  • Nintendo Switch Pro Controller over Bluetooth, connected directly (no Steam Input)
  • OctoPadForever add-on installed; the version in use when I saw this did not write action slots
  • WoWHybridUI with a local patch that turns off the Turtle talent adapter
  • Seen on 28 November 2026
## What happens Spells I put on the gamepad hotbars, including the directional pad slots, survive `/reload` but are gone after relogging or exiting the game. 1. Turn on the Gamepad UI. 2. Put spells on the gamepad hotbars. 3. Type `/reload`. The spells are still there. 4. Relog, or exit and start the game again. The slots are empty. ## Likely cause The gateway handles only action slot indices 0–119, both when saving and when loading (source at commit `c0dca66`). On my client the gamepad slots start at slot 181 (index 180 counting from 0), above that limit. The client reports this through `C_GamepadUI.GetFirstGamepadActionStorageSlotIndex()`. | Direction | Where | What the code does | | --- | --- | --- | | Save (client to server) | [native/world_translation.cpp, line 2550](https://octowow.st/git/praxis/WoW-Hybrid-gateway/src/commit/c0dca667235deacaeee5f0689603f0aee2ce970e/native/world_translation.cpp#L2550) | Rejects index 120 and higher: "action button outside Turtle spell/item/index representation" | | Load (server to client) | [src/world.cpp, line 147](https://octowow.st/git/praxis/WoW-Hybrid-gateway/src/commit/c0dca667235deacaeee5f0689603f0aee2ce970e/src/world.cpp#L147) (`forever_action_buttons`) | Converts 120 server slots into 360 and fills indices 120–359 with zero | [The packet test, line 214](https://octowow.st/git/praxis/WoW-Hybrid-gateway/src/commit/c0dca667235deacaeee5f0689603f0aee2ce970e/tests/native_gameplay_packet_test.cpp#L214), expects indices 120, 255, 256 and 359 to be rejected. Line 215 also expects a macro-type action (0x40) to be rejected, so macros may not be saved on any bar (I haven't tested that). Not yet confirmed: - That the rejection message appears in my gateway log. - That my installed gateway matches this commit. - That it still happens with all add-ons disabled. ## Suggested fix Have the gateway store the extra slots itself, per character, since the server side takes only 120. - Accept saves for indices 120–359 and keep them in the gateway, without forwarding them to the server. - Merge the stored entries into the action button list sent to the client at login. - Cover both callers of `forever_action_buttons`: `src/relay.cpp` and `native/world_translation.cpp`. - Check that every gamepad slot index falls below 360. ## Environment - Client 1.60.1.70334 on Debian Linux with GE-Proton - Nintendo Switch Pro Controller over Bluetooth, connected directly (no Steam Input) - OctoPadForever add-on installed; the version in use when I saw this did not write action slots - WoWHybridUI with a local patch that turns off the Turtle talent adapter - Seen on 28 November 2026
Owner

Thanks for the detailed analysis — the diagnosis was correct.

Fixed in 61cbf83 (patch step natives-gitea15-actionbars-20261128, GWNativeBackend.dll 693776d9, now on the patch channel):

  • SetActionButton for slots 120–359 is no longer rejected. These slots are stored per character on the client in WTF/GatewayAccountData/<account>/actions-<guid>.bin and are never sent to the server, which still only holds 120.
  • At login the stored slots are merged into the native action list (the 0x129 path in native/world_translation.cpp; src/relay.cpp is the non-native relay and is not used by the client).
  • Every type is stored as-is in those slots, macros included.
  • Slots 0–119 still go to the server unchanged. Macros on those slots are still rejected, because Turtle's 120-slot format has no macro type. That is separate from this issue.

Tested on our local server: a spell placed on slots 181 and 360 was still there after /logout and entering the world again, and clearing a slot also persisted. Host test: tests/extended_action_bars_test.cpp.

Could you update and confirm it works with the Gamepad UI on your side? I'll close the issue after that.

Thanks for the detailed analysis — the diagnosis was correct. Fixed in 61cbf83 (patch step `natives-gitea15-actionbars-20261128`, GWNativeBackend.dll 693776d9, now on the patch channel): - SetActionButton for slots 120–359 is no longer rejected. These slots are stored per character on the client in `WTF/GatewayAccountData/<account>/actions-<guid>.bin` and are never sent to the server, which still only holds 120. - At login the stored slots are merged into the native action list (the `0x129` path in `native/world_translation.cpp`; `src/relay.cpp` is the non-native relay and is not used by the client). - Every type is stored as-is in those slots, macros included. - Slots 0–119 still go to the server unchanged. Macros on those slots are still rejected, because Turtle's 120-slot format has no macro type. That is separate from this issue. Tested on our local server: a spell placed on slots 181 and 360 was still there after `/logout` and entering the world again, and clearing a slot also persisted. Host test: `tests/extended_action_bars_test.cpp`. Could you update and confirm it works with the Gamepad UI on your side? I'll close the issue after that.
Author

This issue is now fixed and works as expected.

I've tested and the skills/spells are retained even after logging off / restarting the game. Thanks!

This issue is now fixed and works as expected. I've tested and the skills/spells are retained even after logging off / restarting the game. Thanks!
Owner

Thanks for confirming. Closing: gamepad action-bar slots 120-359 are kept across relogs since step natives-gitea15-actionbars.

Thanks for confirming. Closing: gamepad action-bar slots 120-359 are kept across relogs since step `natives-gitea15-actionbars`.
Sign in to join this conversation.
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: praxis/WoW-Hybrid-gateway#15