Users browsing this thread: 3 Guest(s)
Help Ripping the Battle Sprites from DB Fighting Climax Ignition
#8
(09-18-2016, 04:27 AM)Sosfiro Wrote:
(09-17-2016, 11:51 PM)puggsoy Wrote: OK, there are two parts to this. First you want to extract the .pac, for which you can use this QuickBMS script:

Code:
# Dengeki Bunko: Fighting Climax Ignition .pac format
#
# Written by puggsoy
# script for QuickBMS http://quickbms.aluigi.org

idstring "UKArc\x00\x00\x00"
endian big
getdstring DUMMY 4
get FILES long
set BASE_OFF 0x10

for i = 0 < FILES
    getdstring NAME 0x40
    get SIZE long
    get UNK1 long
    get OFFSET long
    math OFFSET += BASE_OFF
    
    log NAME OFFSET SIZE
next i

Here you'll find a bunch of files, one of being the .cg file. Another one will be cgarc.uka. Use the same script to extract the latter, which will contain the .dds.gz files.

Now I made a program that takes in a folder of .dds.gz files, a .cg file, and the name of a folder where the results should go. Here's the command-line usage:

Code:
Usage: DBFCPacTool inDir cg outDir
   inDir: A folder containing the .dds.gz files to convert
   cg: The .cg file to use for the palette
   outDir: The folder to save the converted files to

I tried figuring out the assembling instructions, unfortunately I just couldn't get anywhere with it. I might give it another shot later on (I feel like I got really close) but right now it just converts the images to .png with the correct palette, which seems to be the biggest issue you had. It also automatically decompresses the files so you don't need to do that yourself.

Hopefully this all works fine, but tell me if any problems crop up!

Very good program! You are my hero! I tried it with some characters (Zero, for example), and the color replacer is perfect.
No doubt that I'll include you in the credits, because with this, you've helped me a lot Smile

Seriously, thank you so much, man. As I finish the rips of each character, I'll upload them in a spritesheet.

Alright! Good to hear! Thank you both!
Reply
Thanked by:


Messages In This Thread
RE: Help Ripping the Battle Sprites from DB Fighting Climax Ignition - by pandaemang - 09-18-2016, 10:30 AM

Forum Jump: