ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Nov 23, 2017 1:55 am

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Nov 22, 2016 3:35 am 

Joined: Tue Nov 22, 2016 3:10 am
Posts: 1
Hello, I am currently trying to pack the extracted files back to .pck after I have extracted the original .pck file using quick bms script for "Destiny Child (KR)". (http://aluigi.altervista.org/bms/destiny_child_kr.bms)
This was mainly due to the fact that I wanted to change the texture within the game -

Attachment:
11.png [46.4 KiB]
Downloaded 1 time


You get these 7 files once you extract a .pck file responsible for a character from this game, and I wanted to modify the .png file, which is responsible for the texture of the character. Thus, I have figured out a way to unpack it easily by using the quickBMS tool and using the BMS script that was uploaded online, but now what should I do to re-package it? I am totally clueless and lost- is anyone able to guide me how to work on compressing the changed contents back in to a single .pck file? Thanks for reading this long thread. ;)

Here is the sample character .pck file, which I have been struggling to compress after decompressing it:
http://www.mediafire.com/file/00x7f4x78gci05u/c057_02.pck
Attatchment of pck file was not allowed, so I uploaded it on mediafire.

P.S: MIGHT BE RELATED TO THIS POST http://zenhax.com/viewtopic.php?f=9&t=3333&p=18521&hilit=destiny+child#p18521


Top
   
PostPosted: Tue Nov 22, 2016 11:18 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
Try the reimport feature of quickbms, all the information are available in section 3 of quickbms.txt:
http://aluigi.org/papers/quickbms.txt

The script is valid for reimporting so it should work correctly.
If you modify only the png file, remember to keep only it in the folder (delete the other unchanged files) and check that its size is smaller/equal than the original file.


Top
   
PostPosted: Wed Jul 19, 2017 8:58 pm 

Joined: Sun Jul 16, 2017 6:18 pm
Posts: 1
aluigi wrote:
Try the reimport feature of quickbms, all the information are available in section 3 of quickbms.txt:
http://aluigi.org/papers/quickbms.txt

The script is valid for reimporting so it should work correctly.
If you modify only the png file, remember to keep only it in the folder (delete the other unchanged files) and check that its size is smaller/equal than the original file.


The locale.pck after unpck.
I have not edited any files´╝îoriginal file can not reimport.

locale.pck https://drive.google.com/open?id=0B_6gK ... 0EtNUxubG8


Top
   
PostPosted: Thu Jul 20, 2017 1:34 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
That error means that the file can't be compressed further and so can't be reimported.
quickbms uses Yappy_Compress with level 10, apparently that's not enough so I will do some tests for the next version using higher levels.


Top
   
PostPosted: Thu Jul 20, 2017 1:42 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
Ok, increasing the level does absolutely nothing so it's necessary another different implementation of the algorithm of which I'm not aware (I use https://raw.github.com/richard-sim/Comp ... /yappy.cpp).
If anyone has suggestions I will implement them.


Top
   
PostPosted: Sat Sep 02, 2017 11:55 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
So has anyone been able to find a working version of the yappy compressor?

The public version of yappy is clearly a joke or a huge bug because the compressed data is bigger than the original file and changing any parameter (level, bestYappy_Match, size of tables and so on) doesn't change anything.


Top
   
PostPosted: Sat Sep 09, 2017 12:46 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7132
Fixed in quickbms 0.8.1


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited