Mission.sqm

From Bohemia Interactive Community
Revision as of 18:37, 21 June 2020 by Lou Montana (talk | contribs) (Page (re)creation)
Jump to navigation Jump to search

Template:unsupported-doc Template:SideTOC


Mission.sqm is the file generated by the in-game Mission Editor.


Versions

SQM version can be found by opening the file with a basic text editor: it is the very first line of the file, to format version=version; - correspondence below:

Version Game Format
11
  • Operation Flashpoint
  • Operation Flashpoint: Resistance
  • Arma
  • Arma 2
  • Arma 2: Operation Arrowhead
  • Take On Helicopters
2D
12
53 3D


File Format

Eden Editor format

As seen above, the first line is version, then come:

  • class EditorData - Eden Editor settings, like camera position, entity id
  • binarizationWanted - 0 to output the mission in plain (non-binary) text
  • addons - list of required addons
  • AddonsMetaData - user-friendly required addons' information
  • randomSeed - seed for randomisation, most likely used by random
  • class ScenarioData - scenario's meta data (author name) as well as respawn settings (respawn type, etc)
  • class CustomAttributes - advanced scenario attributes (such as respawn templates, revive, etc)
  • class Mission - contains the following classes:
    • class Intel - date/time and weather settings
    • class Entities - the various entities present in the Mission

class EditorData

Template:wip

class Entities
Flags
  • KeepHorizontal = 1
  • IsGroupLeader = 2
  • IsSnappedToSurface = 4
  • ContainsArea = 8

2D Editor format

First line is version, then four classes of data, all of the same structure - they are:

  • class Mission
  • class Intro
  • class OutroWin
  • class OutroLoosesic

It is filled as such:

// addons required to run the mission
// Once you are done creating/updating your mission, it is always good practice
// to check the mission.sqm for presence of unwanted addons in "addOns" and "addOnsAuto"" arrays.
// They contain "CfgPatches" classes of used addons.
// Apart from "class Mission", list of addons is present also in "Intro", "OutroWin" and "OutroLoose" classes.
addOns[]=
{
	"cacharacters",
	"desert"
};
addOnsAuto[]=
{
	"cacharacters",
	"desert"
};
randomSeed=9361411; // the random seed, most probably used to generate random numbers
class Intel // pretty self-explanatory
{
	startWeather=0.100000;
	forecastWeather=0.300000;
	year=2007;
	month=6;
	day=7;
	hour=8;
};

then comes the class Groups:

class Groups
{
	items=1;
	class Item0
	{
		side="WEST";
		class Vehicles
		{
			items=1;
			class Item0
			{
				position[]={2606.808838,14.685581,2408.266602}; // X, Z, Y
				id=0;
				side="WEST";
				vehicle="SoldierWB";
				player="PLAYER COMMANDER";
				leader=1; // group leader
				skill=0.600000;
			};
		};
	};
};