Silent Hill 3 (PS2) - .AFS

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Silent Hill 3 (PS2) - .AFS

Post by AnonBaiter »

Here is a sample. I tried the afs.bms script but the script doesn't detect the filenames like it should(see the end of the file). Perhaps it needs something to work?
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Silent Hill 3 (PS2) - .AFS

Post by Acewell »

yep you can see the long pointer at 0x7FFF8 in your sample that takes you to the names
Last edited by Acewell on Mon Oct 24, 2016 3:23 am, edited 1 time in total.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Silent Hill 3 (PS2) - .AFS

Post by AnonBaiter »

Yeah, I can see it. So what?

Code: Select all

                                     09 0A 0B 0C 0D 0E 0F
0007FFF0                             F0 73 01 20 01 00 00           ðs. ...
tofuman
Posts: 5
Joined: Sun Oct 23, 2016 9:54 pm

Re: Silent Hill 3 (PS2) - .AFS

Post by tofuman »

The file can be opened using AFSExplorer. The original developers site is down so I'll attach the utility here.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Silent Hill 3 (PS2) - .AFS

Post by AnonBaiter »

OK, I'll go with that tool in the meantime...
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Silent Hill 3 (PS2) - .AFS

Post by Acewell »

AnonBaiter wrote:Yeah, I can see it. So what?

so fix the script! :)
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Silent Hill 3 (PS2) - .AFS

Post by AnonBaiter »

^ I have to sort out my priorities then. But then I deleted all the .AFS files I had out of that game using that one tool. Luckily, however, I have the ISO that stored all the .AFS files so maybe I'll salvage it up some time.
Unless the author of the afs.bms decides to show up and provide the "fix", wish me good luck.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Silent Hill 3 (PS2) - .AFS

Post by aluigi »

I have found a way to remain compatible (I hope) with the other AFS formats, script 0.1.2
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Silent Hill 3 (PS2) - .AFS

Post by AnonBaiter »

Ok, now the script's back on track! Thanks to whoever helped!
Last edited by AnonBaiter on Mon Oct 24, 2016 4:59 am, edited 1 time in total.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Silent Hill 3 (PS2) - .AFS

Post by Acewell »

i reworked the previous existing script to work with your sample just for fun :D

Code: Select all

idstring "AFS\x00"
get FILES long
savepos TMP
get FINDNAMES long
math FINDNAMES - 8
goto FINDNAMES
get NAMETABLEOFF long
get NAMETABLESIZE long
goto TMP
for i = 0 < FILES
   get OFFSET long
   get SIZE long
   savepos TMP2
   goto NAMETABLEOFF
   getdstring NAME 32
   getdstring SKIP 16
   savepos NAMETABLEOFF
   log NAME OFFSET SIZE
   goto TMP2
next i   

it might not work with other afs files but it wasn't meant to :P
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: Silent Hill 3 (PS2) - .AFS

Post by codec »

working silent hill editor PS3-XBOX360-PC-PS2
Image
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Silent Hill 3 (PS2) - .AFS

Post by Acewell »

^that is the best solution because it converts the files to wav right from the archive :)

http://alchemillahospital.net/silent-hi ... ce-editor/