ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Oct 16, 2018 7:08 pm

All times are UTC




Post new topic  Reply to topic  [ 30 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Sun Apr 29, 2018 4:01 pm 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
I use dzs_qq.bms, i can unpack file, but i can't repack.... vfs file of Moonligh Blade by QQ game...
who can help me update this script can reimport vfs file on this game...
many thanks


Attachments:
dzs_qq.bms [4.78 KiB]
Downloaded 34 times
Top
   
PostPosted: Sun Apr 29, 2018 9:15 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
I have just updated the script to version 0.3.1a for being able to work in reimport mode:
http://aluigi.org/bms/dzs_qq.bms

Let me know if not it works better.
There are no other solutions.


Top
   
PostPosted: Tue May 01, 2018 12:53 am 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
I tried, it still does not work

notice: 0 file reimporter in 33 seconds

this link to vfs file: https://drive.google.com/open?id=1cAZmb ... GluWkbaFhS

I hope you can make it work, very grateful


Attachments:
Untitled.png [25.56 KiB]
Downloaded 1 time
Top
   
PostPosted: Tue May 01, 2018 1:41 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
Usually if you get 0 files it means you are using it in the wrong way.
Are you using the latest version of quickbms?
Remember to select the same file and folder you selected for extraction.


Top
   
PostPosted: Tue May 01, 2018 2:46 am 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
aluigi wrote:
Usually if you get 0 files it means you are using it in the wrong way.
Are you using the latest version of quickbms?
Remember to select the same file and folder you selected for extraction.



I used quickbms 0.8.4 and have followed the instructions, but still take note of such. I open reimport.bat select the script, select the .vfs file, select the directory containing the reimport file :(
This script can be unpacked but can not be repimported. you can check back for me again, thanks


Top
   
PostPosted: Tue May 01, 2018 10:16 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
I guess the problem is just the directory you selected because you must select the original folder that you selected during extraction without having touched the location of the file or quickbms will not been able to find it.

What quickbms does is extremely simple, it just open the file in read mode instead of write mode so if you get zero files it means there was no file to open


Top
   
PostPosted: Tue May 01, 2018 11:25 am 

Joined: Sun Apr 29, 2018 1:33 pm
Posts: 6
I'm curious about that why do you want to repack vfs file? The client will check each file at start, repack may be discovered. At least, I know if you repack the sfc file, you couldn't even log in.


Top
   
PostPosted: Tue May 01, 2018 3:01 pm 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
i can translate this game


Top
   
PostPosted: Tue May 01, 2018 3:15 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 764
CRC calc for this game. Maybe useful for someone.

Code:
uint32_t moon_crc32(uint32_t dwSize, uint8_t *pBuffer, uint32_t dwHash)
{
  uint32_t dwShiftedSize;
  uint32_t dwR1;
  uint32_t dwR2;
  uint32_t dwR3;

  while ( (uint8_t)pBuffer & 3 && dwSize )
  {
    dwHash = crc32_tab[*pBuffer++ ^ (uint8_t)dwHash] ^ (dwHash >> 8);
    --dwSize;
  }
 
  if ( dwSize >= 4 )
  {
    dwShiftedSize = dwSize >> 2;
    do
    {
      dwSize -= 4;
      dwR1 = crc32_tab[(uint8_t)(*pBuffer ^ dwHash)] ^ ((*(DWORD *)pBuffer ^ dwHash) >> 8);
      pBuffer += 4;
      dwR2 = crc32_tab[(uint8_t)dwR1] ^ (dwR1 >> 8);
      dwR3 = crc32_tab[(uint8_t)dwR2] ^ (dwR2 >> 8);
      dwHash = crc32_tab[(uint8_t)dwR3] ^ (dwR3 >> 8);
      --dwShiftedSize;
    }
    while ( dwShiftedSize );
  }
 
  for ( ; dwSize; ++pBuffer )
  {
    dwHash = crc32_tab[*pBuffer ^ (uint8_t)dwHash] ^ (dwHash >> 8);
    --dwSize;
  }
 
  return ~dwHash;
}


Top
   
PostPosted: Thu May 03, 2018 9:27 am 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
Ekey wrote:
CRC calc for this game. Maybe useful for someone.

Code:
uint32_t moon_crc32(uint32_t dwSize, uint8_t *pBuffer, uint32_t dwHash)
{
  uint32_t dwShiftedSize;
  uint32_t dwR1;
  uint32_t dwR2;
  uint32_t dwR3;

  while ( (uint8_t)pBuffer & 3 && dwSize )
  {
    dwHash = crc32_tab[*pBuffer++ ^ (uint8_t)dwHash] ^ (dwHash >> 8);
    --dwSize;
  }
 
  if ( dwSize >= 4 )
  {
    dwShiftedSize = dwSize >> 2;
    do
    {
      dwSize -= 4;
      dwR1 = crc32_tab[(uint8_t)(*pBuffer ^ dwHash)] ^ ((*(DWORD *)pBuffer ^ dwHash) >> 8);
      pBuffer += 4;
      dwR2 = crc32_tab[(uint8_t)dwR1] ^ (dwR1 >> 8);
      dwR3 = crc32_tab[(uint8_t)dwR2] ^ (dwR2 >> 8);
      dwHash = crc32_tab[(uint8_t)dwR3] ^ (dwR3 >> 8);
      --dwShiftedSize;
    }
    while ( dwShiftedSize );
  }
 
  for ( ; dwSize; ++pBuffer )
  {
    dwHash = crc32_tab[*pBuffer ^ (uint8_t)dwHash] ^ (dwHash >> 8);
    --dwSize;
  }
 
  return ~dwHash;
}


how to use this code?


Top
   
PostPosted: Thu May 03, 2018 9:28 am 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
aluigi wrote:
I guess the problem is just the directory you selected because you must select the original folder that you selected during extraction without having touched the location of the file or quickbms will not been able to find it.

What quickbms does is extremely simple, it just open the file in read mode instead of write mode so if you get zero files it means there was no file to open



You can check the Script for me again? many thanks


Top
   
PostPosted: Fri May 04, 2018 2:45 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
unominhtuan wrote:
You can check the Script for me again? many thanks

As I have already said (and tested since I check every feedback), it's not a problem of quickbms or script.

If you need another example usage:
viewtopic.php?p=23032#p23032


Top
   
PostPosted: Wed May 09, 2018 1:05 am 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
aluigi wrote:
unominhtuan wrote:
You can check the Script for me again? many thanks

As I have already said (and tested since I check every feedback), it's not a problem of quickbms or script.

If you need another example usage:
https://zenhax.com/viewtopic.php?p=23032#p23032


I have followed the instructions, it can unpack, but can not repack
This is a video I uploaded to google drive, please take a look

https://drive.google.com/open?id=1zrmL8qwXTt9YFyjI7yN_UW7aN9XEAjkg


Top
   
PostPosted: Wed May 09, 2018 1:22 am 

Joined: Sun Mar 04, 2018 1:29 am
Posts: 53
unominhtuan wrote:
aluigi wrote:
unominhtuan wrote:
You can check the Script for me again? many thanks

As I have already said (and tested since I check every feedback), it's not a problem of quickbms or script.

If you need another example usage:
viewtopic.php?p=23032#p23032


I have followed the instructions, it can unpack, but can not repack
This is a video I uploaded to google drive, please take a look

https://drive.google.com/open?id=1zrmL8qwXTt9YFyjI7yN_UW7aN9XEAjkg

Chào bạn! Bạn có thể cho tôi biết, Bạn có phải là người Việt Nam không? Và tôi sử dụng Tiếng Việt để giúp bạn hiểu hơn(Nếu phải hãy cho tôi biết)
Thật sự vấn đề của bạn có thể được giải quyết, và tôi đã thấy vấn đề của bạn! Bạn đã reimport không đúng. :)


Top
   
PostPosted: Wed May 09, 2018 1:40 am 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
HPAndroid wrote:
unominhtuan wrote:
aluigi wrote:
As I have already said (and tested since I check every feedback), it's not a problem of quickbms or script.

If you need another example usage:
https://zenhax.com/viewtopic.php?p=23032#p23032


I have followed the instructions, it can unpack, but can not repack
This is a video I uploaded to google drive, please take a look

https://drive.google.com/open?id=1zrmL8qwXTt9YFyjI7yN_UW7aN9XEAjkg

Chào bạn! Bạn có thể cho tôi biết, Bạn có phải là người Việt Nam không? Và tôi sử dụng Tiếng Việt để giúp bạn hiểu hơn(Nếu phải hãy cho tôi biết)
Thật sự vấn đề của bạn có thể được giải quyết, và tôi đã thấy vấn đề của bạn! Bạn đã reimport không đúng. :)

