Page 1 of 1

Why can't I rebind the 'c' key?

PostPosted: Wednesday, 24th October 2018, 13:09
by Kaiji
I added "bindkey = [c] CMD_EVOKE" to my RC file, but when I press it, it just says "OK, then."

I have evocable wands in my inventory and "Butcher" has been moved to "V" so that shouldn't interfere.

Anyone know what might be causing this issue?

Re: Why can't I rebind the 'c' key?

PostPosted: Wednesday, 24th October 2018, 18:58
by advil
Can you post or link to your whole rc file? Just `bindkey = [c] CMD_EVOKE` works as expected in my testing, so I think there's something else interfering in your configuration.

Re: Why can't I rebind the 'c' key?

PostPosted: Thursday, 25th October 2018, 12:16
by Kaiji
ignore += grinding sound

bindkey = [v] CMD_CLOSE_DOOR
bindkey = [V] CMD_BUTCHER
bindkey = [C] CMD_EVOKE_WIELDED
bindkey = [c] CMD_EVOKE
bindkey = [e] CMD_CAST_SPELL
bindkey = [E] CMD_FORCE_CAST_SPELL
bindkey = [Z] CMD_WEAR_ARMOUR
bindkey = [z] CMD_EAT
bindkey = [x] CMD_PICKUP
bindkey = [g] CMD_DROP
bindkey = [f] CMD_REST
bindkey = [D] CMD_LOOK_AROUND
bindkey = [R] CMD_RESISTS_SCREEN
bindkey = [d] CMD_FIRE
bindkey = [d] CMD_TARGET_SELECT_ENDPOINT

item_slot ^= ration:z


explore_stop -= stairs

tile_font_crt_family = Lucida Console
tile_font_stat_family = Lucida Console
tile_font_msg_family = Lucida Console
tile_font_lbl_family = Lucida Console

tile_font_crt_size = 20
tile_font_stat_size = 18
tile_font_msg_size = 16
tile_font_tip_size = 15
tile_font_lbl_size = 14

show_more=false

hp_warning = 30

ai := autoinscribe
ai += of identify:@r1
ai += remove curse:@r2
ai += curing:@q1

travel_delay = 20

auto_butcher = true
easy_eat_chunks = true
auto_eat_chunks = true
easy_eat_gourmand = true

default_manual_training = true

autofight_stop = 50
confirm_butcher = never
auto_butcher = full

tile_filter_scaling = true
tile_force_overlay = true

automagic_enable = true
automagic_fight = false
automagic_slot = i

# Items disliked by your god.
menu += red:forbidden

equip_unequip = true

easy_confirm = all
easy_quit_item_prompts = true

ignore += pray


local function autopickup(it, name)
if it.is_useless then return end

local class = it.class(true)
if class ~= 'armour' then return end
st, _ = it.subtype()
local good_slots = {cloak='Cloak', helmet='Helmet',
gloves='Gloves', boots='Boots'}
local cur
if good_slots[st] ~= nil then
if it.branded or it.artifact then return true end
cur = items.equipped_at(good_slots[st])
if not cur then return true end
if cur.branded or cur.artefact then return end
elseif st == 'body' then
cur = items.equipped_at('armour')
if not (cur and cur.name('qual') == it.name('qual')) then return end
if it.branded then return true end
if cur.branded or cur.artefact then return end
else
return
end

if cur then
local xi = armour_plus(it)
local xc = armour_plus(cur)
if xi and xi > xc or xc < 0 then return true end
end
end

add_autopickup_func(autopickup)
}

# Bad things
stop += You fall through a shaft
stop += An alarm trap emits a blaring wail
stop += (blundered into a|invokes the power of) Zot
stop += A huge blade swings out and slices into you!
stop += sense of stasis
stop += flesh start
stop += (starving|devoid of blood)
stop += wrath finds you
stop += lose consciousness
stop += watched by something
stop += A sentinel's mark forms upon you

Re: Why can't I rebind the 'c' key?

PostPosted: Friday, 26th October 2018, 01:37
by advil
I still couldn't reproduce the behavior even with that entire rc, so something else must be going on. Do you have any macros as well? Maybe you should make a full bug post on mantis with some more detail about your setup? If this is an offline game, a save file might help, if it is specific to one character. (If it's an online game, you can make a save backup to similar effect.)

Re: Why can't I rebind the 'c' key?

PostPosted: Friday, 26th October 2018, 12:08
by Kaiji
advil wrote:Do you have any macros as well


That was it. I completely forgot I'd saved a macro on the "c" key weeks ago. Thanks so much for your help!