GAME-SPECIFIC CONFIGURATION FILE GEMRB.INI
******************************************

Contents
--------
  - Introduction
  - INI File Format
  - Options Values Types
  - List of Options


Introduction
------------ 

gemrb.ini is a file containing game-specific configuration for GemRB
engine.  It's used for options with simple value types which are
specific to GemRB and which are not intended to be usually changed by
a user. More complicated configuration data (tables, etc.) are kept in
their own files. User specific configuration is in other file (GemRB.cfg).

Options that do not deal strictly with data availability and diversity
may be freely changed. Some that may be interesting to users include:
AutoSearchHidden, BreakableWeapons, DeathOnZeroStat,
HasSpecificDamageBonus (mod required), SimplifiedDisruption,
HealOn100Plus, KnowWorld, ProperBackstab, SelectiveMagicRes,
ShopsRechargeItems, StealIsAttack and TeamMovement.

[FIXME: eventually, this file could be searched for in user's config directory too]

This file's path can be 
  <source_dir>/gemrb/override/<game_type>/gemrb.ini
  <install_share_dir>/gemrb/override/<game_type>/gemrb.ini
  <install_dir>/override/<game_type>/gemrb.ini


INI File Format
---------------

gemrb.ini file is in Windows *.INI format. That means it's line
oriented, consisting of a list of options, each on its own
line. Options are grouped into sections, each section labeled with
section name in [brackets]. Comments have to be on their own line, they
start with a semicolon (;) and last to the end of the line.

Options are in this file described in the format optionname = <type>.
For the moment all the options have to be in [resources] section.


Options Values Types
--------------------
These are types of values used in description of particular options.

  resref - resource identifier as defined in KEY file, string of at most
      8 characters. The case is not important, but is usually written in
      all upper-case to be easily distinguished.

  string

  rgba_color - hexadecimal RGBA quadruplet written as #rrggbbaa, 
      e.g. #00ff00ff is opaque bright green.

  number - unsigned integer number

  bool - boolean value, for now either 0 (false) or 1 (true)


List of Options
---------------

MainCursorsImage = <resref>
- - - - - - - - - - -
Name of image resource with main cursor images (e.g. CURSORS)

TextCursorBAM = <resref>
- - - - - - - - - - -
Name of bitmap resource with text cursor image (e.g. PST: CARET)

ScrollCursorBAM = <resref>
- - - - - - - - - - - - - -
Name of bitmap resource with scroll cursor images (e.g. BG2: CURSARW)

ButtonFont = <resref>
- - - - - - - - - - - 
Name of bitmap resource used for button font in dialog windows
(e.g. BG1: STONESML)

TextFont = <resref>
- - - - - - - - - - -
Font used to display overhead or floating text

MovieFont = <resref>
- - - - - - - - - - -
Name of bitmap resource used for the movie subtitles

TooltipFont = <resref>
- - - - - - - - - - - -
Name of bitmap resource with font used to display tooltips 
(e.g. PST: TRMTFONT)


TooltipBack = <resref>
- - - - - - - - - - - -
Sprite displayed behind the tooltip text, if any. Leave undefined when
tooltips don't use background bitmap.
(e.g. BG1: TOOLTIP)


TooltipMargin = <number>
- - - - - - - - - - - - -
Space between tooltip text and sides of TooltipBack (x2)


GroundCircleBAM1 = <resref>
GroundCircleBAM2 = <resref>
GroundCircleBAM3 = <resref>/<int>
- - - - - - - - - - - - - - - - -
Sprites displayed as a ground circle under actors (PST only).
Actually, there should be this directive for each ground circle
size, from 1 to 3 (sizes in PST).

If the ResRef is immediately followed by a slash and a number, 
the bitmap is scaled down by this factor. That's used in PST, 
where resources exist for circle sizes 2 and 3 only.
(e.g. GroundCircleBAM1 = wmpickl/3)


INIConfig = <filename>
- - - - - - - - - - - -
Name of INI file from the original game. This file is searched for in
the game root directory.


Palette16 = <resref>
Palette32 = <resref>
Palette256 = <resref>
- - - - - - - - - - -
Palette bitmap resources for various number of colors in a gradient.
Each pixel line in these files is for one base color. Pixels in the
row then define the gradient of that color.


TextScreenSpeed = <number>
- - - - - - - - - - - -
Controls the base narrated text scrolling speed. It's later adjusted by
font size and text width.


3EdRules = <bool>
- - - - - - - - -
Toggles whether the game (data) is using the 3rd edition rules. Blindly
toggling it will do no good!


AllStringsTagged = <bool>
- - - - - - - - - - - - -
If set to 1, .tlk tokens are always resolved regardless of the token
flag in dialog.tlk. Normally only BG2 has token flags (0), all other
games have this option set to 1.


AreaVisitedVar = <bool>
- - - - - - - - - - - -
Toggles whether also AREANAME_visited variables are set when an actor
enters an area. Used in the IWD scripts and worldmaps.


AreaOverride = <bool>
- - - - - - - - - - -
Toggles use of area customisation scripts. Used to implement the PST
random modron mazes.


AutomapINI = <bool>
- - - - - - - - - -
If set to 1, automap entries will be done PST style.


AutoSearchHidden = <bool>
- - - - - - - - - - - - -
Toggles whether character automatically search for hidden doors.


BiographyIsRes = <bool>
- - - - - - - - - - - -
Toggles whether to expect the biography extension as "res" or "bio".


BreakableWeapons = <bool>
- - - - - - - - - - - -
Determines if weapons can randomly break when used (1% chance in bg1).


CastingSounds = <bool>
- - - - - - - - - - - -
Toggles whether the game supports casting sounds.


ChallengeRating = <bool>
- - - - - - - - - - - - -
Toggles whether the game supports challenge ratings. Affects experience
gains.


CharNameIsGabber = <bool>
- - - - - - - - - - - - -
Toggles whether Player1 is treated as a protagonist, talker, gabber in
dialogs and interactions.


CheckAbilities = <bool>
- - - - - - - - - - -
Determines if character abilities should matter in item usability checks.


CutsceneAreascripts = <bool>
- - - - - - - - - -
Determines whether area scripts should run during cutscenes or not.


DeathOnZeroStat = <bool>
- - - - - - - - - - -
Determines whether characters should die if any of their primary stats
reaches zero.


DialogueScrolls = <bool>
- - - - - - - - - - - - -
If set to 1, dialogue window behaves as in PS:T - i.e. talk between 
Nameless One and others is appended into the window as it comes. If set to
0 (default) each new pair of NPC's talk and Nameless One's replies is
written from the start of the page, like in BG2.


EnhancedCastingSounds = <bool>
- - - - - - - - - - - - - - - -
Toggles whether the game supports enhanced casting sounds (bg2).


EnhancedEffects = <bool>
- - - - - - - - - - - - -
Toggles whether the game supports enhanced effects (iwd2). This has to
do with the data (EFF version), so do not change it on a whim.


FistStat = <number>
- - - - - - - - -
Which stat determines the fist weapon (defaults to IE_CLASS).


ForceAreaScript = <bool>
- - - - - - - - - - - - -
Toggle always running area scripts, even in dialog.


FlexibleWorldmap = <bool>
- - - - - - - - - - - - -
Toggles whether the game supports worldmap extensions.


Happiness = <bool>
- - - - - - - - - - -
Whether the game supports NPC happiness. All come with happy.2da, even though
PST and IWD2 don't use it.


HasBeastsINI = <bool>
- - - - - - - - - - -
Whether original game data contains beasts.ini and quests.ini files
with descriptions of monsters and quests (PST only).


HasDPLAYER = <bool>
- - - - - - - - - - 
If set to 1, then NPCs will get a default player script (DPLAYER2) set
when they join the party. PST has no such feature. 


HasEEEffects = <bool>
- - - - - - - - - - -
If set to 1, then certain enhanced edition effect behaviours will be used.


HasEXPTABLE = <bool>
- - - - - - - - - - -
If set to 1, then an exptable.2da file is responsible of storing quest
based experience awards. If the option doesn't exist, then the engine
will use xplist.2da table for a similar feature. AddXP2da and AddXPVar
scripting actions use this option to determine which .2da file to use.
XPList is bg2 specific, while exptable is an iwd2 feature.


HasFloatMenu = <bool>
- - - - - - - - - - -
Used for the PST float menu implementation. Not portable without extra
guiscript work.


HasHideInShadows = <bool>
- - - - - - - - - - - -
Enable this if the characters also have the IE_HIDEINSHADOWS stat besides
IE_STEALTH.


HasInfopointDialogs = <bool>
- - - - - - - - - - - - - - 
Determines whether ARE files can contain dialog references for infopoints.
Of the original games only PST uses this feature but it only needs to be
switched off for BG1 since those fields contain garbage there.


HasKaputz = <bool>
- - - - - - - - - -
If set to 1, then death variables will be in a separate context.
This is PST specific.


HasNoNPCFlag = <bool>
- - - - - - - - - - -
Detail about how infopoints react when used (all except iwd2).


HasPartyINI = <bool>
- - - - - - - - - - -
If set to 1, then there is a party.ini file describing pre-generated 
parties. Normally only IWD2 has this option set.


HasPickSound = <bool>
- - - - - - - - - - -
If set to 1, items have a pick up sound resource reference instead of a
description icon. PST has this option.


HasResDataIni = <bool>
- - - - - - - - - - - -
Determines whether the game stores some sounds in separate resource
INI files and where they are ("resdata").


HasSongList = <bool>
- - - - - - - - - - -
If set to 1, then the music files are listed in a songlist.2da file.
Otherwise the music files are listed in a music.2da file. Original
BG1 and PST doesn't have either of these files (the list is hardcoded
into the engine), GemRB supplies a music.2da file for them.


