Modfolders

Mod folders or mod directorys. Children says folder, men say dir ;)

Introduction

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

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:\ArmA\ArmA.exe -mod=test

To load several mods separate their names with the ”;” character, like this:

C:\ArmA\ArmA.exe -mod=test1;test2;test3;test4;test5

You can create batch files (.bat) to start your OFP/ArmA. Here is one good full example of our bat file:

START "" /D"%CD%" /B "%CD%\beta\arma.exe" -mod=beta;x\terrain;x\coc;x\pmc -nosplash -world=empty -profiles=d:\ArmA

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 OFP: RES mod will automatically be added first to the list of mod folders (OFP only). A mod folder can contain all the data that your OFP / ArmA install folder can contain. This includes missions, campaigns, and addons subdirs, etc. The most common use of modfolders is to organize addon .pbo files.

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.

Conflicting addons / addon load order

In ArmA, it is possible for addons to modify classes in other addons, including those in the game's core “addons”. If the user installs two addons that try to modify the same property of a given class (for example, the model property of the basic soldier class), then obviously both addons can not work as intended (together in the same install, that is).

In these cases, there is almost nothing that the user can do to determine which addon takes “priority”. Inside of the addons themselves is a property called “RequiredAddons”, which determines addon load order, regardless of modfolder order.

 
arma/modfolders.txt · Last modified: 05-06-08 03:22 by snakeman
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki