FOMM and FOMODs for Dummies 2: Making FOMODS
Posted by Zumbs on November 8, 2009
- Installing Mods
- Making FOMODS
- Basic FOMOD Scripting I
- Basic FOMOD Scripting II
- Working with Forms I
- Working with Forms II
- Load Order Magicks
This is the second tutorial in a series on how to get the most of the Package Manager in Fallout Mod Manager. The first tutorial focused on how to use the Package Manager from the mod users point of view. This tutorial will investigate the FOMOD file format and how you can make your own. Thus, it is mostly interesting for the mod author, though the mod user may find some parts of it interesting. To use this tutorial, you will need 7-zip.
The FOMOD file format
Browse to your Fallout 3/fomm/mods folder. The first thing you will notice is that next to the installed fomod files, there is an xml file with the same name. This xml file contains the information on what were installed, so do not tinker with it!
Try to rightclick a fomod file and chose 7-zip->Open Achive, you will see that it contains the mod files and a fomod folder – just like a fomod ready mod. This is because that a fomod is “just” a zipped fomod ready mod with the file extension changed to .fomod.
If you open the fomod folder, you will see at least two files, info.xml and script.cs, though there may very well be more. info.xml contains the description that the mod author added to the mod, and script.cs is the install script. I will get back to this later.
Customizing the FOMOD
You have made a mod, and you want to package it as a fomod. Open the Package Manager and add the folder or compressed file (as shown in the previous tutorial), but do not activate it.
In the InfoEditor, you can edit the name, author, version, website, etc. of the mod. You can also add a screenshot that is shown when the mod is highlighted in the Package Manager. The screenshot should be png format, as FOMM will import it, rename it to screenshot.png and place it in the fomod folder.
If you haven’t already, this may be the time to document your hard work!
The script controls how your mod is installed. When activate is pressed, the function PerformBasicInstall install every file in the mod file to the Data folder. The script is written in C# and uses the .NET framework. How to make more sophisticated install scripts will be saved for a later tutorial.
FOMOD or fomod ready?
As a mod author you have to decide if you should distribute your mod in a fomod version and a manual version or one fomod ready version. The advantage of using a fomod version is that it encourage mod users to use FOMMs Package Manager, which is great if your mod has numerous install options. On the other hand, not all people will use FOMM, or may prefer to tinker with your mod.
Personally, I prefer the middle road of distributing the mod as a fomod ready archive, but do what you prefer. If you chose this method of distribution, remember to extract the contents of the fomod file and compress it before uploading.