Suppose we have a custom popmenu:
Menu "Test"
{
option "Load Bindfile 1" "bind_load_file C:\Games\CoH\Binds\Bindfile1.txt"
option "Load Bindfile 2" "bind_load_file C:\Games\CoH\Binds\Bindfile2.txt"
option "Load Bindfile 3" "bind_load_file C:\Games\CoH\Binds\Bindfile3.txt"
option "Load Bindfile 4" "bind_load_file C:\Games\CoH\Binds\Bindfile4.txt"
}
Our Bind files are simple one-line binds:
Bindfile1.txt
ALT+C "local "Bindfile 1 loaded!""
Bindfile1.txt
ALT+C "local "Bindfile 2 loaded!""
Bindfile3.txt
ALT+C "local "Bindfile 3 loaded!""
Bindfile3.txt
ALT+C "local "Bindfile 4 loaded!""
We start the game and call the popmenu and select any one of the options (let's say option 1). The SYS chat reports: "Keybinds file C:\Games\CoH\Binds\Bindfile1.txt loaded". But when we press ALT+C nothing happens.
"OK maybe the bind files are bad." - you'd think that SYS would have say something about that, but it doesn't. Nevertheless, we manually execute:
/bind_load_file bind_load_file C:\Games\CoH\Binds\Bindfile1.txt
Now we press ALT+C and the character says in Local channel "Bindfile 1 loaded!"
OK, progress. We call the popmenu again and select the second option. SYS says that Bindfile 2 has been loaded. We press ALT+C again and the character says "Bindfile 1 loaded!" in local chat again. We double-check by dumping the full keybinds with keybinds_save_file and notice that ALT+C is still bound to "local "Bindfile 1 loaded!"". We test further by manually loading Bindfile 2 (/bind_load_file...), SYS once again reports that it has been loaded, but now when we press ALT+C the character correctly says "Bindfile 2 loaded!". We double-check by dumping the full keybinds again, and indeed we see that ALT+C has been bound to "local "Bindfile 2 loaded!""
So, it appears that some kind of issue prevents the keybind files from TAKING EFFECT when loaded via a popup menu even though the game reports that the keybind file has been LOADED.