What |
application_config.xml |
---|---|
Description |
Configuration of the FEWS Game application |
schema location |
application_config.xsd |
In the application configuration, global settings for the FEWS Game which are valid for all scenarios/scripts can be specified.
The structure of the XML-schema for the application configuration is as follows:
The keys in the XML-schema are explained in the figure above. Some of the keys are explained in more detail here.
Locale
must be a 2-letter abbreviation of the language in which the game will be played (e.g. EN for English or NL for Dutch).HideYear
to true. FEWS CONFIG In order to also hide the year within FEWS, the dateTimeFormat
must be configured accordingly, in the dateTime
section of the FEWS configuration file Explorer.xml
.FewsExecutable
must contain the (absolute or relative) path to the FEWS executable, which is usually located in the bin
-directory of a FEWS release. Je gebruikt een kopie van het operationele systeem (?) met een paar config aanpassingen. On the Linux platform, the FEWS executable is the shell script fews.sh
.FewsRegionDir
is the (absolute or relative) path to the so-called region directory of FEWS. The region directory contains the FEWS configuration (the Config
-subdirectory) and the global properties for the FEWS configuration. The FEWS Game is generic and can be used with any FEWS configuration. Note that on a Windows system, the FEWS region directory is also specified in the so-called jpif
-file that is located in the bin
-directory of the FEWS system. This specification must be consistent with the one in FewsRegionDir
.FewsSystemTimeUpdateInMinutes
. FEWS CONFIG Note that the cardinalTimeStep
, as configured in the dateTime
section of the FEWS configuration file Explorer.xml
, should be consistent with FewsSystemTimeUpdateInMinutes
. Indeed, it makes no sense to set it in the FEWS Game to 1 minute, while it is set to 1 hour in the FEWS configuration (although this will not cause any problems in the game).hideExternalHistoricalAfterSystemTime=true
in the file global.properties
, which is located in the FEWS configuration directory.ScenarioDatabasePath
contains the (absolute or relative) path to the scenario/script database.FileAssociations
, programs can be specified with which files with indicated extensions must be processed. Default file associations are used if nothing is specified here. Configure location of pdf reader etc? Moet deze optie ook in het voorbeeld terug komen?FewsPiPortNumber
. This port number must be in the range of port numbers that is specified in the FEWS configuration in Explorer.xml
in the directory SystemConfigFiles
, e.g.
<piServicePortRange start="8100" end="8200"/> |
ServerHostName
and ServerPort
, respectively. In a stand-alone FEWS Game these keys are not relevant.<?xml version="1.0" encoding="UTF-8"?> <Config xmlns="http://localhost" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost ../../../../../xml-schemas/application_config.xsd"> <Name>Example of application configuration</Name> <Locale>EN</Locale> <HideYear>true</HideYear> <FewsExecutable>FEWS\bin\FewsNoordzee_SA.exe</FewsExecutable> <FewsRegionDir>FEWS\FewsNoordzee_SA</FewsRegionDir> <FewsSystemTimeUpdateInMinutes>1</FewsSystemTimeUpdateInMinutes> <ScenarioDatabasePath>ScenarioDatabase</ScenarioDatabasePath> <FileAssociation extension="pdf">C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe</FileAssociation> <FewsPiPortNumber>8100</FewsPiPortNumber> |