Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keybind air_plants command bind issue #2917

Open
Notgivingmyrealnametomicrosoft opened this issue May 3, 2024 · 0 comments
Open

keybind air_plants command bind issue #2917

Notgivingmyrealnametomicrosoft opened this issue May 3, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@Notgivingmyrealnametomicrosoft
Copy link

Description

tested in
Game: BAR-25920-750c2fe
Engine: 105.11-2303-g5f26a29105
Chobby: 3224 ca0dlal

i tried to find the binds for altering airplants when aircrafts leave them

Note:these are separate binds from the aircraft ones , as those work for the aircraft:
bind Any+sc_i idlemode // Sets the state on what the aircraft will do when idle
bind Any+sc_h autorepairlevel // Set at which HP % this aircraft retreats to nearest air repair pad

so i tried to find separate binds for the airplants and found:
in Beyond-All-Reason/luarules/gadgets/unit_air_plants.lua
lines 63 to 79

local landCmd = {
id = 34569,
name = "apLandAt",
action = "apLandAt",
type = CMDTYPE.ICON_MODE,
tooltip = "setting for Aircraft leaving the plant",
params = { '1', ' Fly ', 'Land' }
}

local airCmd = {
id = 34570,
name = "apAirRepair",
action = "apAirRepair",
type = CMDTYPE.ICON_MODE,
tooltip = "return to base and land on air repair pad below this health percentage",
params = { '1', 'LandAt 0', 'LandAt 30', 'LandAt 50', 'LandAt 80' }
}

I tried to bind these actions to

bind Any+sc_i apLandAt // setting for Aircraft leaving the plant

bind Any+sc_h apAirRepair // return to base and land on air repair pad below this health percent

Expected Behaviour

pressing the i key would cycle : Fly, and Land when an aircraft plant is selected

pressing the h key would cycle : No Retreat, Retreat 30%, Retreat 50%, and Retreat 80% when an aircraft plant is selected

Actual Behaviour

the binds do not work

Reproduction steps

just bind the actions

bind Any+sc_i apLandAt // setting for Aircraft leaving the plant

bind Any+sc_h apAirRepair // return to base and land on air repair pad below this health percent

then select an aircraft plant and press them

Other

this may be the completely wrong binds, or the actions are case sensitive and the actions may need to be changed in lowercase, like so:

local landCmd = {
id = 34569,
name = "apLandAt",
action = "aplandat",
type = CMDTYPE.ICON_MODE,
tooltip = "setting for Aircraft leaving the plant",
params = { '1', ' Fly ', 'Land' }
}

local airCmd = {
id = 34570,
name = "apAirRepair",
action = "apairrepair",
type = CMDTYPE.ICON_MODE,
tooltip = "return to base and land on air repair pad below this health percentage",
params = { '1', 'LandAt 0', 'LandAt 30', 'LandAt 50', 'LandAt 80' }
}

as a final note, any keys that are bound even if the actions are upper-cased, will still be a lower-cased action

@Notgivingmyrealnametomicrosoft Notgivingmyrealnametomicrosoft added the Bug Something isn't working label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant