Advanced package configuration
Creating balanced mods often requires more complex settings of the mod package. Settings for the package are specified in the .info file.
Dependency configuration
You can configure dependencies on existing packages using the dependency
block.
The mod will use the original game's resources if the "Men of War II, main package" ID is specified in the dependency
block. Otherwise, Men of War II game resources will not be included in the mod.
If a mod is dependent on another mod, a dependency block must be added specifying the ID of the required mod. Multiple dependency blocks can be included to determine the sequence of package connections. Should a mod require several other mods to function properly, a sequence of dependency blocks listing the necessary mod IDs in the order of their connection should be created.
Resources are loaded and modified in the order specified by these blocks in the .info file. The content and functionality of the target files depend on the correct order of these dependency blocks
Any discrepancies in the order can result in errors or conflicts during resource loading
Resource exclusion
delete_global
Specifies a list of resources that should be ignored by the game when activating resources from the global folder.
delete_scene
Specifies a list of resources that should be ignored by the game when activating resources from the scene folder.
Enforced resource activation
always_activate_scene
Always activates the 'scene' section of the package if the 'global' section of this package is active. By default, the 'scene' section is activated if a map located in the 'global' section of this package is loaded.
always_activate_global
Indicates that this package changes global game settings. If a package with the always_activate_global parameter is enabled in the game, this fact is always noted in the list when creating a host, in saving the game, and similar instances.
Package compatibility checks
incompatible <package id>
Used to specify the IDs of packages that are incompatible with this package. The game will disable any package with the specified ID when this package is activated
min_core_version <version>
The minimum game version with which the package is compatible. If this parameter is not specified, the corresponding check is absent
max_core_version <version>
The maximum game version with which the package is compatible. If this parameter is not specified, the corresponding check is absent
hash
The hash parameter value allows for pre-determining that the package content is the same among different users and on the server when playing together. The hash parameter value is automatically updated when the package is published in the Workshop
client_only
The package content is available only on the client, it is not loaded on the server and does not affect gameplay
obsolete
Allows hiding package resources (entities and textures) in the lists of available resources in the editor
Last updated