ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Apr 13, 2021 7:25 am

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Oct 05, 2014 3:59 pm 

Joined: Sat Sep 13, 2014 11:12 pm
Posts: 9
Hey everybody!

I have an extractor for this format that someone made for me a while back, but I was hoping someone might be able to use the information I can provide, including the source of the extractor, to make a QuickBMS script for it so that I can take advantage of QuickBMS's repacking ability.

The Luap archive seems to be a fairly basic archive that contains 300+ compiled Lua scripts. It seems there were complications with writing a repacker for this format, so I was hoping that QuickBMS might be a reasonable alternative if someone was able to make an equivalent.

This is the archive itself:
https://dl.dropboxusercontent.com/u/362 ... ripts.luap

And here is the extractor (The source is inside):
https://dl.dropboxusercontent.com/u/362 ... ractor.rar



A big thanks to everyone who has helped me already, I really appreciate the assistance.

Thanks again, guys
Dan


Top
   
PostPosted: Sun Oct 05, 2014 5:27 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12082
That's it :)
Code:
get FILES long
for i = 0 < FILES
    getdstring HASH 8
    get OFFSET long
    get SIZE long
    get XSIZE long
    get DUMMY byte

    savepos TMP
    goto OFFSET
    getdstring DUMMY 12
    get NAMESZ long
    getdstring NAME NAMESZ
    string NAME | ":"
    goto TMP

    log NAME OFFSET SIZE
next i

*script updated*


Top
   
PostPosted: Sun Oct 05, 2014 5:44 pm 

Joined: Sat Sep 13, 2014 11:12 pm
Posts: 9
Hey man! Thanks a whole bunch for the help!
I had a question about this. The original extractor extracted the names of the files as well as the directories they were contained in. This extracts the files as I need them with the correct extension which is great, but might the lack of names/directories become problematic when attempting to repack the files?

Again, thanks for all the help already!


Top
   
PostPosted: Sun Oct 05, 2014 6:13 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12082
Sure.
I have updated the script, let me know if it's ok now.


Top
   
PostPosted: Sun Oct 05, 2014 6:35 pm 

Joined: Sat Sep 13, 2014 11:12 pm
Posts: 9
Aluigi, I just tested it and it works flawlessly! Thank you so much for your time! This is going to help me out tremendously! Thank you!

Many thanks! :)
Dan


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited