Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEV.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
python -m build --wheel
python setup.py bdist_wheel

pip install .\dist\deppth2-0.1.6.0-py3-none-any.whl
pip install .\dist\deppth2-0.1.6.1-py3-none-any.whl
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ To install Deppth2, `pip install deppth2` or download the latest [wheel](https:/

### Dependencies

Deppth2 technically has no required dependencies outside of Python's core modules, but you may find its functionality very limited without also installing the following optional dependencies. If an optional dependency is missing, Deppth2 will abort an operation dependent on that module informing you of the missing module.
Deppth2 technically has two required dependencies, `pillow` and `lz4`, as they are the primary tools that deppth2 uses. If an optional dependency is missing, Deppth2 will abort an operation dependent on that module informing you of the missing module.

Packages primarily contain sprite sheets. Deppth2 uses Pillow to work with the image data within. If you plan to export/import sprite sheets to/from image files, you'll need to install that: `pip install pillow`.

Hades uses LZ4 compression on its packages. If you plan to work with these packages, you'll want to install the LZ4 module: `pip install lz4`.
> As packages primarily contain sprite sheets, deppth2 uses Pillow to work with the image data within. <br>
> Hades/Hades 2 uses LZ4 compression on its packages, and as such, lz4 is automatically installed to allow for deppth2 to work with Hades/Hades 2.

Transistor and Pyre both use LZF compression on their packages. If you plan to work with these packages, you'll want to install the LZF module: `pip install lzf`. You may need to install C++ build tools to get this dependency to install correctly.

Expand Down
2 changes: 1 addition & 1 deletion deppth2/deppth2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Top-level API exposure of package actions"""

__version__ = "0.1.6.0"
__version__ = "0.1.6.1"

import os
import sys
Expand Down
2 changes: 2 additions & 0 deletions deppth2/entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ def extract(self, target, **kwargs):
def _export(self, path):
if os.path.splitext(path)[1] != '.xnb':
return super()._export(path)

os.makedirs(os.path.dirname(path), exist_ok=True)

with open(path, 'wb') as f:
f.write(self.data)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
version = version,
include_package_data=True,
install_requires=['pillow', 'lz4'],
package_data={
"deppth2": ["texconv/texconv.exe"]
},
Expand Down