XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Oct 20, 2017 3:14 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Sun Aug 20, 2017 6:39 pm 
Offline
ultra-n00b

Joined: Sun Aug 20, 2017 4:36 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time














You can make the ads go away by registering

Thanks for the tool! did anyone manage to extract the audio? i got it with one tool, but the audios are unplayable because they have no headers
i really really need the tachikomas audio.


Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Thu Aug 24, 2017 6:12 am 
Offline
ultra-n00b

Joined: Tue Jan 24, 2017 8:35 pm
Posts: 1
Has thanked: 1 time
Have thanks: 0 time
episoder wrote:
just for completeness and future extraction. the v2 capable script. tested on closed pts files and working in python 2.7 (sfm) and 3.5 (blender) and extracting both the live and upcoming v2 files. and it's alil bit faster. :D


Hey duder! Thanks for writing this script!
I can't seem to get it to work though!
Image

any ideas?
I tried typing the name of the file into that space "model.dat" with no luck at all.


Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Fri Aug 25, 2017 2:53 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 893
Has thanked: 1878 times
Have thanks: 475 times
aluigi has a Quickbms script to split those *.dat samples too :D
http://aluigi.altervista.org/bms/ghost_ ... ssault.bms

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Thu Aug 31, 2017 3:43 am 
Offline
n00b

Joined: Fri Oct 16, 2015 8:05 pm
Posts: 15
Has thanked: 0 time
Have thanks: 2 times
Ouren wrote:
episoder wrote:
just for completeness and future extraction. the v2 capable script. tested on closed pts files and working in python 2.7 (sfm) and 3.5 (blender) and extracting both the live and upcoming v2 files. and it's alil bit faster. :D


Hey duder! Thanks for writing this script!
I can't seem to get it to work though!
Image

any ideas?
I tried typing the name of the file into that space "model.dat" with no luck at all.


you gotta put the complete data file path into the data_file path at the top. i thought it was obvious how i left the sample file in there.

@acewell that's for the old dat file version before 2.0 - won't work with the current files. and it's still using the slow binary search. that's exactly why i rewrote it and using the file index. :D


Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Thu Aug 31, 2017 5:19 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 893
Has thanked: 1878 times
Have thanks: 475 times
episoder wrote:
@acewell that's for the old dat file version before 2.0 - won't work with the current files.

"2.0" samples please, i will rewrite the bms script :D

Quote:
and it's still using the slow binary search. that's exactly why i rewrote it and using the file index. :D

slow? extracting all dats in a folder at once with Quickbms couldn't possibly be slower than having to enter the file names by
hand in a python script after each dat extraction, oh and making sure you have the correct python dependency installed first. :P :D

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Thu Aug 31, 2017 5:41 am 
Offline
n00b

Joined: Fri Oct 16, 2015 8:05 pm
Posts: 15
Has thanked: 0 time
Have thanks: 2 times
sure... have a sample. :)

http://www.mediafire.com/file/9ltgb7t5gb49x9d/world.dat

extracts it in less then 5 seconds. and... i already posted that the script is pretty much version independant. both file and python versions.

nvm. me doing it myself.

Code:
# Ghost in the Shell: Stand Alone Complex - First Assult Online
# script for QuickBMS http://quickbms.aluigi.org

get ARCHIVE_SIZE asize
do
    idstring "\xdd\x88\x55\x22"
    get DUMMY short # 0x14
    get ZERO long
    get DUMMY1 long
    get DUMMY2 long
    get DUMMY3 long
    get DUMMY4 long
    get NAMESZ short
    get PAD short
    getdstring NAME NAMESZ
    goto PAD 0 SEEK_CUR

    findloc NEXT_OFF binary "\xdd\x88\x55\x22" 0 ""
    if NEXT_OFF == ""
        math NEXT_OFF == ARCHIVE_SIZE
    endif
    math SIZE = NEXT_OFF
    math SIZE - OFFSET

    savepos OFFSET
    log NAME OFFSET SIZE

    goto NEXT_OFF
while NEXT_OFF != ARCHIVE_SIZE


works for both file versions. it's actually as fast as the script. the offset calculation is wrong tho. it adds rubbish (from the next parsed file) at the end of the real files. the extract is twice as large. it may be functional, since the importers and converters don't check file sizes, but that's a bit of clutter that could be avoided perhaps. :)


Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Thu Aug 31, 2017 7:19 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 893
Has thanked: 1878 times
Have thanks: 475 times
rewritten bms script to read the table instead :D
*updated September 19, 2017*
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

goto -6
get TABLE_OFFSET long
for i
    goto TABLE_OFFSET
    get IDX_SIG long
    if IDX_SIG != 0x2a2ceb87
        break      
    endif
    goto 0x10 0 SEEK_CUR
    get SIZE long
    goto 0x4 0 SEEK_CUR
    get NAME_SIZE long
    goto 0xa 0 SEEK_CUR
    get DATA_OFFSET long
    goto NAME_SIZE 0 SEEK_CUR
    savepos TABLE_OFFSET
    goto DATA_OFFSET
    get CHUNK_SIG long
    goto 0x16 0 SEEK_CUR
    get NAME_SZ short
    get SKIP short
    getdstring NAME NAME_SZ
    goto SKIP 0 SEEK_CUR
    savepos OFFSET
    log NAME OFFSET SIZE   
next

works with your world.dat and the samples linked in the first post. :D

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Last edited by AceWell on Wed Sep 20, 2017 3:36 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Thu Aug 31, 2017 7:41 am 
Offline
n00b

Joined: Fri Oct 16, 2015 8:05 pm
Posts: 15
Has thanked: 0 time
Have thanks: 2 times
good. nvm my lousy quick edit then. :D


Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Thu Aug 31, 2017 8:56 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 893
Has thanked: 1878 times
Have thanks: 475 times
and just for kicks i converted your python code to a Noesis python extraction script :D
*script updated September 19, 2017*


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Last edited by AceWell on Wed Sep 20, 2017 3:46 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Thu Aug 31, 2017 4:41 pm 
Offline
n00b

Joined: Fri Oct 16, 2015 8:05 pm
Posts: 15
Has thanked: 0 time
Have thanks: 2 times
yeh. am i stupid? they are both not working with the 2.0, if you don't skip the skip. :D


Top
 Profile  
 
 Post subject: Re: Ghost in the shell: First assault (request)
PostPosted: Wed Sep 20, 2017 3:54 am 
Offline
VIP member
VIP member

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 893
Has thanked: 1878 times
Have thanks: 475 times
episoder wrote:
they are both not working with the 2.0, if you don't skip the skip. :D

yeah i just updated both the bms script and Noesis python script to "skip the skip" after the string :D
i had to see more samples to understand what that short data meant. they should work with all versions now (:

_________________
Noesis
Hex2obj
QuickBMS
TextureFinder
Unity Assets Bundle Extractor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot], Javitolo98 and 6 guests


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:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group