HasSoundsIni = <bool>
- - - - - - - - - - -
Determines whether the game stores some sounds in separate resource
INI files and where they are ("sounds").


HasSpecificDamageBonus = <bool>
- - - - - - - - - - - - - - -
Determines if the game supports specific damage bonus like for example +10%
extra cold damage.


HasSpellList = <bool>
- - - - - - - - - - -
Toggles whether the game has separate spell lists. Used in iwd2 for the
wider selection of spell books/types.


HasUsePointFlag = <bool>
- - - - - - - - - - - - -
Detail about how infopoints react when used (iwd2).


HasWeaponSets = <bool>
- - - - - - - - - - - - -
Does the game support several weapon sets, shield slots like iwd2?


IgnoreButtonFrames = <bool>
- - - - - - - - - - - - - -
If set to 1, buttons will ignore frame numbers as set in button CHU
resource, and always use frames 0, 1, 2, 3 from their associated
BAM. (PST, ...)


ImplicitAreaAnimBackground = <bool>
- - - - - - - - - - - - - -
If set to 1, area animations will have a different renderering order.
This is used to fix some animations in the IWD line of games


InPartyAllowsDead = <bool>
- - - - - - - - - - - - - -
If set to 0, the InParty() trigger will always return 0 for dead
PCs.


