PDA

View Full Version : Reload destroys rActor info in Hotkey



Weltenbrand
March 2nd, 2021, 15:05
Hi,

after the update I have the following problem, if I drag a roll into the hotkey bar it works only for the session.
After a reload clicking the hotkey results in a error if the resultshandler uses the rSource/rActor object in the roll result handler.

I hunted the problem down to ActionsManager.decodeActionFromDrag(draginfo) which is invoked by actionHotkey, after the reload this function returns nil as rSource.
Going a bit deeper it is draginfo.getShortcutList() which returns {}.

Moon Wizard
March 3rd, 2021, 21:12
It looks like the shortcut class needs to be non-empty for reloading session hot keys; which had been changed to empty since not needed for anything else.

I'll look into patching CoreRPG next week to add something in there, so that hot keys preserve actor state.

Regards,
JPG