Configuration files

Mangclient.ini (or mangclient_sdl.ini if you play with SLD cleint) contains control options for how your client starts up and behaves under Windows.

Mangclient.ini

[Angband] – graphics options for the Mangband client:
Graphics=1 – means graphics (tileset) is on
Graphics_Nice=0 – means sustain proportions of tiles
TileWidth=3 – tileset tiles width propotrion
TileHeight=2 – tileset tiles height propotrion

[MAngband] – client options to enter a default name, password and server:
nick=MyCharacterNameHere – pick a name. Spaces are allowed. The name should be no longer than 15 characters and shouldn’t contain any “special” characters.
pass=MyPasswordHere – pick a password. It should not be more than 15 characters long. Also, you shouldn’t use a password that you use anywhere else, because it is not encrypted.
host=game.tangaria.com – predifined server (will not show metaserver options if on)
meta_address=mangband.org – metaserver address (hub which gather all MAngband variants)
meta_port=8802 – metaserver port
DisableNumlock=1 – disable NumLock key by default

This options can set your client to pick a default race, class, sex and stat order so you can quickly create characters (not used as there is a reincarnation for this purpose):

race=0 – ; Pick a race
0 – Human; 1 – Half-elf; 2 – Elf; 3 – Hobbit; 4 – Gnome; 5 – Dwarf; 6 – Half-Orc; 7 – Half-Troll; 8 – Dunadan; 9 – High-elf.

class=0 – pick a class
0 – Warrior; 1 – Mage; 2 – Priest; 3 – Rogue; 4 – Ranger; 5 – Paladin.

sex=1 – pick a sex. 0 – Female 1 – Male, 2 – Neuter.

Now, set the order that you want your stats to be. The first number specifies the highest stat (most important) down to the lowest stat (not used as there is a reincarnation for this purpose). This will be *before* plusses are added in.
stat=1 2 3 4 5
1 – STR; 2 – INT; 3 – WIS; 4 – DEX; 5 – CON.

Below here we get into the joys of the windows. Window positions, fonts, sizes and names follow.

[Term-0] (don’t change the variables in [brackets] or the windows won’t display)

Visible=1 – turns window on and off. On=1 Off=0)
Font=16X24TX.FON – which font to use in this window; extra fonts contained in \lib\xtra\font
Bizarre=1
TileWid=16 – width of tile, used in this window
TileHgt=24 – height of tile, used in this window
NumCols=97 – standard text columns. In other words how wide and how many lines your window can show
NumRows=33 – number of rows.
PositionX=1 – X co-ordinate of the upper left corner of your window pixel by pixel
PositionY=0 – Y co-ordinate of the upper left corner of your window pixel by pixel
Maximized=0 – is it window maximized
Resizeable=0 (Sets whether or not you can resize the window. Yes=1 No=0)

Window.prf

File window.prf will appear in \lib\user\ after character creation and it contains an automatic dump. Don’t edit this file as changes will be deleted and replaced automatically from server. Edit stuff in game within options =

This file got the “usage” on the various windows. Be aware that this file needs to be used in conjunction with the mangclient.ini configuration file. Example of it’s usage:

# Window 'Main window', Flag 'Display status'
window:0:11:1
# Window 'Main window', Flag 'Display player (compact)'
window:0:4:1
...

Options.prf

File <character name>.prf will appear in \lib\user\ after character creation and it contains an automatic dump. Don’t edit this file as changes will be deleted and replaced automatically from server. Edit stuff in game within options =

These are the options from the = menu in the client:
Y = on
X = off

# Option 'Use the roguelike command keyset'
X:rogue_like_commands

# Option 'Use old target by default'
X:use_old_target

# Option 'Always pickup items'
X:pickup_always

# Option 'Always pickup items matching inventory'
Y:pickup_inven

# Option 'Notify on object recharge'
X:notify_recharge

# Option 'Show flavors in object descriptions'
X:show_flavors

# Option 'Center map continuously'
X:center_player

# Option 'Disturb whenever viewable monster moves'
Y:disturb_near

# Option 'Show damage player deals to monsters'
X:show_damage

