Chaosforge Forum

  • October 09, 2024, 01:34
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Keybindings problem on 0.9.9.6  (Read 4145 times)

brokenfury8585

  • Elder
  • Private FC
  • *
  • *
  • Offline Offline
  • Posts: 13
  • Lost Soul
    • View Profile
Keybindings problem on 0.9.9.6
« on: March 26, 2012, 13:09 »

SO i change the keybindings HNJM to be the diagonal movement s H(NW), N(SW), J(NE), M(SE). and when I get into the game is does not seem to change the controls. Any suggestions?

Running mac 10.6
version 0.9.9.6
« Last Edit: March 26, 2012, 13:10 by brokenfury8585 »
Logged

shark20061

  • Programmer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 266
    • View Profile
Re: Keybindings problem on 0.9.9.6
« Reply #1 on: March 26, 2012, 13:23 »

SO i change the keybindings HNJM to be the diagonal movement s H(NW), N(SW), J(NE), M(SE). and when I get into the game is does not seem to change the controls. Any suggestions?

Running mac 10.6
version 0.9.9.6

Just to make sure you are doing it right:
Code: [Select]
["H"] = COMMAND_WALKNW,should be exactly what to type to bind H to NW.

Also, be careful with "M" because it is assigned to the [m]ore command (while looking), unless you change that too.

If there's still a problem, it might be linked to the OS.
Logged
Hell Knight Warrant Officer (0.9.9.4)  [26!/8/3/1/0]

Mancubus 2nd Lieutenant (0.9.9.6)  [22/12/3/0/0]
M:16 S:43 (126) A:17

brokenfury8585

  • Elder
  • Private FC
  • *
  • *
  • Offline Offline
  • Posts: 13
  • Lost Soul
    • View Profile
Re: Keybindings problem on 0.9.9.6
« Reply #2 on: March 26, 2012, 14:05 »

I have tried both caps and non caps versions and nothing seems to work. These are the same changes i have made in previous versions of doorml. Attached is my keybindings.lua



Logged

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Keybindings problem on 0.9.9.6
« Reply #3 on: March 26, 2012, 17:55 »

Look at shark20061's second last sentence.  I think that might be your problem.
Logged
I computed, therefore I was.

brokenfury8585

  • Elder
  • Private FC
  • *
  • *
  • Offline Offline
  • Posts: 13
  • Lost Soul
    • View Profile
Re: Keybindings problem on 0.9.9.6
« Reply #4 on: March 27, 2012, 08:56 »

i changed the ["M"] to another unused key. In previous versions all I did was change the four buttons from the PgUp, PgDown, etc etc to the same keys. Hmm I wonder if this is due to the graphics mode. I think i might try it in ASCII mode and see if I get the same effects.
Logged

brokenfury8585

  • Elder
  • Private FC
  • *
  • *
  • Offline Offline
  • Posts: 13
  • Lost Soul
    • View Profile
Re: Keybindings problem on 0.9.9.6
« Reply #5 on: March 28, 2012, 11:19 »

So i believe the problem exists in a bigger sense, I tried to change any of the .lua files and the changes never seem to take effect. This is a corperate machine with some changes, but in previous builds have been successful in changing the keybindings.lua, config.lua, and music.lua files
Logged

Rabinowitz

  • DiabloRL Beta Tester
  • Lance Corporal
  • *
  • Offline Offline
  • Posts: 32
    • View Profile
Re: Keybindings problem on 0.9.9.6
« Reply #6 on: March 28, 2012, 11:45 »

BTW is it possible to reassign "Y"es confirmation key form "Y/n" prompt? Or is it hard-coded now?

Also? CTRL and ALT combinations dont work in the current version. :(
Logged
Yellow Man has non-zero weight.

Game Hunter

  • Programmer
  • Local Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1044
  • Looks like game to me.
    • View Profile
    • Channel, the Roguelike
Re: Keybindings problem on 0.9.9.6
« Reply #7 on: March 28, 2012, 12:07 »

So i believe the problem exists in a bigger sense, I tried to change any of the .lua files and the changes never seem to take effect. This is a corperate machine with some changes, but in previous builds have been successful in changing the keybindings.lua, config.lua, and music.lua files
Could be that the files are read-only. On a Windows machine, you can check the properties of the file and un-check the "read-only" box to make it writable.

BTW is it possible to reassign "Y"es confirmation key form "Y/n" prompt? Or is it hard-coded now?
It's hardcoded, since it has to do with the way that the ui.msg_confirm() function works and is not a "whenever you want" command. This it to say that you could bind the 'Y' key to something and the confirm will work just fine.

Also? CTRL and ALT combinations dont work in the current version. :(
shark mentioned that he was able to get it to work with the graphics version, so this is just something that needs to become functional across the game rather than be graphics-specific. (It probably has to do with the way that the a console reads certain button commands.)
Logged
I'm just a dude playing a dude disguised as another dude.

Latest LPs: Angband, Delver

Rabinowitz

  • DiabloRL Beta Tester
  • Lance Corporal
  • *
  • Offline Offline
  • Posts: 32
    • View Profile
Re: Keybindings problem on 0.9.9.6
« Reply #8 on: March 29, 2012, 14:45 »

It's hardcoded, since it has to do with the way that the ui.msg_confirm() function works and is not a "whenever you want" command. This it to say that you could bind the 'Y' key to something and the confirm will work just fine.

Hmm.. dont understand. If i want to assing "h" key for Y/N yes confirmation, should i add string to keybindings such as

["H"] = function() ui.msg_confirm = true end,

?
Logged
Yellow Man has non-zero weight.

shark20061

  • Programmer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 266
    • View Profile
Re: Keybindings problem on 0.9.9.6
« Reply #9 on: March 29, 2012, 14:59 »

You can't change that binding.  It's hard coded to 'y' and 'Y'.
Logged
Hell Knight Warrant Officer (0.9.9.4)  [26!/8/3/1/0]

Mancubus 2nd Lieutenant (0.9.9.6)  [22/12/3/0/0]
M:16 S:43 (126) A:17
Pages: [1]