3dstools icon indicating copy to clipboard operation
3dstools copied to clipboard

Instructions for bcfnt.py

Open ARandomGuy231 opened this issue 4 years ago • 3 comments

I can't seem to be able to use bcfnt.py. I tried typing "python bcfnt.py" in my cmd but it says: "Traceback (most recent call last): File "directory of the file", line 9, in import png ModuleNotFoundError: No module named 'png'"

I can't seem to find instructions in the readme for it either

ARandomGuy231 avatar Oct 20 '21 04:10 ARandomGuy231

try installing the "pypng" module pip install pypng

Timo654 avatar Oct 21 '21 14:10 Timo654

try installing the "pypng" module pip install pypng

Did the installation here, but didn't work either, same error even with pypng installed

MrVtR avatar Oct 22 '21 02:10 MrVtR

Found the error and I fix it here, for some strange reason, pip install pypng worked, but the import failed, so I had to download the lib manually @ARandomGuy231 download this file here and put on the project folder: https://raw.githubusercontent.com/drj11/pypng/main/code/png.py

Go to line 2348 on png.py and delete the "file=" string from the print(e, file=sys.stderr), this line have an error when you run it

After that, you can run bcfnt.py with the following arguments to extract an bcfnt file: bcfnt.py -x -f [bcfntFile]

And it should work after that with no failures , I'm attaching here my output after doing these steps output

MrVtR avatar Oct 22 '21 02:10 MrVtR