Arma: Mod Folders

From Bohemia Interactive Community
Revision as of 10:36, 21 February 2008 by Raedor (talk | contribs) (overwriting again)
Jump to navigation Jump to search

Introduction

Custom modfolders is a concept in Operation Flashpoint that allows addon makers and players to completely change most aspects of the game. They were introduced with the release of the resistance addon, which also became the first total conversion modification.

It has become a common practice to start mod folder names with a "@" in front of the name to distinguish them from other files in the Operation Flashpoint directory.

Making it Work

To load and use a modfolder it has to be added to the games startup parameter "-mod". This is easiest done by creating a new shortcut and editing the startup command.

If you for example are trying to load a mod named @test the startup command might look like this:

"C:\Program Files\Codemasters\OperationFlashpoint\FLASHPOINTRESISTANCE.EXE" -mod=@test

To load several mods separate their names with the ";" characther.

How it Works

The "-mod" parameter defines a path the engine will use to load data files when loading the game. It is important to remember that the RES mod will automatically be added first to the list of mod folders. This allows mod folders to change most aspects of the game without actually modifying the original files, it is also important to note that it allows a mod folder later in the path to override data in a mod folder earlier in the path. This only works when both addons have the same "requiredAddons" listed in CfgPatches. If one addon A eg has addon B in requiredAddons, addon A will always overwrite addon B, even if addon B is later in the mod folder row.

Example: If the game is started with "-mod=@Mod1LeastPrio;@Mod2MidPrio;@Mod3HighestPrio", the data is loaded in the following order:

1st: ArmA\dta
2nd: ArmA\addons
3nd: ArmA\@Mod1LeastPrio
4th: ArmA\@Mod2MidPrio 
5th: ArmA\@Mod3HighestPrio

In case of a conflict, the last loaded config overwrites the earlier ones.

Addon modfolders

Since most players today have a very large number of extra addons installed it has become a common practice to divide them into addon modfolders. The benefit of this practice is that the engine only has to load the addons in the modfolders specified by the player, lowering memory usage significantly. To create an addon modfolder simple pick a name and create the directories "@myname\Addons\" in the Operation Flashpoint directory. Next place all addons you want in this modfolder into this directory and add "@myname" to your "-mod" list when these addons are needed.

To make this easier you might wish to create several shortcuts loading different modfolders.

The main drawback of this technique is that it's hard for other players in multiplayer games to know what kind of changes you are playing with as modfolders can be used to make beneficial configuration changes to the game, in other words cheat.

Resources

Alternatively, you can use 'OFP Mod Selector', by Operator of Dissidence.

Kegetys' launcher available 'here'

Modfolder Tutorial on OFP.info

Mod-Ordner: wie und warum German tutorial from Clausewitz in Mapfact Forum