maikelchan / afspacker Goto Github PK
View Code? Open in Web Editor NEWAFS File Creator and Extractor
Home Page: https://pacochan.net/software/afs-packer/
License: MIT License
AFS File Creator and Extractor
Home Page: https://pacochan.net/software/afs-packer/
License: MIT License
I wanted to use this so I did "cd [AFSPACKERFILELOCATION]" and then did "AFSPacker -e <[FILELOCATION]\DATA0.AFS>
yet it still doesn't work there is no more info online and I've been trying this for the past 2 hours with no result I have the 3.1 .Net Framework installed yet it still doesn't work.
Hi, there, first off just wanted to say thanks for your tool, doesnt seem to be much else out there trying to extract ATF files.
So I was trying to extract an AFS archive and got hit with a 'could not find a part of the path ' error.
This is an issue with all the AFS archives I extracted from a game. It seems that there is an issue where they expect other files and file directories to exist, but they arent there. That " \gra\ " folder it lists in the screenshot does not exist in " E:\users\ * \desktop\ " folder at all, infact it does not exist period.
When I click on it, it instantly closes, and I don't know why, I have NET framework over 5.0, and I am on Windows.
Some, but not all, files unpacked from the JP or US releases of Monster Hunter for the PS2 appear to have two extra bytes at the start of data and four blank bytes at the end of data, and possibly extra bytes throughout - this is easily observable to occur with the PNG files such as TITLE1.PNG, where the unpacked files are invalid (magic not at start, bytes after END chunk), and occurs as well with the .apx files. The offsets and size listed for the file entries are used correctly, there just seems to be some extra bytes included in the file's data.
Other files, such as JP's game.bin and related .bin files at the top of the .AFS listing, seem to not have this quirk at first glance and have their magic at the top of their files. Linked is the JP AFS_DATA; the US game.bin has the same problems i was encountering with the JP .png files.
Congratulations on the tool, man! Tools like this helps too much to work automatically! Well, I used it in a PlayStation 2 game entitled Urban Reign (USA, EUR), but, I had a problem: the game gave black screen and does not start at all. If in the future you can take a look at a possible increment to support this game, I would be grateful! Thank you very much and see you.
Can you check this file? I can't unpack it
This is more of a Pebkac issue, honestly. I've gone into folder where everything was extracted and tried running the commands in CMD and Powershell, and neither one allowed me to use the program. I'm not sure how to "install" this if it needs to be installed. I'm just trying to get some samples of Heather Mason's voice for my new track, yo'...
Hi. I don't know how else to contact someone about issues, so here I am. I am trying to use AFSPacker to extract the contents of ADX_USA.AFS from my Dragon Ball Z Budokai 3 disc. I have copied ADX_USA.AFS off of the disc and onto my external HDD, in the same directory as AFSPacker. The directory is K:\0000-UTILS\AFSPacker-v1.2.2. I opened a command prompt window in the same directory as AFSPacker. I typed in AFSPacker -e ADX_USA.AFS K:\0-ADX\DBZ [list_file]. I got the following:
#----------------------------------------------------------------#
# AFS Packer - Version 1.2.2 #
# By PacoChan - https://github.com/MaikelChan/AFSPacker #
#----------------------------------------------------------------#
Extracting files...
Reading TOC... 4540/4540
Error: Unable to read beyond the end of the stream.
Am I doing something wrong? Could you please advise me on how to solve this? I get the feeling I don't fully understand what I'm doing, as I'm not terribly experienced with command prompt. I apologize if this isn't the appropriate place to post this. I don't really know much about github, either.
Steps to reproduce:
.\AFSPacker.exe -i movie.afs
[12:00:00 PM] [Error] Year, Month, and Day parameters describe an un-representable DateTime.
I'm using Windows 10, with .NET Core Runtime 3.1 installed. It might be possible that the movie.afs has corrupted datetime values, but I'm still able to extract the video files from the archive by other means.
Hello, I'm sorry to bother you but I'm struggling to unpack several AFS files from Xbox 360's "Dead or Alive 4" and get this error message:
[Error] Offset or length arguments would try to read past the end of base stream.
afspacker -e chrone.afs chrone
Two of the smaller AFS files unpacked just fine but none of the bigger ones.
AFSExplorer doesn't like these files either, which is weird because that's what I used successfully previously years ago. https://youtu.be/VnE1J2Zw35w
I'd appreciate any help.
Hello,
First of all, thanks for all the hard work to make this tool possible.
I was trying to run AFSPacker on Ubuntu 22.04, but unfortunately, I can only install .NET 6, but not .NET Core 3.1, which breaks the compatibility with the last release of AFSPacker. I also tried to clone the repository and build a new executable and run it, but that's the output I got:
System.ComponentModel.Win32Exception (8): An error occurred trying to start process 'AFSPacker/AFSPacker/bin/Debug/netcoreapp3.1/win-x64/AFSPacker.exe' with working directory 'AFSPacker/AFSPacker'. Exec format error
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.DotNet.Cli.Utils.Command.Execute(Action`1 processStarted)
at Microsoft.DotNet.Cli.Utils.Command.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Run(String[] args)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
Is there any migration for .NET 6 planned? Thanks in advance
Edit: I tried some changes and it did work. I opened a Pull Request #12 with those changes, so you can take a look
First off, just wanted to say thank you for your work on this project. There isn't many options when it comes to working with AFS archives from what I've seen so this is great! Just need some guidance as I didn't see anything in the wiki regarding needing a .json file. Is this something that should be in the AFS archive, because there aren't any .json files in my circumstance.
Thanks again!
Hi!
first of all thanks for your tool, i'm having and issue trying to read afs files from pes5 and pes6, with pes4 works perfectly
here is my test
with pes4
with pes5 (same file different game only)
with pes6 (same file different just more files inside afs)
the text in red is in spanish, in english means "Error: Invalid characters in the path."
Just for the record, the files are always inside the same folder along with afs packer executable and i test it with and without the optional arg [list_file] but its the same result, also when i open the files with dkz studio or afs explorer i can open them with no issue, maybe its an error when try to read the names for the files? dkz shows pes5 and pes 6 files as "unknow" while for pes 4 with the correct name like BG_MUSIC
i leave you below the link for each file, i hope it helps!
http://www.mediafire.com/file/2ujdwma37ry8eg8/PES4_0_sound.rar/file
http://www.mediafire.com/file/andtg8qhybax6yj/PES5_0_sound.rar/file
http://www.mediafire.com/file/sevjovml8kvaqvv/PES6_0_sound.rar/file
Hi!
Thank you very much for your work.
I'm trying to use your program on Pop!_OS 22.04 LTS x86_64 (kernel 6.8.0) for creating an AFS file from a folder with 12974 ADX files. Other relevant info:
leonardo@pop-os:~$ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.28 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.28 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
leonardo@pop-os:~$ dotnet --list-sdks
6.0.128 [/usr/lib/dotnet/sdk]
The sintax I've been using is:
/opt/AFSPacker -c folder/ i_sound.afs
as well as
/opt/AFSPacker -c /home/user/folder/ i_sound.afs
The program always throws this error:
[Error] Object reference not set to an instance of an object.
Let me know if you need further debug info.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.