#Can't select sea radar with hotkeys

1 messages · Page 1 of 1 (latest)

ancient stirrup
#

This small bug exists for a long time now (as long as BAR has been BAR as far as i know), just never got around to reporting it. When you try to build radar on sea using hotkeys (llt/radar/aa) it does not switch radar to sea radar.

ancient stirrup
#

@balmy trout do you know who could fix this?

ancient stirrup
#

This is still relevant

lament loom
#

@ancient stirrup
Hmm here's what I know about the issue:

  • The widget that automatically switches water/land buildings is the context build widget:
  • Default hotkeys uses keychains for selecting buildoptions with constructors (and commanders). Here's what happens when you try to build a radar on water: pressing C once gives you a torpedo launcher, because context build is switching it automatically from LLT for you. Pressing C again quickly will attempt to switch from torpedo launcher to LLT, but context build puts it back on torpedo launcher. Pressing C quickly three times - it tries to build a radar, then context switches it to floating radar for you.

So I can think of two options:

  • Get used to hitting C three times instead of two to build a radar on the water.
  • Download the context build widget from the source, and put it in your widgets directory. Edit this line to change the delay (so it's longer) that context build uses to switch land/sea versions:
local updateRate = 8/30

So for example a value of 20 means it would update the context build once every 20 frames (there are 30 frames per second). This will make it feel sluggish, but will allow you to hit the keychain (double tap C) before context build can switch the building.
https://github.com/beyond-all-reason/Beyond-All-Reason/blob/master/luaui/Widgets/cmd_context_build.lua

GitHub

www.beyondallreason.info. Contribute to beyond-all-reason/Beyond-All-Reason development by creating an account on GitHub.

#

There might be a way to resolve the keychain timing conflict between these two widgets but I'm not a real coder so idk. Also, this is not a problem for grid menu/keys since it doesn't use keychains to select buildoptions, so that's another avenue to resolution but not one I imagine you're interested in.