Difference between revisions of "Arma: Mod Folders"

From Bohemia Interactive Community
Jump to navigation Jump to search
(cleanup, technical details)
Line 1: Line 1:
 
[[Category:Operation Flashpoint: Startup Parameters|M]]
 
[[Category:Operation Flashpoint: Startup Parameters|M]]
 +
 
===Introduction===
 
===Introduction===
  
Custom modfolders are folders that can contain theme addons for easy selection, or Data files which change general parameters of the game. If you have OFP:Resistance, your \RES folder is an example of a modfolder. This feature was added in version '''1.75''' with the Resistance upgrade, prior to the '''1.75''' upgrades addons where put in the '''addons''' folder.  
+
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]].
  
Some Flashpoint players prefer to put an "@" in front of each modfolder's name, so they then get listed at the beginning of the main Flashpoint folder, and can be easily separated from essential game folders.
+
It has become a common practice to start mod folder names with a "@" in fron of the name to distinguish them from other files in the Operation Flashpoint directory.
  
 
===Making it Work===
 
===Making it Work===
To use Modfolders you have to create a shortcut to your OFP executable, and in the path add the following parameter: -Mod=name
 
  
"C:\Program Files\Codemasters\OperationFlashpoint\FLASHPOINTRESISTANCE.EXE"
+
To load and use a modfolder it has to be added to the games startup parameter "-mod".  
    [[-nomap]] [[-nosplash]] -mod=@Editor,@Winter,@Hyk,@bas
+
This is easiest done by creating a new shortcut and editing the startup command.
  
in other words, commarise all the different mods (addons) you want for this session (often only one)
+
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 search path the engine will use to locate 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 earlier in the search path to override data in a mod folder later in the path.
 +
 +
Example:
 +
If the game is started with "-mod=@wgl;@test" this would be the resulting search path for the 'm2a2.pbo':
 +
 +
1: @test\addons\m2a2.pbo
 +
2: @wgl\addons\m2a2.pbo
 +
3: RES\addons\m2a2.pbo
 +
4: addons\m2a2.pbo
 +
 +
The search will end at the first match.
  
 
=== Addon modfolders ===
 
=== Addon modfolders ===
  
One of the most useful things you can do with modfolders is separate out your, by now, humungous and ever increasing addon.pbo's. The days of just placing them in the ~Addons folder are over. No engine can cope with that load.
+
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.  
  
Here is an example of a folder tree
+
To make this easier you might wish to create several shortcuts loading different modfolders.
  
mods\
+
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.
mods\Bas
 
mods\Finland
 
mods\HYK
 
mods\anything you like
 
  
Selectively you can use one, or several of them for the mission(s) you want to play by just creating seperate shortcuts for each combination.
+
===Resources===
  
===Resources===
 
 
Alternatively, you can use [http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?act=ST;f=4;t=47702 'OFP Mod Selector'], by Operator of Dissidence.
 
Alternatively, you can use [http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?act=ST;f=4;t=47702 'OFP Mod Selector'], by Operator of Dissidence.
  
 
Kegetys' launcher available [http://www.andrew.nf/OFP/Tools/launcher218.zip 'here']
 
Kegetys' launcher available [http://www.andrew.nf/OFP/Tools/launcher218.zip 'here']

Revision as of 09:07, 12 September 2006


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 fron 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 search path the engine will use to locate 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 earlier in the search path to override data in a mod folder later in the path.

Example: If the game is started with "-mod=@wgl;@test" this would be the resulting search path for the 'm2a2.pbo':

1: @test\addons\m2a2.pbo
2: @wgl\addons\m2a2.pbo
3: RES\addons\m2a2.pbo
4: addons\m2a2.pbo

The search will end at the first match.

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'