IWD2DeathVarFormat = <bool>
- - - - - - - - - - - - - -
Toggles whether the game uses the IWD2 death var format ("_DEAD%s").


IWDMapDimensions = <bool>
- - - - - - - - - - - - -
If set to 1, then the minimap dimensions are using the IWD specific ratio.


IWD2ScriptName = <bool>
- - - - - - - - - - - -
If set to 1, then areas always override the scripting name of the creature.
Normally there is an area flag for this.


JournalHasSections = <bool>
- - - - - - - - - - - - - -
Toggles whether the journal is split in multiple sections ala BG2.


KnowWorld = <bool>
- - - - - - - - - -
Determines whether the worldmap is already fully explored at the start.
All areas are marked as visited.


LevelslotPerClass = <bool>
- - - - - - - - - - - - - -
Toggles whether the game expects separate stats for class levels. All but
IWD2 have to share only 3.


LowerLabelText = <bool>
- - - - - - - - - - - -
Set to 1 if label text should be converted to lower-case.


MagicBit = <bool>
- - - - - - - - -
Toggles whether the magic item bit is used for marking items as
undroppable (iwd2 - yes).


MaximumAbility = 25|40
- - - - - - - - - - - -
Determines the maximum value of character abilities. Setting it to absurd
values might cause problems. Its value should be 40 for IWD2, 25 for all
other games.


MeleeHeaderUsesProjectile = <bool>
- - - - - - - - -
Toggles whether melee hitting headers should use their set projectile or not.
Disabled by default everywhere.


NoDropCanMove = <bool>
- - - - - - - - - - - -
Toggles whether undroppable items can be moved around.


NoNewVariables = <bool>
- - - - - - - - - - - -
Toggles whether the engine can create new variables in the Game structure.


