Configuration files

Tangaria allows you to change various aspects of the game to suit your tastes. You may define macroes, modify the visuals (allowing you to change the appearance of monsters, objects, or terrain features), change the colours (allowing you to make a given colour brighter, darker, or even completely different), or set options (turning them off or on). Most of this stuff could be manually edited in config files.

mangclient.ini

This config file contains control options for how your client starts up and behaves. 

[Angband] – graphics options for mangclient.exe:
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 (works for all clients – mangclient.exe, mangclient_gcu.exe, mangclient_sdl.exe):
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
LighterBlue=1 – make blue color easier to read on black background
IntroMusic=1 – to play intro music

Below here we get into the joys of the windows – positions, fonts, sizes and names follow for mangclient.exe:

[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 – hold proportion;
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.

 

sdlinit.txt

This config file could be found in \lib\user and it contains mangclient_sdl.exe client options. Some options descriptions:

StatusBarColor = 0 – different color for window borders (could be from 0 to 29);
DefaultColor = 160,60,60 – default color for StatusBarColor=28. As all StatusBar colors are predefined, this option gives possibility to assign any color to borders;
NiceGraphics = 0 – will TileWidth/TileHeight hold proportions.

Please note that for SDL client you can assign vector fonts in .ttf format, eg
Font = UbuntuMono-Regular.ttf
It means that if you play SDL client – you can scale windows as you wish without need to create new raster fonts.

 

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.

Edit only if you are knowing what are you doing:
sound.prf – configuration file for sound events;
font files – contain fonts mapping.

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).

 

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
...

To report typo, error or make suggestion: select text and press Ctrl+Enter.

Leave a Reply

🇬🇧 Attention! Comments with URLs/email are not allowed.
🇷🇺 Комментарии со ссылками/email удаляются автоматически.