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
- You can do so with:
- 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.
- This will save files in the current working directory, to specify another directory use the
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)
Built Distributions
Close
Hashes for BL2_skingen-1.2.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f017e1f03890c06127446b81cc100efb92ad9dcbcb51d3c9429bd592e33df408 |
|
MD5 | e91baeaf75b7472499906d7c8576dc9d |
|
BLAKE2b-256 | 218fc27d06d6cb0bd504b7b4c1df816b098fe0d0c3c5c82fbecac18bc1142df2 |
Close
Hashes for BL2_skingen-1.2.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4cccfd4e1f19685e0b8f100eeeb3f28c4b7456a47641d9ff5bb7b016cc3349 |
|
MD5 | 59b5a69a7d5e95fe3225119928762167 |
|
BLAKE2b-256 | 57200c36c18945e099a2f191b7a010f465cab6f9897c3657b27a6d72e4ac07e0 |