D-Official / PizzaTowerSwitch-FMOD

FMOD replacement code from the unofficial Pizza Tower switch port
Do What The F*ck You Want To Public License
28 stars 2 forks source link

Having issues decrypting file #34

Closed Dededeez closed 2 months ago

Dededeez commented 2 months ago

Sorry to bother about this, but I have everything set up properly for the script to work, yet it keeps giving me the same error here. What exactly am I missing for this to work? Thanks in advance for help with this. Screenshot 2024-08-07 6 06 04 PM Screenshot 2024-08-07 6 06 43 PM

D-Official commented 2 months ago

Doesn't seem to be your fault. Can you add

print(encrypted_path)
print(data_path)

to line 42 of the script, and see what it prints? Both should contain the full paths for the .bin and .win files.

Dededeez commented 2 months ago

This is what it shows Screenshot 2024-08-07 6 28 58 PM

D-Official commented 2 months ago

If you have subfolders in the folder you're running the script in, it could be looking for files there as well (I should've probably written that it does that). But in case you don't, you can just manually supply both of these paths like so, by placing

encrypted_path = "(full path to bin file)"
data_path = "(full path to data.win)"

in line 42.

Dededeez commented 2 months ago

I added those lines, and now it shows this when I try to run it. The folder I'm trying to run this in has nothing except the script, the .bin, and the .win file Screenshot 2024-08-07 6 35 24 PM

D-Official commented 2 months ago

Sorry, I used the parentheses there as a placeholder. You are meant to replace them with the actual full path. Make sure the full path uses forward slashes.

Dededeez commented 2 months ago

This is what happened this time. Screenshot 2024-08-07 6 53 44 PM

D-Official commented 2 months ago

You need quotes around the paths

Dededeez commented 2 months ago

I finally got it working now. Thank you very much for helping me.