Difference between revisions of "CMF3 Engine: script mod"
Jump to navigation
Jump to search
(Created page with "The '''script_mod.hpp''' file contains meta information about the framework like the prefix, the framework version, and the minimum required Arma 3 and CBA version. It is alwa...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The '''script_mod.hpp''' file contains meta information about the framework like the prefix, the framework version, and the minimum required Arma 3 and CBA version. It is always located in the main component of a CMF3 framework. It crafts "script safe" version numbers from [[CMF3 Engine: script_version.hpp]] file. | The '''script_mod.hpp''' file contains meta information about the framework like the prefix, the framework version, and the minimum required Arma 3 and CBA version. It is always located in the main component of a CMF3 framework. It crafts "script safe" version numbers from the [[CMF3 Engine: script_version|script_version.hpp]] file. | ||
It uses the following format: | It uses the following format: | ||
Line 24: | Line 24: | ||
#define REQUIRED_VERSION 2.08 | #define REQUIRED_VERSION 2.08 | ||
#define REQUIRED_CBA_VERSION {3,15,6}</nowiki>}} | #define REQUIRED_CBA_VERSION {3,15,6}</nowiki>}} | ||
[[Category:CMF3: Engine Functionality]] |
Latest revision as of 23:31, 17 December 2022
The script_mod.hpp file contains meta information about the framework like the prefix, the framework version, and the minimum required Arma 3 and CBA version. It is always located in the main component of a CMF3 framework. It crafts "script safe" version numbers from the script_version.hpp file.
It uses the following format:
#define PREFIX /* framework prefix */
#include "script_version.hpp"
#define VERSION MAJOR.MINOR
#define VERSION_STR (str MAJOR)+"."+(str MINOR)+"."+(str PATCHLVL)+"."+(str BUILD)
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
#define REQUIRED_VERSION /* Minimum required Arma 3 version (as an integer) */
#define REQUIRED_CBA_VERSION /* Minimum required CBA Version (as an array) */
A complete script_mod.hpp file can look like the following (taken from CMF3):
#define PREFIX cmf
#include "script_version.hpp"
#define VERSION MAJOR.MINOR
#define VERSION_STR (str MAJOR)+"."+(str MINOR)+"."+(str PATCHLVL)+"."+(str BUILD)
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
#define REQUIRED_VERSION 2.08
#define REQUIRED_CBA_VERSION {3,15,6}