Creating mod
Last updated
Last updated
Before starting to work on a mod, we recommend familiarizing yourself with the basic principles of mod creation and the resource architecture in Men of War II.
Created and modified game resources in the editor are automatically saved to the "Editor local changes" folder, located in the editor's "Working Packages" folder.
Create a package for the mod and connect it to the game.
Transfer both the new and modified resources from "Editor local changes" to the mod package.
Configure the package properties.
Test the mod.
Publish in the Workshop.
Srart the Game
Open the Options and select the PACKAGES tab
Click the "Create" button (located below the list of packages).
Enter a name for your new mod package in the dialog box that appears and click "OK".
The package name will appear in the general list of packages.
Enable the mod package to the game and editor. Check the box in the line with name of the created package and click the "Apply" button.
Hovering over the package displays a popup window with basic information about the package:
Package type
ID
Path to the package folder
Creation date and author
At this step, the mod package is created and enabled. The package's resources are available for loading in the game and the editor.
Open the "Working Packages" folder in File Explorer and find the folder of the created raw package.
Transfer resources from the "Editor local changes" folder to the created package's folder, maintaining the file placement structure.
After moving the mod resources to the package, the editor will automatically save changes to the mod's resources in its package.
The "Editor local changes" folder only keeps new resources and original game resources modified by the editor. If necessary, transfer resources from the "Editor local changes" package to the mod package, maintaining the file placement structure.
At this step, both the new and modified resources are in the mod package. The next step is to configure the mod package.
Place an image of the mod cover at the root folder of the mod package. A file must be named preview, saved in jpg format and sized 512x512.
At the root of the mod folder is an .info file where you need to configure the mod package parameters.
id
Unique package identifier, automatically generated when you click "Create" on the "Packages" tab in "Game Settings"
legacy_id
After publishing the raw package in the Steam Workshop, the id parameter is replaced by the legacy_id parameter, and the Package changes its type from Raw to Workshop Item
name
Package name
author
Package author
order
Order in the package list. By default, it is 0 and displayed at the top of the package list
default_disabled
The package is disabled by default until the player applies it in the Game Options.
It is recommended to set this parameter for all mods.
dependency
Sets dependencies on already existing packages. For the mod to use the resources and parameters of the original game as a base, you need to specify a dependency on the original game package by stating its id in the dependency block. The block can be used repeatedly to set the sequence of connecting packages for the correct operation of the mod.
Start the game.
Open the Options, select the PACKAGES tab and make sure the mod package is enabled.
Exit the game Options to the "Main Menu".
Create a session on a map from the mod and test the map and mission.
Fix any found bugs and errors.
Once your mod is tested and ready, you can publish it to the Steam Workshop
Open the game Options and select the Packages tab
Select the name of your mod package from the list and click the "Publish" button - the mod will be added to the Workshop in "invisible" mode
Keep your mod "invisible" or private until you are ready to make it public, allowing for further testing or private sharing.
Go to the mod page in Workshop to do this select its name from the package list and click the "Workshop" button.
You can find the link to the mod page in the description window that appears under the cursor when hovering over the mod name field in the package list.
Configure the appearance of the mod page using the Workshop tools.
Once you have finished working on the mod update, you need to publish the update in the Workshop.
Start the game and go to the Packages tab in the Game Options.
Select the name of the package for which you need to publish updates from the list and click the "Update" button - any package updates will be published in the Workshop.
You can add new files to the mod at any time, working with the mod folder located in the "Working Packages" folder.