|
![]() |
|
Thread Tools | Display Modes |
![]() |
#1 |
Rookie
Join Date: Oct 2022
Posts: 8
![]() |
![]()
After changing the font, my Angband (v3.5.1 for Kubuntu Linux 20.04) displays open floor tiles as a square with a dotted outline, the symbol for "this font undefined for this character", rather than the little dot. This is a problem because an empty room will seem filled with squares, rather than being obviously empty. Sometimes I don't notice monsters if their symbol is similar to an empty square, such as a gray capital C or capital O.
I want to change the symbol for "open floor" to another character more suitable for my choice of font. How do I do this? A web search reveals that this is possible but doesn't give info specific enough that I can do it. There is mention of a "user prefs file" which I am supposed to find in the "lib/customize/" folder, namely "pref.prf", but I can't find these files anywhere. Does that mean I need to create my own "lib/customize/" directory? Do I put this under ~/.angband/Angband ? (as in ~/.angband/Angband/lib/customize ?) There is no mention of the format of the pref.prf file. If I am to create my own, how do I specify that I want to change Open Floor Tile to 0xB7? (I can't tell what the current character is, but I think it's 0x1F.) Thanks for any help you can give. Dan Bang |
![]() |
![]() |
![]() |
#2 | |
Adept
Join Date: Aug 2014
Posts: 181
![]() |
Quote:
It's either in lib/edit or lib/gamedata (don't know which path in your version). |
|
![]() |
![]() |
![]() |
#3 | |
Rookie
Join Date: Oct 2022
Posts: 8
![]() |
Quote:
Where do I find this lib/ directory? I've looked under ~/.angband/Angband, under /var/games/angband, under /lib (there is no /lib/customize, /lib/edit, or /lib/gamedata as an absolute path, and the files under /lib do not seem to be related to Angband), nor under /usr/lib. Thanks for any help you can give. Dan Bang |
|
![]() |
![]() |
![]() |
#4 | |
Rookie
Join Date: Oct 2022
Posts: 8
![]() |
Quote:
The answer is: I have to know where my own angband is installed. In my case of Ubuntu 20.04, I used the command "apt-file list angband" to see where the files were installed in my Angband 3.5.1. It turns out that it was under /etc/angband (I would never have guessed), and there are the directories /etc/angband/edit and /etc/angband/prefs (there is no /etc/angband/lib or any subdirectories under it). In any case, I was able to find /etc/angband/edit/terrain.txt ; however, the symbol for an Open Floor was just a "." (the period/full stop), which is what I already wanted, but that was not what was displayed on my screen, so I looked for some other setting that would override this. I did eventually find the file /etc/angband/prefs/font-x11.prf which showed exactly what I had predicted: Code:
# open floor F:1:all:0x01:0x1F # invisible trap F:2:all:0x01:0x1F Code:
# open floor F:1:all:0x01:0xB7 # invisible trap F:2:all:0x01:0xB7 Anyway: success! Now the dungeon map displays correctly. Just wanted to share with others. Dan Bang |
|
![]() |
![]() |
![]() |
#5 |
Swordsman
Join Date: Aug 2019
Posts: 434
![]() |
What you did changed it for all users on the system, which is fine, but if you wanted to change it only for the current user's account (or you don't have super-user access and can't change the system-wide installation) you could have put the changes you wanted to make to font-x11.prf in ~/.angband/Angband/font-x11.prf (~/.angband/Angband is the "user directory" for a typical Angband installation on Linux or other Unix-like systems other than macOS).
The symbols for monsters, objects, and terrain can also be edited in-game. When a character is loaded use '~' to bring up the knowledge menus. Go into the appropriate category, i.e. "object knowledge", "monster knowledge", or "feature knowledge". Then select the thing to change and press 'v' to allow selection of the new symbol. When done with the changes, use '=' to bring up the options menu and then use the "Save visuals" option to save the symbols to a preference file. By default it will save them to <name of current character>.prf in the "user directory" which would only affect characters with that name. You could change the name to user.prf (affects all characters for the account) or font-<frontend-name>.prf (where <frontend-name> is x11, sdl, gcu, ...) to affect the appearance when using a particular front end. |
![]() |
![]() |
![]() |
#6 |
Swordsman
Join Date: Apr 2020
Location: DC Area
Posts: 434
![]() |
I gotta know - what font is it you lkike
|
![]() |
![]() |
![]() |
Tags |
display, symbols |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing symbol for items/monsters | mibert | Sil | 2 | June 29, 2016 13:54 |
Nexus means -ve stat | Muscleguy | Vanilla | 12 | April 28, 2015 19:14 |
What does this diamond symbol represent? | reed | Vanilla | 3 | May 25, 2014 15:32 |
3.3.0 Treasure not displayed | Dranken | Vanilla | 4 | August 31, 2011 19:24 |
3.0.9 feature/item symbol change | Hariolor | Vanilla | 8 | October 20, 2008 04:52 |