Code Monkey home page Code Monkey logo

paradoxpatcher's People

Contributors

parkerokonek avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

songorlick

paradoxpatcher's Issues

Diff Match Patch Doesn't Always Fail

Diff Match Patch will reliably patch conflicting file changes without issue. This causes some information to be lost and for malformed files.

For example, patching Bob to Bib and Bob to Beb results in Bob being Beb, not a failure to patch.

Multiple Encodings for Sources Garble Localization

In Ck2, text files for mods are expected to be in Windows-1252 encoding, certain mods or base game files (on Linux or MacOS) may be encoded in UTF-8. In the base game and with unmerged mods this poses no issue, but all mods need to be transliterated into a standard encoding (UTF-8) for doing file comparisons before being exported into the preferred encoding for each game.

Allow Users to Select their Mods

For the GUI, there should be a mod organizer style screen where users can enable which mods they wish to use. As the purpose of the program is to resolve conflicts, not do load order, no load order will be available.

Add New Functionality to Paradox mods

Allow for stand-alone files in mod structure or in-line commented out code in otherwise typical Paradox mod files that allow for:

  • defining flags/mod presence (DEFINE flag_name, LET a = 0, INCR 0, SET a = 3, etc)
  • Making conditionals based off the presence of these flags or values (IFDEF, IFNDEF, IF, ELSE, NOR, etc)
  • execute regex or uncomment/comment specific strips of code scoped to certain files or folders (REPLACE orthodox heterodox)

Support for New Paradox Game Launcher

Currently the tool is built around Paradox's old launcher, this is fine for games like CK2 or Vic2, but will need to be changed to support games like EU4. This may be possible with a weird config set-up with the current tool, but this should be built-in functionality.

Clean-up Function Parameters, Standardize Arguments and Options

Currently function parameters are a bit of a mess and could use standardization. At minimum all public facing options should only really call the current configuration option. The Arguments for a per run should either be solidified as the main application options (and include the configuration in them) or be integrated with the current configuration with a builder or similar.

Allow Reading of Diffs

Allow mods to contain diffs or patches of vanilla files instead of the literal file text.

Remove Pyo3 / Python & DMP dependency

There does exist an implementation/wrapper for Diff Match Patch for Rust, here.

Need to try rewriting with this crate to reduce the number of explicitly installed requirements for users, and decreasing over all code spaghetti factor.

Look into Parallelizing

Rayon is one library for data parallelism that could be useful for speeding up the merging and conflict detection on mods. Not sure that this would have any improvement for indexing or generating the initial mod list, that is mostly file IO.

Update Tests for Library

Tests need to be updated to reflect newly added functionality and to cover all of main library files.

Inconsistency When Loading Folder Mods

Had some issues when merging files from mods in folders (Paradox Forums). Will need to see if there is an issue in the directory walking code, single file read code, or the all path read code.

Finish and Polish GTK Interface

To-do functionality:

  • Conflict scanning
  • Displaying which mods conflict where
  • UI for adding and modifying game presets
  • folder search dialog for patch output
  • warnings for when mods fail to load/patch
  • save user load order to launcher files

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.