Giter VIP home page Giter VIP logo

soh-mod-organizer's Introduction

SoH Mod Organizer

Ultimately, this is just a fancy renaming tool. It will keep track of your files original names for ease of use, and revert them for when you wish to add more. It's written in python, and uses numerical order (with the proper padding), to ensure that SoH loads the mods in your desired order. I've limited it to 999 mods at maximum, which frankly is an absurd amount already, and see no reason to increase this further.

If you wish to do so, you're more than welcome to do so yourself.

Usage

Follow the setup for the mods folder here in the Custom Assets section

Note for Ubuntu LTS users

You'll need to run

sudo apt install libsdl2-2.0-0

for it to work

Sorting mods

  • Open the program
  • Select browse
  • Navigate to the mods folder
  • Sort the list as desired with your keyboards arrow keys, or the arrow buttons within the GUI
  • Select the sort buttons
  • Enjoy the game!

Adding mods

At the moment due to the limitations of the current code, resorting isn't possible

  • Open the program
  • Select browse
  • Navigate to the mods folder
  • Select revert
  • Sort the list as desired with your keyboards arrow keys, or the arrow buttons within the GUI
  • Select the sort buttons
  • Enjoy the game!

Technical details

This python script, which you can just run directly rather than using the binaries, renames the files in a %03d format, writes the original names to a file, and uses this to retain both the order they were in, and what they were called, so that you can see what file corelates to what.

The original version of this mod organizer did a lot more, to try and provide ease of use, but there were number of bugs and edge cases that I simply could not resolve, and anyone is more than welcome to fix that code, as I have provided it within this repository.

The icons are loaded in through base64 byte streaming to allow for both the script, and the executables, to have their icons regardless of how it's run. The binary is created using pyinstaller and feeding that in through github actions, which unfortunately causes extreme bloating for the linux binary.

This code requires wxPython and setproctitle to run correctly, you can usually install them in pip. For the Arch users, and I think Nix users (IIRC), can get these from their package managers.

$ pip install wxpython setproctitle

Known issues

At the moment, if you're in KDE with wayland, the icon won't show up, there's no fix for this, hope KDE fixes it in 6, I tried about a dozen different methods to work around this limitation, and nothing practical seems to be possible at the moment. Gtk desktops should have no such issue.

soh-mod-organizer's People

Contributors

melechtna avatar

Watchers

 avatar

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.