Users browsing this thread: 4 Guest(s)
Help ripping from apk file (twewy:sr)
#16
Here ya go puggsoy, https://www.dropbox.com/sh/8dmw94gmuc72x...v60Pa?dl=0

Will do Dazz!
Reply
Thanked by:
#17
Here's a QuickBMS script to turn the .bytes files into OGGs:

Code:
get NAME basename
string NAME += ".ogg"
get SIZE asize
math SIZE -= 0x120

log NAME 0x120 SIZE

Put this into a text file and give it the extension .bms, then you can use QuickBMS to convert them. Put the files you want to convert in a folder and choose that as the input.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Reply
Thanked by: petitepirouette
#18
Thank you!


That worked like a charm and saved me quite a bit of time.
Reply
Thanked by: puggsoy
#19
Because there were so many files I decided that there was no way that I was going to copy paste and make 6000 bat files then click on them all to run them. I asked my brother for some coding advice and we were able to make a .bat that would automate the entire process so all 6000 folders would be created from just the one click.

Code:
cd C:\Disunity
FOR %%f IN (*) DO disunity extract %%f
PAUSE
I don't know if this is something you guys already use or not, but this is the code we got to work!
Aha! With this I'll be able to recompile and submit the resources sooner.
cheers.
Reply
Thanked by:
#20
Does anyone know what the offset is for the movie bytes? since it doesn't appear to be the same as the BGM bytes....
Reply
Thanked by:
#21
(07-16-2015, 05:28 PM)petitepirouette Wrote: UPDATE:
Alright so Lexou Duck sent me a few extraction tools for the twewy .ipa which extracted about 1,200 PNGs from all the .28 files (which were extracted from the resource.assets file)

There are still a bunch of .83 .21 and .43 that were extracted as well. Does anyone know what to do with these? (roughly about 3,500 files are of these types)

On top of that with disunity I have been working my way through 5,900 different files from the .apk one by one. Some of these are the same as the .ipa and some are different. The nice thing so far is that some of the files found one way are coruppted while the other way spits them out fine:
So in the end there are more unable pictures. It's going to take me a while to go through all of the files but I'll compile them when I'm done and submit them.

Was wondering if you could pass me (or at least tell me the names) of the extraction tools you used to get those files from the IPA.
Reply
Thanked by:
#22
You can open IPAs with 7-zip (and probably other extraction utilities like WinRAR). Just right-click, 7-zip, Open Archive.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Reply
Thanked by:
#23
Should've clarified better, my bad. 

I meant the tools used to extract the resources.assets files, an then the tool to extract the files that were just extracted.
petite used a plural so i assumed there would be more then one tool needed.
Reply
Thanked by:
#24
Oh, right. To my knowledge disunity can extract files from .assets files. Otherwise I don't know though.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Reply
Thanked by:
#25
here's a copy of the private message i had sent to the OP


you're gonna open up that .ipa with 7zip, dump it somewhere

inside this new twewy.app folder you've created or whatever there's another folder called data, containing the big file called resources.assets

so you're gonna download this program called QuickBMS so you can run the script to unpack that big file
and make a file of that script, that is this script right here
Code:
endian big
goto 0xc
get BIAS long
endian little
goto 0x28
get FILES long
goto 0x40
for i = 1 <= FILES
   get FID long
   get OFFSET long
   math OFFSET += BIAS
   get SIZE long
   get TYPE long
   get DUMMY long
   if TYPE == 4
   elif TYPE == 1
   elif TYPE == 12
   elif TYPE == 15
   elif TYPE == 23
   elif TYPE == 26
   elif TYPE == 33
   elif TYPE == 54
   elif TYPE == 64
   elif TYPE == 65
   elif TYPE == 96
   elif TYPE == 108
   elif TYPE == 111
   elif TYPE == 123
   elif TYPE == 135
   elif TYPE == 198
   elif TYPE == 199
   elif TYPE == 3584 # last file
   elif TYPE < 0
   else
      savepos MYOFF
      goto OFFSET
      get NAMEL long
      getDstring FNAME NAMEL
      savepos OFFSET2
      set HEAD OFFSET2
      math HEAD -= OFFSET
      set TEST HEAD
      math TEST %= 4
      if TEST != 0
         math HEAD /= 4
         math HEAD += 1
         math HEAD *= 4
         math OFFSET += HEAD
         math SIZE -= HEAD
      endif
      math SIZE -= 4
      math OFFSET += 4
      goto MYOFF
      get NAME basename
      string NAME += "/"
      set EXT ""
      if TYPE == 152
         math OFFSET += 0xc
         math SIZE -= 0xc
         set EXT ".ogm"
      elif TYPE == 49
         set EXT ".xml"
      else
         set EXT "."
         string EXT += TYPE
      endif
      string NAME += FNAME
      string NAME += EXT
      log NAME OFFSET SIZE
   endif
next i
paste it in notepad and save it as whatever.bms

and yeah launch quickbms, run that script on the resources.assets file and now you should have a new big folder called Resources

and inside that, all these .28 files
so the link dazz had put up to download is now dead and you can't find the program anywhere on previous' website, but i have it sooo
here's the program, i uploaded it onto mediafire http://www.mediafire.com/download/edvtjo...yEight.exe

drag and drop the files onto there and it should work
so yeah have fun finding what you need
[Image: E3DU8rS.png]
Reference
♥ ♥ ♥ LOVE ♥ ♥ ♥
Omega ; Phant Mmkay ; Baegal ; Gorsal ; Drakocat ; Chaoxys ; TomGuyCott ; Chris2balls ; Mighty Jetters ; Blueblur97 ; NICKtendo DS ;
Kachua (Secret Santa) ; and some more that i need to locate, save and link onto here
Reply
Thanked by: Red Lightfoot
#26
I found what i need, can't thank you enough. 



Though I am curious. Is there any way to open the .21 files?





Also I'm sorta new here, how exactly does one submit sprites? ^^"
Reply
Thanked by:
#27
If you can upload a couple of .21 files I can take a look, although I'm not promising anything.

To submit, go to the game you want to submit to, and then click the "Add New Sheet" button. If the game doesn't exist, go to a system page and click "Add New Game".
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Reply
Thanked by:
#28
On the topic of apk file ripping: Is there an android emulator out there that let's you filter graphical elements or some sort of app which dumps them?

I was trying to rip the medals (and other stuff) from Kingdom Hearts Unchained χ but it seems most files are inside some strange (encrypted?) archive, so the methods suggested for TWEWY:SR here won't work.
Reply
Thanked by: Oscar92player
#29
Mobile games are much like PC games, i.e. each game often uses different formats. If you can upload the archive in question we can take a look.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Reply
Thanked by:
#30
http://www.mediafire.com/download/48cd38...ed_chi.zip

These are the files that can be found in the apk, once the game installs they get even bigger (the misc.mp4 around 780 MB and the misc.png around 20 MB). I could upload these too but that's probably not helpful at the moment.

I'm really not sure where to start here, since I don't have any experience with archives at all, maybe the smaller file is the index for the larger one.
Reply
Thanked by: Oscar92player


Forum Jump: