Code Monkey home page Code Monkey logo

paradoxpatcher's Introduction

Parker's Paradox Patcher

GUI Build CLI Build Tests

This project is mostly aimed at generating large Crusader Kings 2 modpacks for private use. The patcher reads the settings.txt file of the game and uses those mods as the list to determine mod conflicts and what mod content to package. By default, the patcher will only generate a mod that contains the files which conflicted and an accompanying .mod description file that lists its dependencies to ensure load order.

These patches seem to work for most mods, but run into issues specifically with overhaul mods, or other mods which conflict in the same files as their specified replacement paths.

Using the extract flag is recommended, as it ensures that every person using the modpack has identical data and only needs to enable a single mod.

Building

The current state of the project is experimental at best. Requires rust's cargo/rustup to compile.

Install cargo and clone the repository.

CLI Interface

cd /path/to/repository
cargo build --release --features command-line --bin merger-cli

GUI Interface

Requires the GTK-3 dev libraries for your OS or distribution.

On Arch:

# pacman -S gtk3

On Ubuntu:

# apt install libgtk-3-dev

On Windows:

Install the gtk3 libraries using MSYS2

After installing the dependencies run cargo using the following flags.

and then build using:

cargo build --release --features gui-interface --bin merger-gui

Usage

CLI Usage

USAGE:
    paradoxmerger [FLAGS] [OPTIONS] <patch_name> [game_id]

FLAGS:
    -d, --dry-run    list file conflicts without merging
    -x, --extract    extract all non-conflicting files to a folder
    -h, --help       Prints help information
    -V, --version    Prints version information
    -v, --verbose    print information about processed mods

OPTIONS:
    -c, --config <CONFIG_FILE>    configuration file to load, defaults to current directory

ARGS:
    <patch_name>    name of the generated mod
    <game_id>       game in the config to use

An example merging mod conflicts for CK2 using the supplied config file.

cd PATH/TO/MERGER
paradoxmerger "Merged Patch" CK2

Appendix

Diff Match Patch: library used for diffing mod files and patching them together

paradox-tools: a set of Paradox modding utilities written in Ruby

cwtools: a library for manipulating Paradox scripts written in F#

Pdoxcl2Sharp: a C# library for parsing and manipulating Paradox scripts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.