The Forum is up for sale: XeNTaX Forum looking for new owner

Quickbms Help

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
theclub654
beginner
Posts: 26
Joined: Wed Oct 14, 2015 1:57 am
Has thanked: 3 times
Been thanked: 1 time

Quickbms Help

Post by theclub654 »

Im new to reverse engineering file formats but im trying to write a quickbms script to extract fles from a afs but its not working can someone help me out here.


endian little
idstring "AFS\x00"
get FILENUM long

for i = 0 < FILENUM
get pointer long
get SIZE long
next i
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: Quickbms Help

Post by shakotay2 »

theclub654 wrote: Wed Mar 11, 2020 2:37 amim trying to write a quickbms script to extract fles from a afs but its not working can someone help me out here.
What do you think it should do? In fact it works on an afs sample (but doesn't extract yet):

offset filesize filename (?)
--------------------------------------
files 5
addr: 2048, size: 2343936
addr: 2347008, size: 2132888
addr: 4481024, size: 288
addr: 4483072, size: 1461936
addr: 5945344, size: 1174168

I'd suggest to insert (debug) print lines such like:
print "files %FILENUM%"

The third found file params (addr: 4481024, size: 288) lead to this:
.
extract_AFS.png
.
Now you gonna have to insert a log line to get/log the files.
Good luck. :)

btw: I assume chr_dat2 is not part of the file contents (not sure). You may read it and use it to name the file to be logged.
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
theclub654
beginner
Posts: 26
Joined: Wed Oct 14, 2015 1:57 am
Has thanked: 3 times
Been thanked: 1 time

Re: Quickbms Help

Post by theclub654 »

I really couldn't understand what you are saying so what do I have to edit in my bms script in order to extract the afs file
theclub654
beginner
Posts: 26
Joined: Wed Oct 14, 2015 1:57 am
Has thanked: 3 times
Been thanked: 1 time

Re: Quickbms Help

Post by theclub654 »

the afs im tryna extract doesn't have filenames either
Post Reply