Civ4PlayerOptionInfos
The Civ4PlayerOptionInfos file defines the options that are applied to every game based on user profile (such as show friendly moves, quick combat, etc.). Changes to this file must be reflected in the SDK. However, there are three blank options left for modders that can be enabled in GlobalDefines.
All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.
Tags
Headers
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.
Tag Name | Description |
---|---|
PlayerOptionInfos | This tag surrounds the other entries in the file |
PlayerOptionInfo | Main bracket for each entry |
Text
Tag Name | Description |
---|---|
Type | How the option is referred to in other files |
Description | The text for the option in the game |
Help | Mouse-over text for the option |
Boolean
All of these can either be 1 (on, or true) or 0 (off, or false). Be careful, as you can wind up with a double-negative, which the game will interpret as "True".
Tag Name | Description |
---|---|
bDefault | Whether the option is on by default |
Example
In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.
<PlayerOptionInfo> <Type>PLAYEROPTION_ADVISOR_POPUPS</Type> <Description>TXT_KEY_PLAYER_OPTION_ADVISOR_POPUPS</Description> <Help>TXT_KEY_PLAYER_OPTION_ADVISOR_POPUPS_HELP</Help> <bDefault>1</bDefault> </PlayerOptionInfo>