1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help-What are SCZ files (One Piece Burning Blood modding)

Discussion in 'Tools & Guides' started by Crafted-Lightning, Sep 2, 2016.

  1. Crafted-Lightning

    Crafted-Lightning Vivacious Visitor

    Joined:
    Aug 2, 2015
    Messages:
    59
    Likes Received:
    53
    So One Piece Burning Blood just released on Steam and the minute I could play it, I started looking at ways to texture mod it. Tried a lot of different modding tools such as Texmod (can't remember a lot of the others I tried, just use Texmod a lot so only remember that name), but found a way to extract the CPK files in the game directory. I got 2 folders from doing this 'npack' and 'sound', it seems the textures are in 'npack' as there are files such as 'progress_battle_ui_image_character_2p_089_US.npkv.scz' and 'character_220.npki.scz'. But maybe this is just me really hoping they are the textures, but my main problem is I have no idea how to open or even view these files. I have done a lot of searching about these files but all the information about SCZ files seems to be about a different kind, but tried the recommended software in case with no success.

    Sorry if I sound stupid, I don't claim to be an expert at this, just hoping someone can try help explain or anything, thank you for your time, any help is much appreciated :)

    Attached is a few examples of the SCZ files.
     

    Attached Files:

    Last edited: Sep 5, 2016
  2. Ryfon

    Ryfon Potential Patron

    Joined:
    May 21, 2012
    Messages:
    6
    Likes Received:
    0
    a few sample files would be helpful for looking into the contents of such files
     
  3. Crafted-Lightning

    Crafted-Lightning Vivacious Visitor

    Joined:
    Aug 2, 2015
    Messages:
    59
    Likes Received:
    53
    Just added a few example files.
     
  4. Ryfon

    Ryfon Potential Patron

    Joined:
    May 21, 2012
    Messages:
    6
    Likes Received:
    0
    structure is this:
    header - $CMP
    long - zsize
    long - dummy
    long - dummy
    long - size
    long - zsize
    long - dummy
    long - Flag (multi-part if 000f0000)
    ------------------
    header - $CL0
    long - zsize
    long - size
    long - dummy
    data
    -------------------
    repeat $CL0 section if multi-part

    Problem now is compression seems to be a custom method, none of the standard methods work to give anything usable.
    From the little i can get at without figuring out the compression method, the files seem to contain models, shaders, and images

    Edit: compression seems to be a variant of RLE Compression
     
    Last edited: Sep 5, 2016
  5. Crafted-Lightning

    Crafted-Lightning Vivacious Visitor

    Joined:
    Aug 2, 2015
    Messages:
    59
    Likes Received:
    53
    Thank you very much for helping, although being honest I don't understand the structure thing. The main thing I want to do is decompress the files to edit textures then compress them again. I had a look at compression+decompression tools using some of your info, but didn't really understand how to use them. Sorry to be a pain but could you help find a tool to decompress the files or maybe teach me how to use the codes (I'm really useless with code just attempted using visual studio to run the code but didn't know what I was really doing). Codes I found:
    RLE compression pack
    SCZ-Compress

    It's okay if you don't help, but really appreciate the help thus far :)
     
  6. Ryfon

    Ryfon Potential Patron

    Joined:
    May 21, 2012
    Messages:
    6
    Likes Received:
    0
    unfortunately there is no known compression method for these files. i have tried everything i could find so I'm stuck.
    here is my bms script if they ever add support for these.
    Code:
    comtype COMP_COMPRLIB_RLE3
    
    endian big
    idstring "$CMP"
    get ZSIZE long
    get ZERO long
    get ZERO long
    get SIZE long
    get ZSIZE long
    get ZERO long
    get DUMMY long
    
    putvarchr MEMORY_FILE SIZE 0
    log MEMORY_FILE 0 0
    append
    for MEM_SIZE = 0 < SIZE
        #idstring "$CL0"
        getdstring SIGN 4
        if SIGN != "$CL0"
            break
        endif
        get CHUNK_SIZE long
        get CHUNK_ZSIZE long
        get ZERO long
        savepos CHUNK_OFFSET
        math CHUNK_ZSIZE - 0x10
        clog MEMORY_FILE CHUNK_OFFSET CHUNK_ZSIZE CHUNK_SIZE
        math CHUNK_OFFSET + CHUNK_ZSIZE
        goto CHUNK_OFFSET
        get MEM_SIZE asize MEMORY_FILE
    next i
    append
    
    get NAME basename
    log NAME 0 MEM_SIZE MEMORY_FILE
    
     
  7. Crafted-Lightning

    Crafted-Lightning Vivacious Visitor

    Joined:
    Aug 2, 2015
    Messages:
    59
    Likes Received:
    53
    Oh well, thank you very much though, really appreciate all the work you did :)
     
  8. Zoro

    Zoro Potential Patron

    Joined:
    Feb 11, 2016
    Messages:
    12
    Likes Received:
    3
  9. Crafted-Lightning

    Crafted-Lightning Vivacious Visitor

    Joined:
    Aug 2, 2015
    Messages:
    59
    Likes Received:
    53
  10. Zoro

    Zoro Potential Patron

    Joined:
    Feb 11, 2016
    Messages:
    12
    Likes Received:
    3
    My only other thought would be to go onto a website like stack overflow and ask them to help make a compression/de-compression program for scz files. Or find out if someone knows how to use that scz compression file that has been mentioned already and send them an example file from burning blood and see if they can get it to work.
     
    superjaber2 likes this.
  11. Crafted-Lightning

    Crafted-Lightning Vivacious Visitor

    Joined:
    Aug 2, 2015
    Messages:
    59
    Likes Received:
    53
    That does seem to be the only available option right now, thank you for the idea.
     
  12. Shreejeet

    Shreejeet Potential Patron

    Joined:
    Oct 21, 2016
    Messages:
    2
    Likes Received:
    0
    Hey there, i am new here, and i have just learned to create a bms script, can you tell me how do you know you have to subtract 0x10 from chunk_zsize. and also these extracts a .npk file, does that file can be extracted too if yes can you please write a script for it cause i am still a noob at this. Thankyou
     
  13. Shreejeet

    Shreejeet Potential Patron

    Joined:
    Oct 21, 2016
    Messages:
    2
    Likes Received:
    0
    Here's the extracted file.
     

    Attached Files: