PDA

View Full Version : Hotkeyed Option Bug



bmos
February 27th, 2021, 00:46
I used OptionsManager.registerOption2 to create an option TIME_ROUNDS.
When I try to use this option via the hotkeys, I get the error Option (TIME) not registered. It seems to have an issue with underscores in options names.

Moon Wizard
March 3rd, 2021, 21:59
Do you get the same error when you type in "\option TIME_ROUNDS <option>"? That should be what the option drag should be doing.

JPG

bmos
March 3rd, 2021, 22:02
Do you get the same error when you type in "\option TIME_ROUNDS <option>"?Yes, same error:

Option (TIME) not registered

when I run "/option TIME_ROUNDS slow"

I have changed the option in that extension to TIMEROUNDS, so it's not a problem for me anymore. Regardless, I thought I should let you know.

Moon Wizard
March 3rd, 2021, 22:04
Just looked; and the option command handler is parsing "words"; which is only alphanumeric and +-' characters.

I can try adding _ and period to the "word" characters for that particular parse scenario.

Regards,
JPG

Moon Wizard
March 3rd, 2021, 22:04
It won't be available until the next CoreRPG update.

Regards,
JPG