Mission.sqm: Difference between revisions
Lou Montana (talk | contribs) (Page (re)creation) Tag: Removed redirect |
Lou Montana (talk | contribs) m (Add more page structure) |
||
Line 3: | Line 3: | ||
[[Mission.sqm]] is the file generated by the | [[Mission.sqm]] is the file generated by the [[Mission Editor]]; it contains mission information (date, time, weather), object placement information (position, direction and other parameters) as well as every other setting that can be set from the editor (respawn type and duration, etc). | ||
Line 32: | Line 32: | ||
== [[Eden Editor]] format == | |||
As seen above, the first line is <tt>version</tt>, then come: | As seen above, the first line is <tt>version</tt>, then come: | ||
Line 48: | Line 46: | ||
** <tt>class Entities</tt> - the various entities present in the <tt>Mission</tt> | ** <tt>class Entities</tt> - the various entities present in the <tt>Mission</tt> | ||
=== class EditorData === | |||
{{wip}} | {{wip}} | ||
===== class Entities ===== | === binarizationWanted === | ||
=== addons === | |||
=== AddonsMetaData === | |||
=== randomSeed === | |||
=== ScenarioData === | |||
=== class CustomAttributes === | |||
=== class Mission === | |||
Constituted of two sub-entries [[#class Intel|class Intel]] and [[#class Entities|class Entities]], | |||
This structure applies to [[#class Intro|class Intro]], [[#class OutroWin|class OutroWin]] and [[#class OutroLoose|class OutroLoose]] as well. | |||
==== class Intel ==== | |||
==== class Entities ==== | |||
===== Flags ===== | |||
* KeepHorizontal = 1 | * KeepHorizontal = 1 | ||
* IsGroupLeader = 2 | * IsGroupLeader = 2 | ||
Line 59: | Line 72: | ||
* ContainsArea = 8 | * ContainsArea = 8 | ||
== [[2D Editor]] format == | |||
First line is <tt>version</tt>, then four classes of data, all of the same structure - they are: | First line is <tt>version</tt>, then four classes of data, all of the same structure - they are: | ||
Line 67: | Line 81: | ||
* class OutroWin | * class OutroWin | ||
* class {{sic|OutroLoose}} | * class {{sic|OutroLoose}} | ||
=== class Mission === | |||
It is filled as such: | It is filled as such: | ||
Line 97: | Line 113: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== class Groups ==== | |||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
class Groups | class Groups |
Revision as of 19:14, 21 June 2020
Template:unsupported-doc Template:SideTOC
Mission.sqm is the file generated by the Mission Editor; it contains mission information (date, time, weather), object placement information (position, direction and other parameters) as well as every other setting that can be set from the editor (respawn type and duration, etc).
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 |
|
2D |
12 |
| |
53 |
|
3D |
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
binarizationWanted
addons
AddonsMetaData
randomSeed
ScenarioData
class CustomAttributes
class Mission
Constituted of two sub-entries class Intel and class Entities, This structure applies to class Intro, class OutroWin and class OutroLoose as well.
class Intel
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
class Mission
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;
};
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;
};
};
};
};