Open General
by Luis Guzman


If you want to support
this site, please ...

Scenarios are the basic game files.
The scenario file defines the countries, sides and the units for each player. Scenarios can be configured to have 2,3 or 4 players, having each one a main country plus 4 support countries and one of the possible sides (Axe/Allied, or whichever designer named them...).

Scenarios also should define the "enviroment" data, like the map (either as image or tiled), the number of turns, the latitude (climate zine), initial weather, ground condition and the iconset to use the units. A title to show in game, an intro text/jpg file to explain the player some hints and optionally a custom music to play.

Scenarios must define the numbers of turns; the victory conditions and the size of the pool of transports of different type (Air, Naval, Rail or Helo) as well as other optional data.

Scenarios can include also a set of "options" that enable/disable certain rules, being the most important:

  • Default exp. level for new units
  • Default strength of new units
  • If units having "blow" ability, can actually blow in this scenario
  • If units having "Buil/Repair" ability, can actually build and/or repair in this scenario
  • If air units can be intercepted by ground units
  • If some ships can behave as Flaks
  • If barrage fire can be used in this senario
  • If air units are going to Air Missions instead
  • If scenario can limit the units to purchase (no more than XX units)
  • If first player turn is skipped
  • If units having range/spot as zero works as PG2, or they an only fire/spot the own hex
  • If line of fire is blocked behind Mountains, Forest and Cities
  • If line of sight is blocked/limited by some terrain
  • If roads will work on any terrain, or will be compatible with PG2
  • When reinforces arrive (at start of turn or when player is activated)
  • If port terrain behaves as Supply Hex or not
  • If naval units can deploy in ports or not
  • If paratroopers can misdrop randomly
  • If weather can change ground condition
  • if additional naval rules are in effect
  • If scenario must discard all options not compatible with PG2 engine (Pg2-Mode)

Scenarios can be played in different ways, depending on how they have been designed:

  • To play standalone
    Represent a single battle and one any side wins or last turn is reached, the scenario finishes returning to main menu. Can be played against the AI or against another player in "hot-seat" mode. At any time player can save the game, creating a XSAV file, that can be loaded later to continue playing.
  • To play by mail (PBEM)
    Represent a single battle played by 2 humans players. One player starts the scenario and whenever any player finishes his turn, the game is saved and returns to main menu. Then that save game (.XEML) might be sent to the other player by email. When the opponent receive the XEML file, he opens it to play his turn. Usually he replays the opponent last turn before playing his turn. And so on, until any wins or last turn is reached.
  • To play as part of a Campaign
    When playing as part of a campaign, scenarios are played according a sequence defined in the campaign file, and some units (the "core") are carried over next scenario. This kind of scenarios are played always against the AI. At any time the player can save the game, creating a XCSV file, that can be loaded later to continue playing.
Be aware that options defined in .CFG files can also modify the rules for any scenario, but pressing '?' on keyboard, game will pop up a dialog showing the rules that apply to the scenario loaded.

Scenarios must define also the units to be commanded by each player. (see below) and the prestige the players can add for taking some positions on map, or simple because each turn assigns any. Prestige is the "coin" to purchase units and other things.

When picking a scenario or campaign to play, player can set a prestige modifier, ruling how much prestige is actually given for capturing hexes or as turn assignment, as bigger the percentage as easier to play the game

Scenario Units

Scenarios should define the units for each player in game and when playing campaigns, the core units from previous scenario are added to the units defined in the next scenario.

Scenario units are instances of Efile units (thus inheriting all stats and attributes from Efile) but having additional stats that can change during the flow of the battle. For example the units will increase experience level whan combating and whenever the experience bars are increased the unit can raise a leader. Also the unit strength can change because casualties/reinforces, and the ammo and fuel is spent and refit. In addition the unit can get entrechment depending the terrain and the time the unit stays in it.

Some specific options/attributes can be assigned to scenarios units in design :

  • Unit can be assigned as a depot, allowing other unit to resupply when adjacent
  • Unit can be marked as void to reassing (recovering prestige by selling it)
  • Unit can be set as a reinforce to arrive at a given turn, either in map or in HQ
  • Unit can be assigned to icrease player prestige while alive
  • Unit can be set as healing adjacent units
  • Unit can be set as to blow the hex when killed
  • Unit can be set as to start scenario with a certain leader
  • Unit can be set as to start scenario with some attachments
  • Unit can be set as MustSurviveUnit (MSU), affecting Victory conditions when MSU conditions are enabled in Victory Conditions
  • Unit can be set as a new core unit, when playing campaigns

Scenario units, can be already deployed in map according an Order Of Battle (OOB) or placed at HeadQuarter (HQ) to be deployed by the player or AI.

When playing campaigns, player can be rewarded with a new free cost core unit, called a "prototype"


We could define a campaign as a serie of scenarios linked on a given sequence, adding specifics options to each scenario in addition to the own scenario's options. One special type of scenario is the "Choice" scenario, which allows the player to pick between different choices to play different paths.

Campaigns can define some additional media files, like videos, music, text with photos to create an additional enviroment to the player, at start of the campaign, when any scenario is finish, when any scenario is loaded to continue the campaign and whenever the campaign is won or lost.

Also the campaign rules the prestige, allowing to assign an initial amount of prestige (usually need to buy your core units) and the prestige awarded to players, according their result in previous scenario. That prestige awarded can be limited to a maximun in each scenario (the CAP)

These additional options can be defined for each scenario in the campaign:

  • Can force to lose all your core units
  • Can disable autorefit at start of scenario (by defualt core units are replenished when moved to next scenario)
  • Can disable autoresupply at start of scenario (by default they resupplied)
  • Can allow to upgrade and Overstrength units in Supply Hexes (SH)
  • Can force your core units to adopt the main country at start of scenario
  • Can define to skip updating score for the scenario (usually for Choice scenarios)
  • Can define to disable upgrading units at initial HQ
  • Can define to disable purchasing new unit
  • Can disable to sell prototypes

All the units purchased when playing a campaign become "core" units, although only the initial core and the prototypes are free. The rest of purchased, count as the "army cost" which affects the limit of prestige awarded at the end of each scenario, so as bigger is the cost of your army, the less prestige you will be awarded depending on each scenario cap.

Saved games

Depending on how a scenario is played, the file created when player (or engine) saves it, is one of these types:

  • .XCSV files
    When saving a scenarioplayed standalone and player saves the same presing 'Ctrl+S' in keyborad or using menu "Game options". At the end of player turn, the engine saves automatically as AUTOSAVE_OPENSCN.xsav.
  • .XEML files
    As the end of any player turn theplayer is prompted to save the game at that point as to send to the opponent. The proposed filename uses a certain structure agreed with PBEM players at start of development to make easier to handle saved turns.
  • .XCSV files
    When saving a scenario played in a campaign and player saves the same presing 'Ctrl+S' in keyborad or using menu "Game options". At the end of player turn, the engine saves automatically as AUTOSAVE_OPENCAM.xsav. Also at the end of each scenario, engine saves automatically using a compound filemane make up of the campaing file plus the scenario-played-number-in campaign plus the result plus the prestige modifier (with suffix .xcsv)

Logging the game while playing

There is an option to log the accions taken by players/AI, that allows to replay any scenario or part of it. All commands issue to units are stored in a .XLOG file than can be loaded later to watch how the game happened. This option can be enabled or disabled from User Settings Dialog

Also the AI turn can be logged to a text file (ai_turn.log) basically for testing purposes. Also can be enabled or disabled from User Settings Dialog.