NumRareSelectSounds = <number>
- - - - - - - - - - - -
Data derived setting describing how many rare select sounds a game uses.


OneByteAnimationID = <bool>
- - - - - - - - - - - - - -
If set to 1, then only the lower byte of the animation ID will be used 
to index the avatar.2da table. The upper byte is responsible for various
displaying properties (clown colour, transparency). This option is 1 for
original PST.  /warning/ Some other unrelated, but PST specific, features
are also controlled by this flag. One such example is the avatar icon
size in the saved games. If set to 1, then the avatar portrait won't be 
shrunk further. Otherwise the saved portrait bmp's will be shrunk 2:1.


OnScreenText = <bool>
- - - - - - - - - - -
Toggles whether the game displays text on the game area instead of the
message window (pst).


ProperBackstab = <bool>
- - - - - - - - - - -
Determines how many checks the backstabbing code does before treating an
attack as a backstab.


ProtagonistTalks = <bool>
- - - - - - - - - - - - -
If set to 1, only protagonist speaks with stranger for the whole party (PST).


PSTStateFlags = <bool>
- - - - - - - - - - - -
Toggles whether to interpret state flags like PST. For example, the
invisibility state flag is different there.


RedrawTile = <bool>
- - - - - - - - -
Force redraw of some overlay tiles??


RandomBanterDialogs = <bool>
- - - - - - - - - - - - - - -
Toggles whether banter dialogs are randomly activated (as in BG1)
rather than explicitly scripted (as in BG2).

RareActionSounds = <bool>
- - - - - - - - - - - - -
Toggles the count of available verbal constants for commands. Most games
had 3, but bg2 increased it to 7 by decreasing the amount of rare select
sounds.


ReverseDoor = <bool>
- - - - - - - - - - -
If set to 1, doors will have a reversed open/closed state. PST quirk.


ReverseToHit = <bool>
- - - - - - - - - -
Determines whether higher armor class is better (iwd2) or worse (the rest).


SaveForHalfDamage = <bool>
- - - - - - - - - - - - -
Toggles whether actors can save for half damage even when spells are not
set up that way traditionally. Used in PST via the resource effect field.


SelectiveMagicRes = <bool>
- - - - - - - - - - - -
Determines whether the magic resistance applies to all effects, even the
beneficial ones.


SimplifiedDisruption = <bool>
- - - - - - - - - - - - - - -
Use the ToBEx simplified "concentration" checks, ie. damage only disrupts
casting if enough was made ([1D20 + luck] < [spell level + damage taken]).


ShopsRechargeItems = <bool>
- - - - - - - - - - - - - -
If set, selling limited-use items to shops will refill their charge counter.


SmallFog = <bool>
- - - - - - - - - - -
Whether fog-of-war maintained in Map::ExploredBitmap is aligned with
map boundary (SmallFog=1, like in PST) or the fog is half a tile
larger in each of four cardinal directions (SmallFog=0, e.g. in BG2)


SoundFolders = <bool>
- - - - - - - - - - -
If set to 1, then there are separate directories for each player
character soundset. IWD/HOW/IWD2 specific.


SpawnIni = <bool>
- - - - - - - - -
Determines whether the game stores spawns in external INI files.


SpellBookIconHack = <bool>
- - - - - - - - - - - -
Enables the spell book icon name hack needed for ToB.


StartActive = <bool>
- - - - - - - - - - -
Toggles whether actors start active (script activated) or not.


StealIsAttack = <bool>
- - - - - - - - - -
Determines whether a detected stealing attempt causes the shopkeep to turn hostile.


StepTime = <number>
- - - - - - - - - -
Determines how long a single step is, i.e. how fast characters move. For measurements see #106.


StrrefSaveGame = <bool>
- - - - - - - - - - -
Determines whether the GameScript action SaveGame uses the int0 paramater
to lookup a strref, or to look in savegame.2da for the save game name.


TeamMovement = <bool>
- - - - - - - - - - -
If set to 1, the team always moves to the protagonist (first player).
This option is 1 for original PST.


UpperButtonText = <bool>
- - - - - - - - - - - - -
Set to 1 if button labels should be converted to upper-case (e.g. BG2)

DamageInnocentRep = <bool>
- - - - - - - - - - - - -
Set to 1 if damaging INNOCENT characters should result in a reputation hit.
Killing INNOCENT characters is not affected by this flag.
