Trouble Witches

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Trouble Witches

Post by Delacroix »

PC Sample: http://www63.zippyshare.com/v/kI6dQB5u/file.html
X360 Sample: http://www63.zippyshare.com/v/RqnVXzue/file.html

It would be neat to get inside those. Thank you very much in advance for any assistance.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

They are just containers without information about the archived files.
You should have an index file somewhere, maybe a small file with the same name and different extension or maybe just an unique index file for all the archives.
Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Re: Trouble Witches

Post by Delacroix »

No such thing exists. Possible index in .exe?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

yeah, that's possible even if it's quite rare, just few games in my experience.
Upload both the exe, a list of the files in the PC version may be useful too just to check if there are index files with other names.
Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Re: Trouble Witches

Post by Delacroix »

Code: Select all

*edit by aluigi* ok taken


Remove this once you've gotten the archive, Luigi. Apologies for the delay.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

Apparently there are no referecences to the files in xex (decrypted). No idea where is the TOC.
Anyway you can use this script for automatically extracting the xbox compressed files:

Code: Select all

comtype xmemdecompress
findloc OFFSET string "\x0f\xf5\x12\xee"
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET string "\x0f\xf5\x12\xee" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    clog "" OFFSET SIZE SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""
It doesn't work on ID20000_SOUND.PACK because it contains RIFF files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Re: Trouble Witches

Post by Delacroix »

Error 404...?

And thanks for your efforts! Once I do download this script (404 for now), I might give it a whirl to make the dub available at least, for PC. Maybe more stuff.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

Fixed :)
Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Re: Trouble Witches

Post by Delacroix »

How exactly do I extract the archives for the X360 ver? I can't seem to be able to do that. It just won't extract them. 0 files found in 0 seconds, it says.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

Because your default.xex executable is still encrypted.
You must decrypt it with xextool, using the command-line in the readme of the tool is enough:

Code: Select all

xextool -e u -c b -o default-hack.xex default.xex
Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Re: Trouble Witches

Post by Delacroix »

I seem to be having problems with the PC version using this script. Is it for X360 only?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

Yes x360 only, the only samples I had.
I would avoid to spend time on the PC version too
Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Re: Trouble Witches

Post by Delacroix »

Thing is, I provided both. ;-) And I want to port as much as I can to the PC version. Starting from the dub. Investigate the TWOri.rar for it, if you would. Please.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

Probably I downloaded only one of the files in the link.
Anyway currently I'm not interested, sorry.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Trouble Witches

Post by Acewell »


bms script for the PC sample :)

Code: Select all

get FOLDER basename
idstring "BM8P"
goto 0x0
findloc OFFSET string "BM8P"
for i
   goto OFFSET
   get DUMMY long
   findloc NEXT_OFFSET string "BM8P" 0 ""
   if NEXT_OFFSET == ""
      get SIZE asize
   else
      math SIZE = NEXT_OFFSET
   endif
   math SIZE - OFFSET
   string NAME p "%s\%d.bmp" FOLDER i
   log NAME OFFSET SIZE
   math OFFSET = NEXT_OFFSET
   if NEXT_OFFSET == ""
      break
   endif
next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Trouble Witches

Post by aluigi »

Eh no.
If you want a real work you need the executable and the list of files in the Data folder, then you can try to adapt the script I created.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Trouble Witches

Post by Acewell »

aluigi wrote:Eh no.
If you want a real work you need the executable and the list of files in the Data folder, then you can try to adapt the script I created.

replying to me or Delacroix?
if to me it works fine on that sample, just a series of bmp images. :)
Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Re: Trouble Witches

Post by Delacroix »

Code: Select all

https://mega.nz/#F!KGxFUSQb!Vuj9rqj4hi2wNy2dVTSLgg


Remove link in 24h, if you would. I'd still rather you reconsidered helping me out here. The entire point for getting into the XBOX360 files was, is and will be porting them to a version of this game that is actually being sold. Neo is delisted from Microsoft Store, that's for one, it's also for a platform that is slowly becoming obsolete, that's for two.

EDIT: Yep, implementing the dub will be definitely possible. Extracted XMAs are supported easily by the tools I have archived over here. They convert to wavs no problem and converting them in turn to whatever the PC game supports will be child's play.

I just need a way into the PC archives now.
Delacroix
Posts: 65
Joined: Mon Dec 08, 2014 1:16 pm

Re: Trouble Witches

Post by Delacroix »

BUMP! Maybe it's time to regain interest now? I can't convert assets if I don't know what to convert them to and how to pack them in!