Skip to content

excellent-ae/Hades-Texture-Packer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hades Texture Packer

Creates atlases and the required manifests for textures then sorts them into a package structure to be packed by deppth

Installation

To install the texture packer, install deppth and pip install PyTexturePacker and make sure all of its dependencies are downloaded, then pip install the wheel (make sure the extension .whl is in the wheel name when installing it)

How to Use

Open command prompt and cd to a parent folder, in that folder, have a folder with .pngs (must be a png otherwise the image will not be used) and nested folders with more images. For this example, the folder with images in it will be called NewIconPkg, with the following setup below, and the package we want is ThunderstoreTeamName-NewIconPackage.
The package name must include the Mod-GUID (ThunderstoreTeamName-ModName) in order to work with Hell2Modding.

├── NewIconPkg
│   ├── GUI
│   │   ├── image1.png
│   │   ├── image2.png
│   │   ├── image3.png
│   │   │ Icons
│   │   │   ├── Iconimage.png

Now call (without using py)

hades_texture_pack -s NewIconPkg -t ThunderstoreTeamName-NewIconPackage

this will generate a folder called ThunderstoreTeamName-NewIconPackage in the parent directory that will be correctly formatted for deppth packaging, as well as 2 package files to use.
This will output the following path to the files from the example above

ThunderstoreTeamName-NewIconPackage/GUI/image1.png
ThunderstoreTeamName-NewIconPackage/GUI/image2.png
ThunderstoreTeamName-NewIconPackage/GUI/image3.png
and
ThunderstoreTeamName-NewIconPackage/GUI/Icons/Iconimage.png

All image file paths will follow the file path inside the folder they were originally in, plus the package name appended to the start of it - in order to work with Hell2Modding. For example, if the package was in the folder by itself its file path in-game would just be the ThunderstoreTeamName-NewIconPackage\\{Name}, but if its path was NewIconPkg/GUI/Icons then its file path in-game would be ThunderstoreTeamName-NewIconPackage\\GUI\\Icons\\{Name}

Args

  • -s or --source is the name of the folder in which to recursively search for images
  • -t or --target is the name of the resulting folder to be packed by deppth, must be in the form of a Mod-GUID (ThunderstoreTeamName-ModName).
  • -dp or --deppthpack (not used above) set to anything but "True" to disable automatic Deppth Packing.
  • -iH or --includehulls (not used above) set to anything but "False" to calculate hull points.

About

Creates atlases and the required manifests for textures then sorts them into a package structure to be packed by deppth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%