#mod #factorio #source #install #directory #linux #pack

app rfmp

A program to pack and install Factorio mods from source code quickly

10 releases (3 stable)

new 1.2.0 Apr 8, 2024
1.1.0 Dec 25, 2023
1.0.0 Jun 7, 2023
0.1.17 May 7, 2023
0.1.12 Jan 27, 2023

#75 in Compression

Download history 10/week @ 2023-12-20 1/week @ 2023-12-27 35/week @ 2024-02-21 65/week @ 2024-02-28 19/week @ 2024-03-06 9/week @ 2024-03-13 1/week @ 2024-03-27 92/week @ 2024-04-03

108 downloads per month

MIT license

11KB
167 lines

Rust Factorio Mod Packer

Idea behind this project was to create a compiled and fast replacement to my shell script that packed factorio mods (very useful in my Factorio mod development pipeline). This program packs all files in current direcory (excluding unix-style hidden directories to ignore git stuff) into a properly-formatted mod and puts it into mods folder ($HOME/.factorio/mods on Linux or %AppData%\Factorio\mods on Windows). Works on Linux and Windows, builds are included on Releases page. MacOS support isn't planned.

All versions are available on GitHub releases page.

Mod File Structure Example

<mod_name> and <mod_version> are "name" and "version" values from mod's info.json file.

  • <mod_name>_<mod_version>.zip
    • <mod_name>_<mod_version>
      • info.json
      • data.lua
      • control.lua
      • etc

Speed

This program manages to outperform (i.e. do the job faster) my 7zip-based build script on my machine (Ryzen 5 3600). This is achieved by using library mtzip (also made by me). It splits the file compression jobs into tasks that can be run concurrently.

Dependencies

~2–12MB
~111K SLoC