MaikelChan / AFSPacker

AFS File Creator and Extractor
https://pacochan.net/software/afs-packer/
MIT License
57 stars 5 forks source link

Unable to create .afs file #17

Open Woodnsus opened 2 months ago

Woodnsus commented 2 months ago

Hello.

I am trying to create a new .afs file after I extracted and edited the contents of an old one. I was able to extract the old one easily, but now that I need to repack the contents, the application refuses to work. I wonder if this is a bug, or whether I'm doing something wrong. I hope you can provide some insight.

I'm running Windows 10, up to date, .NET Runtime 6 installed, running cmd as an admin and directing to the location of the application (F:\Downloads\AFSPacker-v2.1.2-win-x64).

The folder of contents ("New2") I want to turn into an .afs file is located at F:\Downloads\wit-v3.05a-r8638-cygwin64\bin\DUMP\files.

The command I input in CMD is "AFSPacker.exe -c F:\Downloads\wit-v3.05a-r8638-cygwin64\bin\DUMP\files\New2 F:\Downloads\Amogus\wzs3eu2.afs

Hope this is sufficient info. Please let me know if there's anything else I should provide. Thank you. image

MaikelChan commented 2 months ago

Hi!

Would you be able to send the files you are trying to package, along with the .json file, for me to test?

Thanks!

Woodnsus commented 2 months ago

Hi!

Sorry for the late reply.

I've uploaded the files here: https://drive.google.com/file/d/1BEhmeDAOkr8EzYmbYIaD6S2VxpFBNZlP/view?usp=sharing

Regarding the .json file, I do not know where to find it. Also, I gave the code one more try and now I'm getting a different error.

[image: image.png]

On Tue, Jul 30, 2024 at 1:25 AM MaikelChan @.***> wrote:

Hi!

Would you be able to send the files you are trying to package, along with the .json file, for me to test?

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/MaikelChan/AFSPacker/issues/17#issuecomment-2257113363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFAGJX5SL45NCSZPMNLAA3ZO26PHAVCNFSM6AAAAABLPP77BKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXGEYTGMZWGM . You are receiving this because you authored the thread.Message ID: @.***>

MaikelChan commented 2 months ago

I can't see the image you posted. Is it an error like this?

[Error] Could not find file 'files.json'.

That .json file is important as it contains information about how to regenerate the .afs file so it's compatible with that specific game.

If you lost it, you can try extracting the original afs file again. The .json will generate again and should be located along with the folder with the extracted files. Then place your edited files in that new folder and try creating the afs file again.

Hopefully it works this time!