đúng vậy, tôi đã cố gắng để reimport vfs file, nhưng không thể, có thể sai ở một bước nào đó


Top
   
PostPosted: Wed May 09, 2018 2:24 am 

Joined: Sun Mar 04, 2018 1:29 am
Posts: 53
Bạn hãy cung cấp cho tôi các tệp mà bạn muốn reimport lại. Tôi sẽ giúp bạn tìm ra chỗ sai của mình :)


Top
   
PostPosted: Wed May 09, 2018 2:46 am 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
HPAndroid wrote:
Bạn hãy cung cấp cho tôi các tệp mà bạn muốn reimport lại. Tôi sẽ giúp bạn tìm ra chỗ sai của mình :)

https://drive.google.com/file/d/1cAZmbsdcqy2TQSzaMo-TWoGluWkbaFhS/view cảm ơn bạn


Top
   
PostPosted: Wed May 09, 2018 6:49 am 

Joined: Sun Mar 04, 2018 1:29 am
Posts: 53
unominhtuan wrote:
HPAndroid wrote:
Bạn hãy cung cấp cho tôi các tệp mà bạn muốn reimport lại. Tôi sẽ giúp bạn tìm ra chỗ sai của mình :)

https://drive.google.com/file/d/1cAZmbsdcqy2TQSzaMo-TWoGluWkbaFhS/view cảm ơn bạn

