Log in

View Full Version : Issue with User hotkey bar resetting in session



bayne7400
November 11th, 2023, 14:52
I am in a campaign and my hotbar keeps resetting as a Client. When I logged in this morning It was set and as I stretched my screen it emptied(not sure of that had anything to do with it) I looked in my cache folder and saw 6 separate hotkey files. I experienced this last week but thought maybe I was imagining things. Today I definately saw the links before the vanished.

Trenloe
November 11th, 2023, 15:04
As a player there's a hotkey setup per PC you control, and that also applies if you release a PC and take ownership of another. The different hotkey files in the cache directory have the campaign database ID of the PC in the filename - hotkeys-id_XXXXX.xml

So, if you are controlling more than one PC as a player and you switch control of the PCs (click on the portrait on the desktop) the hotkey settings will change. However, there seems to be an issue where the hotkey slots don't clear if there was something in the slot and then there's nothing in the newly selected PC slot when switching from one PC to another unless the screen refreshes - like when resizing, or when clicking outside the app then back into it.

bayne7400
November 11th, 2023, 15:15
Yeah I am definately not controlling another PC. Unless the DM is clearing ownership in between sessions maybe?

Trenloe
November 11th, 2023, 15:51
But you have controlled different PCs at some point in that campaign? Otherwise you wouldn't see six different hotkey files in your cache directory, with each different hotkeys-id_XXXXX.xml file relating to a PC from that campaign. I'm trying to understand how you're seeing what you're seeing with only one PC selected. Did you have one PC selected, dropped that one, then selected another? I can recreate exactly what you mention in post #1 by controlling two PCs with different hotkey setups, or having one selected which I drop and then select another.

A few questions that may help work out what's causing this:

Are you a player with a remote GM, or are you running a player instance as well as a GM instance?

Is it changing just once? Or is it changing multiple times during a session?

Did you setup your hotkey bar before selecting a PC?

Trenloe
November 11th, 2023, 15:55
Also, have a look in the contents of the XML files in the usersettings directory of the campaign cache - can you identify which file contains the hotkeys you initially setup? If it's hotkeys.xml then that was setup before you selected a PC and you'd see what you described once selecting a PC and then triggering a screen refresh, if it's in hotkeys-id_XXXXX.xml then that's specific to one PC.

bayne7400
November 11th, 2023, 16:06
I am a player not the DM. So using the cloud.

We did remake my character sheet in one session (~ a week ago). But the issue is today when I logged in the map images were on my hotbar. When I stretched my screen the hotbar emptied of all links. It is hotkeys-id_XXXXX.xml in the under folder in my cache. I will talk to the DM to see what extensions he has loaded.

What is wild is the xml for today is showing all my hotkeys but the hotkey bar is still empty. The remaining are dated 11-4-2023

Trenloe
November 11th, 2023, 16:27
The only file showing an update today is hotkeys.xml, all the others show updates on 11/4. If it's hotkeys.xml that has your hotkeys, then those hotkeys will only show when you don't have a PC selected.

Referring to the screenshot below.


This is when the player first joins - there are two hotkeys displayed (#2 and #4), these are stored in hotkeys.xml
The player has selected a PC, but they haven't triggered a screen refresh - this PC has no hotkeys but the old hotkeys are currently showing, but they wouldn't work if the player clicked on them.
The screen is refreshed as the player increased the FG window height slightly, now the hotkeys show correctly as this PC has no hotkeys.


https://www.fantasygrounds.com/forums/attachment.php?attachmentid=59262

bayne7400
November 11th, 2023, 16:34
OK I see what is going on. I wonder why those hotkeys are linked to having no PC selected? It is unfortunate you cant change this behavior so your hotbar does not change. I think that would be more useful then having it linked to different characters on the client side.

Trenloe
November 11th, 2023, 16:53
I suppose it's a trade-off with allowing hotkeys specific to the active PC shown - in times past a lot of players would have made their own hotkeys to cover things that weren't covered by the rulesets. Some players still drag frequently used "stuff" to their hotkeys from the PC sheet. So supporting PC specific hotkeys is still a requirement. Now that you're aware of this functionality, it should make managing image/story/reference manual links a little more straightforward.

LordEntrails
November 11th, 2023, 19:45
Good find Trenloe. I had been seeing some inconsistent behavior and could not figure out what was causing it.for me I think it's the difference when I have no PC selected.