Skip to main content

Utility to generate png files from Borderlands 2 in-game skin files.

Project description

Borderlands 2 Skin generator

At the moment, this project is a stub and barely functional.

How to use:

  • Download and extract the repo somewhere.
  • Make sure you have the following python packages installed: Cython, Pillow and numpy.
    • You can do so with: pip install -r requirements.txt
  • Compile the .pyx files to binaries by running setup.bat. (For manual compiling check Manually compiling cython modules.)
  • To extract the packets from Borderlands 2 use UE Viewer/umodel. The filepaths are hardcoded to locate the files the way UE Viewer extracts them.
  • Navigate a terminal to where you cloned the repository (The directory skingen.py is located in).
  • Run the program, for example: py skingen.py -in C:\full\path\to\folder\CD_Assassin_Skin_OrangeD_SF
    • This will save files in the current working directory, to specify another directory use the -out <filepath> command line argument.
    • For help on other options, run py skingen.py without any arguments.

If a result did not conform to your expectations (and it's damn likely it won't), feel free to open up an issue.

Manually compiling cython modules

You will need Cython to compile the .pyx files at bl2_skingen/imaging to binary files suited for your system. Only ue_color_diff.pyx and multiply_sqrt.pyx are needed at the moment. Navigate a terminal to the folder and run:

  • build.py build_ext --inplace

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BL2_skingen-1.2.3.tar.gz (333.1 kB view hashes)

Uploaded Source

Built Distributions

BL2_skingen-1.2.3-cp38-cp38-win_amd64.whl (177.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

BL2_skingen-1.2.3-cp37-cp37m-win_amd64.whl (175.7 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page