Creating mod

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.

Steps to сonnect new and modified resources to the game via mods

  1. Create a package for the mod and connect it to the game.

  2. Transfer both the new and modified resources from "Editor local changes" to the mod package.

  3. Configure the package properties.

  4. Test the mod.

  5. Publish in the Workshop.

Creating a mod package

  1. Srart the Game

  2. Open the Options and select the PACKAGES tab

  3. Click the "Create" button (located below the list of packages).

  1. 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.

  1. 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.

Transferring new and modified resources to the mod package

  1. Open the "Working Packages" folder in File Explorer and find the folder of the created raw package.

  2. 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.

Configuring the mod package

Adding a preview image

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.

Package properties

At the root of the mod folder is an .info file where you need to configure the mod package parameters.

ParameterDescription

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.

Testing mod

  1. Start the game.

  2. Open the Options, select the PACKAGES tab and make sure the mod package is enabled.

  3. Exit the game Options to the "Main Menu".

  4. Create a session on a map from the mod and test the map and mission.

  5. Fix any found bugs and errors.

Once your mod is tested and ready, you can publish it to the Steam Workshop

Steam Workshop

Publishing the mod:

  1. Open the game Options and select the Packages tab

  2. 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.

  1. 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.

  1. Configure the appearance of the mod page using the Workshop tools.

Updating the mod

Once you have finished working on the mod update, you need to publish the update in the Workshop.

  1. Start the game and go to the Packages tab in the Game Options.

  2. 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.

Last updated