Jump to content

Mod packaging script utility.


nani
 Share

Recommended Posts

Made a script that I think would be useful for the modders out there.

What it does:

  • Creates a mod pyromod file
  • Creates a mod zip file
  • Creates a backup file of the original folder
  • Names all generated files with the corresponding mod.json version defined
  • Does some sanity checks.
  • You can define a .gitignore file on the root folder of the mod

Requirements:

  • Python 3.8.0 or above
  • Optional: gitignore_parser (to install use pip3)

How to use:

  • Execute with
    python3 make_pyromod.py
    from the command line and read options outputted.

The three arguments: "origin", "destination" and "backup" default values are hard-coded as is easier for me this way. You can change them to your liking.

make_pyromod.py

Edited by nani
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...