Này anh bạn! :o
Bạn đã sai ở bước cuối cùng!
Tôi có một câu hỏi này với bạn! Liệu bạn muốn reimport phần nào trong các phần bạn trích xuất ra được, hay là tất cả :?:


Top
   
PostPosted: Wed May 09, 2018 2:01 pm 

Joined: Tue Apr 24, 2018 9:56 am
Posts: 32
HPAndroid wrote:
unominhtuan wrote:
HPAndroid wrote:
Bạn hãy cung cấp cho tôi các tệp mà bạn muốn reimport lại. Tôi sẽ giúp bạn tìm ra chỗ sai của mình :)

https://drive.google.com/file/d/1cAZmbsdcqy2TQSzaMo-TWoGluWkbaFhS/view cảm ơn bạn

Này anh bạn! :o
Bạn đã sai ở bước cuối cùng!
Tôi có một câu hỏi này với bạn! Liệu bạn muốn reimport phần nào trong các phần bạn trích xuất ra được, hay là tất cả :?:

các file trong thư mục TEXT


Top
   
PostPosted: Thu May 10, 2018 1:39 am 

Joined: Sun Mar 04, 2018 1:29 am
Posts: 53
unominhtuan wrote:
HPAndroid wrote:
unominhtuan wrote:

Này anh bạn! :o
Bạn đã sai ở bước cuối cùng!
Tôi có một câu hỏi này với bạn! Liệu bạn muốn reimport phần nào trong các phần bạn trích xuất ra được, hay là tất cả :?:

các file trong thư mục TEXT

Tại bước cuối cùng bạn hãy chọn lưu mà không chọn bất kỳ tệp xml nào cả. Chúc may mắn!
Image
Nếu bạn muốn reimport lại tất cả, thì các bước cũng tương tự nhưng đến bước cuối thì chọn thư mục vfs rồi nhấp vào lưu.
Image


Last edited by HPAndroid on Thu May 10, 2018 1:45 am, edited 1 time in total.

Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 30 posts ]  Go to page 1 2 Next

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