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:
You can delete those lines if you don't like it. Or reassign the symbol within Angband.
No problem, happy to help!
Angband on Cygwin64 (on Win10)
Collapse
X
-
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....
Leave a comment:
-
Hmm... That should have worked. Okay, let's do it this way. Launch Cygwin and:
The following is a custom key map file that should make the keys behave how you want them:Code:cd angband git checkout lib/customize/*
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.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
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.Leave a comment:
-
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.Last edited by Grotug; March 26, 2020, 09:30.Leave a comment:
-
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]
Leave a comment:
-
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.Leave a comment:
-
Looked further into this, and it turns out that it's being done intentionally.
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:
Alternatively, I assume you could just remap the keys within Angband.Code:?:[EQU $SYS gcu] %:keys-gcu.prf
Leave a comment:
-
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.Leave a comment:
-
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.Leave a comment:
-
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.Leave a comment:
-
Sounds like it may not have exited cleanly for whatever reason. I would expect closing Cygwin, reopening it, and trying to do the copy again to work.Leave a comment:
-
I had to exit Angband to get back to the command line.
I tried to exit cygwin and reload it but it didn't seem to like that:
$ exit
logout
There are stopped jobs.Leave a comment:
-
Do you currently have Angband running? Windows doesn't let you overwrite files that are open.Leave a comment:
-
Ok, thanks. When I do the last step $ cp src/angband.exe .
it says:
cp: cannot create regular file './angband.exe': Device or resource busyLeave a comment:
-
It's possible the code you built doesn't have the run fix in it.
You could try doing the following in Cygwin:
And then run it.Code:cd angband git pull make cp src/angband.exe .
Don't for get to copy the executable at the end, I have in the past, or you won't be running the code you just built.Leave a comment:
Leave a comment: