Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

[Request] Update script for QQ VFS file

Featured Replies

  • Author
  • Localization

unominhtuan, posted Sun Apr 29, 2018 4:01 pm (34497)


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

dzs_qq.bms

  • Author
  • Localization

aluigi, posted Sun Apr 29, 2018 9:15 pm (34507)


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.
  • Author
  • Localization

aluigi, posted Tue May 01, 2018 1:41 am (34550)


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.
  • Author
  • Localization

unominhtuan, posted Tue May 01, 2018 2:46 am (34552)


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
  • Author
  • Localization

aluigi, posted Tue May 01, 2018 10:16 am (34557)


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
  • Author
  • Localization

flowersun, posted Tue May 01, 2018 11:25 am (34562)


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.
  • Author
  • Localization

unominhtuan, posted Tue May 01, 2018 3:01 pm (34570)


i can translate this game
  • Author
  • Localization

Ekey, posted Tue May 01, 2018 3:15 pm (34571)


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;
}
  • Author
  • Localization

unominhtuan, posted Thu May 03, 2018 9:27 am (34628)


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?
  • Author
  • Localization

unominhtuan, posted Thu May 03, 2018 9:28 am (34629)


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
  • Author
  • Localization

aluigi, posted Fri May 04, 2018 2:45 pm (34665)


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
  • Author
  • Localization

unominhtuan, posted Wed May 09, 2018 1:05 am (34783)


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
  • Author
  • Localization

HPAndroid, posted Wed May 09, 2018 1:22 am (34786)


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

Chao b?n! B?n co th? cho toi bi?t, B?n co ph?i la ngu?i Vi?t Nam khong? Va toi s? d?ng Ti?ng Vi?t d? giup b?n hi?u hon(N?u ph?i hay cho toi bi?t)
Th?t s? v?n d? c?a b?n co th? du?c gi?i quy?t, va toi da th?y v?n d? c?a b?n! B?n da reimport khong dung. :)
  • Author
  • Localization

unominhtuan, posted Wed May 09, 2018 1:40 am (34787)


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

Chao b?n! B?n co th? cho toi bi?t, B?n co ph?i la ngu?i Vi?t Nam khong? Va toi s? d?ng Ti?ng Vi?t d? giup b?n hi?u hon(N?u ph?i hay cho toi bi?t)
Th?t s? v?n d? c?a b?n co th? du?c gi?i quy?t, va toi da th?y v?n d? c?a b?n! B?n da reimport khong dung. :)

dung v?y, toi da c? g?ng d? reimport vfs file, nhung khong th?, co th? sai ? m?t bu?c nao do
  • Author
  • Localization

HPAndroid, posted Wed May 09, 2018 2:24 am (34788)


B?n hay cung c?p cho toi cac t?p ma b?n mu?n reimport l?i. Toi s? giup b?n tim ra ch? sai c?a minh :)
  • Author
  • Localization

HPAndroid, posted Wed May 09, 2018 6:49 am (34792)


unominhtuan wrote:
HPAndroid wrote:
B?n hay cung c?p cho toi cac t?p ma b?n mu?n reimport l?i. Toi s? giup b?n tim ra ch? sai c?a minh :)

https://drive.google.com/file/d/1cAZmbsdcqy2TQSzaMo-TWoGluWkbaFhS/view c?m on b?n

Nay anh b?n! :o
B?n da sai ? bu?c cu?i cung!
Toi co m?t cau h?i nay v?i b?n! Li?u b?n mu?n reimport ph?n nao trong cac ph?n b?n trich xu?t ra du?c, hay la t?t c? :?:
  • Author
  • Localization

unominhtuan, posted Wed May 09, 2018 2:01 pm (34804)


HPAndroid wrote:
unominhtuan wrote:
HPAndroid wrote:
B?n hay cung c?p cho toi cac t?p ma b?n mu?n reimport l?i. Toi s? giup b?n tim ra ch? sai c?a minh :)

https://drive.google.com/file/d/1cAZmbsdcqy2TQSzaMo-TWoGluWkbaFhS/view c?m on b?n

Nay anh b?n! :o
B?n da sai ? bu?c cu?i cung!
Toi co m?t cau h?i nay v?i b?n! Li?u b?n mu?n reimport ph?n nao trong cac ph?n b?n trich xu?t ra du?c, hay la t?t c? :?:

cac file trong thu m?c TEXT
  • Author
  • Localization

HPAndroid, posted Thu May 10, 2018 1:39 am (34827)


unominhtuan wrote:
HPAndroid wrote:
unominhtuan wrote:

Nay anh b?n! :o
B?n da sai ? bu?c cu?i cung!
Toi co m?t cau h?i nay v?i b?n! Li?u b?n mu?n reimport ph?n nao trong cac ph?n b?n trich xu?t ra du?c, hay la t?t c? :?:

cac file trong thu m?c TEXT

T?i bu?c cu?i cung b?n hay ch?n luu ma khong ch?n b?t k? t?p xml nao c?. Chuc may m?n!
Image
N?u b?n mu?n reimport l?i t?t c?, thi cac bu?c cung tuong t? nhung d?n bu?c cu?i thi ch?n thu m?c vfs r?i nh?p vao luu.
Image
  • Author
  • Localization

unominhtuan, posted Thu May 10, 2018 1:45 am (34828)


HPAndroid wrote:
unominhtuan wrote:
HPAndroid wrote:
Nay anh b?n! :o
B?n da sai ? bu?c cu?i cung!
Toi co m?t cau h?i nay v?i b?n! Li?u b?n mu?n reimport ph?n nao trong cac ph?n b?n trich xu?t ra du?c, hay la t?t c? :?:

cac file trong thu m?c TEXT

T?i bu?c cu?i cung b?n hay ch?n luu ma khong ch?n b?t k? t?p xml nao c?. Chuc may m?n!
Image


k?t qu? v?n nhu v?y, khong th? reimport
  • Author
  • Localization

unominhtuan, posted Thu May 10, 2018 1:59 am (34830)


HPAndroid wrote:
unominhtuan wrote:
HPAndroid wrote:
Nay anh b?n! :o
B?n da sai ? bu?c cu?i cung!
Toi co m?t cau h?i nay v?i b?n! Li?u b?n mu?n reimport ph?n nao trong cac ph?n b?n trich xu?t ra du?c, hay la t?t c? :?:

cac file trong thu m?c TEXT

T?i bu?c cu?i cung b?n hay ch?n luu ma khong ch?n b?t k? t?p xml nao c?. Chuc may m?n!
Image
N?u b?n mu?n reimport l?i t?t c?, thi cac bu?c cung tuong t? nhung d?n bu?c cu?i thi ch?n thu m?c vfs r?i nh?p vao luu.
Image

toi da th? t?t c?, d?u khong th? :(
  • Author
  • Localization

HPAndroid, posted Thu May 10, 2018 3:00 am (34831)


unominhtuan wrote:
HPAndroid wrote:
unominhtuan wrote:
cac file trong thu m?c TEXT

T?i bu?c cu?i cung b?n hay ch?n luu ma khong ch?n b?t k? t?p xml nao c?. Chuc may m?n!
Image
N?u b?n mu?n reimport l?i t?t c?, thi cac bu?c cung tuong t? nhung d?n bu?c cu?i thi ch?n thu m?c vfs r?i nh?p vao luu.
Image

toi da th? t?t c?, d?u khong th? :(

Toi khuyen b?n nen d?n chung vao cung m?t thu m?c.
Vi d?:
Image
  • Author
  • Localization

unominhtuan, posted Thu May 10, 2018 4:44 am (34833)


HPAndroid wrote:
unominhtuan wrote:
HPAndroid wrote:
T?i bu?c cu?i cung b?n hay ch?n luu ma khong ch?n b?t k? t?p xml nao c?. Chuc may m?n!
Image
N?u b?n mu?n reimport l?i t?t c?, thi cac bu?c cung tuong t? nhung d?n bu?c cu?i thi ch?n thu m?c vfs r?i nh?p vao luu.
Image

toi da th? t?t c?, d?u khong th? :(

Toi khuyen b?n nen d?n chung vao cung m?t thu m?c.
Vi d?:
Image

v?n khong co tac d?ng :(
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.