Sonic-Mania-Decompilation icon indicating copy to clipboard operation
Sonic-Mania-Decompilation copied to clipboard

`autostatic.py` doesn't work properly if the output path is set to anything other than `../build/`

Open MegAmi24 opened this issue 1 year ago • 0 comments

The tool for compiling static Object files breaks when trying to save the output in a path other than the default ../build/ seen in the buildstatic batch files.

Specifically, CMD gives the following error when the path is set to ../build/SonicMania/Data/Objects/:

Traceback (most recent call last):
  File "D:\GitHub Repos\Sonic-Mania-Decompilation\SonicMania\autostatic.py", line 310, in <module>
    with open(f"{folder}Static/{hash}.bin", "wb") as file:
FileNotFoundError: [Errno 2] No such file or directory: '../build/SonicMania/Data/Objects/Static/F6626BD9DD2ED205493601497475537B.bin'

Perhaps it's an issue related to the filepath being too long? Just a guess, couldn't find anything that looks wrong in the py file.

MegAmi24 avatar Jun 16 '23 01:06 MegAmi24