HearthSim / UnityPack

Python deserialization library for Unity3D Asset format
https://hearthsim.info/
MIT License
720 stars 153 forks source link

Trying to extract image file #96

Closed captSpirk closed 4 years ago

captSpirk commented 4 years ago

I am trying to extract a UnityExtract image file, using

python unityextract --image_full_filename.SD, but it's giving me this usage error:

usage: unityextract [-h] [--all] [--audio]] [--fonts] [--images] [--models] [--shaders] [--text] [--video] [-o [OUTDIR]] [--as-asset] [filter [FILTER [FILTER ...]]] [-n] files [files ...] unityextract: error: the following arguments are required: files

What am I doing wrong?

sebastientromp commented 4 years ago

if image_full_filename.SD is your file name, you should call via either python unityextract image_full_filename.SD or python unityextract -- image_full_filename.SD

captSpirk commented 4 years ago

Where are the unityextract files save after successfully extracting the files?

sebastientromp commented 4 years ago

You can specify that with the -o option, eg python unityextract -o out image_full_filename.SD will save the extracted files to the out/ folder.

captSpirk commented 4 years ago

Nothing is working. I'm using the -o option and specify the directory to save the file, but nothing shows up.

Does unityextract even work?

No errors so far, but there is nothing saved. Don't see any files.

EDIT: I got it working.