Packaging Mods - Havens-Night/REEngine-Modding-Documentation GitHub Wiki
Overview:
This guide will walk you through the process of packaging a file replacement mod and a Lua script mod for REFramework (REF) with the intent of using Fluffy Mod Manager as the install method.
Packaging a File Replacement Mod:
Folder Structure:
MyModName/
├── modinfo.ini
├── thumbnail.png
└── natives/
└── [Original File Path]
└── ModifiedFile.extension
- MyModName: The root folder for your mod.
- modinfo.ini: Contains the metadata for your mod.
- thumbnail.png: An image representing your mod.
- natives: This path mimics the original structure of the game's files. You need to match the exact path of the file you are replacing.
Modinfo.ini Example:
[Mod Info]
name = My Texture Replacement
version = 1.0
author = Username
description = Replaces the default texture with a custom one.
screenshot = thumbnail.png
[Options]
category = Textures
addonfor = [Main Mod Name]
requirement = [Required Mod Name]
Zipping the Mod:
Once the folder structure is in place, zip the MyModName folder. The zipped file should contain the modinfo.ini, thumbnail.png, and the natives folder with your modified files.
Packaging a Lua Script Mod:
Folder Structure:
MyModName/
├── modinfo.ini
├── thumbnail.png
└── reframework/
└── autorun/
└── MyScript.lua
└── data/
└── MyScriptSettings/
└── MyScriptSettings.json
- MyModName: The root folder for your mod.
- modinfo.ini: Contains the metadata for your mod.
- thumbnail.png: An image representing your mod.
- reframework/autorun: Inside this folder, place your Lua script(s). The script will be automatically run by REF when the game launches.
- reframework/data: Place your json file(s) inside this folder if your script uses any for storing settings and alike.
Modinfo.ini Example:
[Mod Info]
name = My Awesome Script
version = 1.0
author = Username
description = This mod adds awesome functionality to the game.
screenshot = thumbnail.png
[Options]
category = Scripts
addonfor = [Main Mod Name]
requirement = [Required Mod Name]
Zipping the Mod:
Once your folder structure is set, zip the entire MyModName folder. Ensure that the zipped file contains the modinfo.ini, thumbnail.png, and the reframework/autorun/ folder with your Lua script inside.
Adding a Thumbnail:
- Create an image in PNG/JPEG format.
- Name the file
thumbnail.png. - Place the
thumbnail.pngfile in the root of your mod folder, alongside themodinfo.inifile.
When users browse mods in Fluffy Mod Manager, this image will appear as the thumbnail for your mod.