Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old March 25, 2020, 17:55   #11
Grotug
Veteran
 
Join Date: Nov 2013
Posts: 1,273
Grotug is on a distinguished road
I closed cyngwin using the window x instead of within the program.

the cp line now works. but Angband's movement behavior doesn't seem to have improved.
__________________
Detailed account of my Ironman win here.
Grotug is online now   Reply With Quote
Old March 25, 2020, 18:05   #12
DavidMedley
Swordsman
 
Join Date: Oct 2019
Posts: 404
DavidMedley is on a distinguished road
I just learned how to move with the numbers across the top. It helps at first if you put three fingers on 123 and three fingers on 789.
DavidMedley is offline   Reply With Quote
Old March 25, 2020, 18:11   #13
moosferatu
Scout
 
Join Date: Feb 2020
Posts: 34
moosferatu is on a distinguished road
Well, the "good" news is that I was able to reproduce the problem on both Windows and Linux.

The arrow keys behave as run keys only under GCU with the original keyset enabled (works as expected with the roguelike keyset). They do not behave as run keys for the X11, SDL, or Windows versions. I haven't had a chance to look at the source to see if it's immediately obvious why this is the case.
moosferatu is offline   Reply With Quote
Old March 26, 2020, 00:22   #14
moosferatu
Scout
 
Join Date: Feb 2020
Posts: 34
moosferatu is on a distinguished road
Looked further into this, and it turns out that it's being done intentionally.

https://github.com/angband/angband/b...eys-gcu.prf#L1

God knows why.

One way to disable it is by editing the config so that it doesn't load those mappings.

Open C:\cygwin64\home\USER\angband\lib\customize\pref.p rf in Notepad++, and remove the following lines from the end of the file:

Code:
?:[EQU $SYS gcu]
%:keys-gcu.prf
Alternatively, I assume you could just remap the keys within Angband.
moosferatu is offline   Reply With Quote
Old March 26, 2020, 00:42   #15
Grotug
Veteran
 
Join Date: Nov 2013
Posts: 1,273
Grotug is on a distinguished road
Dang diggitty! Well I'll be a snodgard's snort sneller. Thanks!! That seems to have done the trick! Ahh, except now when I hold the SHIFT key down and press the arrow keys @ won't move in any direction, let alone run. SHIFT does work with the rogue keys, though.
__________________
Detailed account of my Ironman win here.
Grotug is online now   Reply With Quote
Old March 26, 2020, 00:55   #16
moosferatu
Scout
 
Join Date: Feb 2020
Posts: 34
moosferatu is on a distinguished road
Ah, okay, we removed too much. Add the lines you removed back. Instead, edit keys-gcu.prf, which is in the same directory. Remove these lines:

Code:
keymap-act:.6
keymap-input:0:[Right]

keymap-act:.4
keymap-input:0:[Left]

keymap-act:.2
keymap-input:0:[Down]

keymap-act:.8
keymap-input:0:[Up]
moosferatu is offline   Reply With Quote
Old March 26, 2020, 08:23   #17
Grotug
Veteran
 
Join Date: Nov 2013
Posts: 1,273
Grotug is on a distinguished road
I put the pref file back the way it was and edited the gcu-keys.prf but the movement behavior didn't change at all. So then I put the gcu-keys.prf file back the way it was in the hopes the movement behavior would revert, but it did not. So @ still moves one square at a time, but when pressing SHIFT key with direction key @ still doesn't move at all. I'm not sure what's going on.

I closed everything out and restarted my computer but still no change.
__________________
Detailed account of my Ironman win here.

Last edited by Grotug; March 26, 2020 at 08:30.
Grotug is online now   Reply With Quote
Old March 26, 2020, 12:47   #18
moosferatu
Scout
 
Join Date: Feb 2020
Posts: 34
moosferatu is on a distinguished road
Hmm... That should have worked. Okay, let's do it this way. Launch Cygwin and:

Code:
cd angband
git checkout lib/customize/*
The following is a custom key map file that should make the keys behave how you want them:

Code:
#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=# begin Dump keymaps
# *Warning!*  The lines below are an automatic dump.
# Don't edit them; changes will be deleted and replaced automatically.

keymap-act:;2
keymap-input:0:[Down]

keymap-act:;8
keymap-input:0:[Up]

keymap-act:;6
keymap-input:0:[Right]

keymap-act:;4
keymap-input:0:[Left]

keymap-act:.4
keymap-input:0:\xbe

keymap-act:.6
keymap-input:0:\xb5

keymap-act:.8
keymap-input:0:\xf6

keymap-act:.2
keymap-input:0:\xf7


# *Warning!*  The lines above are an automatic dump.
# Don't edit them; changes will be deleted and replaced automatically.
#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=# end Dump keymaps
If you already have a custom pref file, add those mappings to your existing file. If not, copy and paste the above into a new file at C:\cygwin64\home\USER\.angband\Angband\CHAR.prf.

USER = Your Windows user
CHAR = Your Angband character name

Launch Angband and the preferences should be auto-loaded. If not, you can manually load the file.
moosferatu is offline   Reply With Quote
Old March 26, 2020, 21:54   #19
Grotug
Veteran
 
Join Date: Nov 2013
Posts: 1,273
Grotug is on a distinguished road
That worked!

There is still one minor thing that still doesn't behave as it does in Windows:

<CTRL> + <direction key> doesn't keep @ from moving while allowing @ to attack (which is the normal behavior of those two keys pressed together).

Instead it does nothing (or, more accurately, tells me to: press '?' for help).

And.... one last thing: I'm not sure why the magma veins of treasure are orange blocks instead of orange *.

Thanks again for all the help. If you want a break from being my Angband troubleshooter I'll certainly understand.

Talk about if you give a child a glass of milk he'll ask for a cookie, and another cookie, and a brownie, and a cupcake....
__________________
Detailed account of my Ironman win here.
Grotug is online now   Reply With Quote
Old March 26, 2020, 22:48   #20
moosferatu
Scout
 
Join Date: Feb 2020
Posts: 34
moosferatu is on a distinguished road
I tried to make custom mappings for the <ctrl> + <arrow> commands, but I don't think it's possible with the ncurses version. The problem is the there are overlapping key codes. For example, <ctrl>+<down> is \xb5 and <shift>+<left> is also \xb5.

Sorry!

As for the magma, the reason is that that's the way they're defined in font-gcu.prf:

https://github.com/angband/angband/b...nt-gcu.prf#L12

You can delete those lines if you don't like it. Or reassign the symbol within Angband.

No problem, happy to help!
moosferatu is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUG] [SANGBAND 1.0.2] [Win10] Game crashes when entering Left Panel screen Bucolic Verdancy Variants 0 November 2, 2018 06:37
Recording PosChengband with Win10's Game Bar (Win+G) HugoTheGreat2011 Idle chatter 1 July 20, 2016 14:09
Reviving Iso-Angband, an isometric view addon for Angband Hajo Development 111 August 3, 2014 19:44


All times are GMT +1. The time now is 07:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.