# Option 'Color: Illuminate torchlight in yellow'
Y:view_yellow_light

# Option 'Color: Shimmer multi-colored things'
X:animate_flicker

# Option 'Color: Player color indicates % hit points'
Y:hp_changes_color

# Option 'Color: Show unique monsters in purple'
X:purple_uniques

# Option 'Show walls as solid blocks'
X:solid_walls

# Option 'Show walls with shaded background'
X:hybrid_walls

# Option 'Use sound'
Y:use_sound

# Option 'Show effective speed as multiplier'
X:effective_speed

# Option 'Color: Illuminate torchlight in orange'
Y:view_orange_light

# Option 'Use special color for party leader'
X:highlight_leader

# Option 'Disturb whenever map panel changes'
Y:disturb_panel

# Option 'Always say Yes to Yes/No prompts'
X:auto_accept

# Option 'Get out of icky screens when disturbed'
X:disturb_icky

# Option 'Active auto-retaliator'
Y:active_auto_retaliator

# Option 'Freeze screen after detecting monsters'
Y:pause_after_detect

# Option 'Disturb whenever monsters bash down doors'
Y:disturb_bash

# Option 'Activate fire-till-kill mode'
Y:fire_till_kill

# Option 'Kick out when starving while at full hps'
X:disturb_faint

# Option 'Risky casting'
X:risky_casting

# Option 'Force player descent'
X:birth_force_descend

# Option 'Word of Recall has no effect'
X:birth_no_recall

# Option 'Restrict creation of artifacts'
X:birth_no_artifacts

# Option 'Show level feelings'
Y:birth_feelings

# Option 'Increase gold drops but disable selling'
Y:birth_no_selling

# Option 'Start with a kit of useful gear'
Y:birth_start_kit

# Option 'Restrict the use of stores/home'
X:birth_no_stores

# Option 'Death is permanent'
Y:birth_no_ghost

# Option 'Play as a fruit bat'
X:birth_fruit_bat

# Hitpoint warning (0-9)
O:hp_warn_factor:6

# Base delay factor (0-255)
O:delay_factor:10

# Movement delay factor (0-9)
O:lazymove_delay:0

After options there is a list of keymappings in this file. At this particular file keymappings are also not editable. Example:

keymap-act:[Escape]U9
keymap-input:0:[F5]

keymap-act:[Escape]U5
keymap-input:0:^[PageUp]

...

Then this file got autoinscriptions dump; it’s also not editable. Example:

inscribe:mushroom:Fast Recovery:@E1
inscribe:arrow:Arrow:@f1
...

Editing files

Folder \lib\customize contains certain files. Should NOT be edited:
class.prf and race.prf – contains lore for character creation screen
presets.prf – defines special attr/char mappings for use in “graphics” mode
sound.prf – configuration file for sound events
font files – contain fonts mapping (edit only if you are knowing what are you doing)

Could be edited:
message.prf – default message colors. Careful in editing!
pref.prf – default keymappings for “default” actions of various kinds; this file includes, if appropriate, various “sub-files”. Note that the “X” key is mapped in both keysets to the key sequence “w0”, which will “swap weapons” as long as both weapons contain the inscription “@0”. For example, inscribe your main weapon as “@1@0” and your digger (or secondary weapon) as “@2@0”.
user.prf – all around macro file, will load any time you run the client
mage.prf, warrior.prf, rogue.prf … – will load any time when you will run certain class.

Finaly you can customise the macro file to load with your character’s name, for example: angus.prf (btw Angus was a player who wrote an ancestor of this guide).

Macro files load in order:
If F1 is set to shoot a bow in user-win.prf, eat food in paladin.prf and to read a teleport scroll in angus.prf and assuming you are running a character named Angus who is a paladin, F1 will be set to read a teleport since angus.prf loads last.

Some macro commands:
\e – Escape – Pretty much do this with everything that you macro. Ensures you stop whatever else you are doing and perform your macro NOW.
\s – space – Useful to ‘chain’ commands.
( – ‘friendly’ target other players, good for healing party members (can also be used with offensive spells).

Leave a Reply

Your email address will not be published. Required fields are marked *