QuickBMS errors [programming, scripting, quickbms.exe tool... NOT games]

Doubts, help and support about QuickBMS and other game research tools
TGE
Posts: 38
Joined: Sat Dec 20, 2014 5:14 pm

Re: QuickBMS errors

Post by TGE »

Having issues decompressing this zlib compressed file using clog
It decompresses fine with offzip however.
0_37267752.7z

http://puu.sh/kIWyF.png
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors

Post by aluigi »

The error states that you used an uncompressed size equal to the uncompressed one.
comtype zlib (which is default) works with the correct sizes.

If you don't know the uncompressed size you should use: comtype zlib_noerror.
It's exactly as "comtype zlib" with the difference of automatically setting the output size, ignoring some possible decompression errors and to save the file "as-is" if the input is not compressed with zlib.

Try it.

For corresponding comtype for deflate is deflate_noerror.
If you don't know if it's zlib or deflate just use unzip_dynamic which tries zlib, then deflate and then "as-is".
TGE
Posts: 38
Joined: Sat Dec 20, 2014 5:14 pm

Re: QuickBMS errors

Post by TGE »

Using comtype unzip_dynamic and clog NAME OFFSET SIZE 1 fixed the issue I was having, thanks.
The reason I used the same size for the zsize and size is because it was noted in the manual that this would automatically get the decompressed size. Might just have been bad reading on my part though :)

On a different note.. is there any way to get a string of a number in hexadecimal?
Kofdasad
Posts: 1
Joined: Tue Oct 27, 2015 4:11 pm

Re: QuickBMS errors

Post by Kofdasad »

Hi!

Sorry, this is my first post, 'm just learning how to use the tool...
I get This error:

Code: Select all

  offset   filesize   filename
--------------------------------------
- SCRIPT's MESSAGE:
  test algorithm number 1: ZSIZE 1798078650, SIZE 1601834632

  00000000 1601834632 1.dmp

Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info:  algorithm   1
       offset      00000000
       input size  0x6b2c80ba 1798078650
       output size 0x5f7a0e88 1601834632
       result      0xffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (160183463
2)

Last script line before the error or that produced the error:
  27  clog NAME 0 ZSIZE SIZE


Is a "big" file, about 1.7GB

Can you help me?

Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors

Post by aluigi »

It looks like you were trying to use comtype_scan2.bat/bms on a file of almost 2Gb... oh no no no :D

The scanner must be used only when you know at 100% what you are doing, for example if you have a small file that you are sure it contains just the compressed stream (no header, no footer, no other stuff).

For using quickbms first you have to figure the structure of the format.
What's the game?
crushedice2000
Posts: 32
Joined: Sun Nov 08, 2015 8:37 pm

Error on sminstcab.bms

Post by crushedice2000 »

Hi! When I try to run sminstcab.bms with a Smart Install Maker installer I get this output:

Code: Select all

QuickBMS generic files extractor and reimporter 0.7.0
by Luigi Auriemma
e-mail: me@aluigi.org
web:    aluigi.org
        (Oct 31 2015 - 14:05:01)

                   quickbms.aluigi.org   Homepage
                            zenhax.com   ZenHAX Forum
                               @zenhax   Twitter & Scripts

- open input file C:\setup.exe
- open script Z:\Descargas\sminstcab.bms
- set output folder C:\output

  offset   filesize   filename
--------------------------------------
- SCRIPT's MESSAGE:
  PAK_SIZE      36655192
  MULTI_PATTERN disk@$&%19.pak
  ONE_VOLUME    1
  FILES         96
  CAB_SIZE      4195939

  00000000 8388746    setup_Disk1.cab

-------------------
*EXCEPTION HANDLER*
-------------------
An error or crash occurred:

*EH* ExceptionCode      c0000005 access violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   77c183b4
                        77BE0000 + 000383b4 msvcrt.dll
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    00000000

*EH* Stack Trace:
0x77c183b4 : C:\WINDOWS\system32\msvcrt.dll : wcsxfrm
0x77c1627d : C:\WINDOWS\system32\msvcrt.dll : stricmp
0x4600a2 : C:\Documents and Settings\Windows XP\Escritorio\quickbms.exe : [unknown file]
0x471d74 : C:\Documents and Settings\Windows XP\Escritorio\quickbms.exe : [unknown file]
0x48b035 : C:\Documents and Settings\Windows XP\Escritorio\quickbms.exe : [unknown file]
0x48b1b5 : C:\Documents and Settings\Windows XP\Escritorio\quickbms.exe : [unknown file]
0x48af73 : C:\Documents and Settings\Windows XP\Escritorio\quickbms.exe : [unknown file]
0x99d4d8 : C:\Documents and Settings\Windows XP\Escritorio\quickbms.exe : [unknown file]
0x4010fd : C:\Documents and Settings\Windows XP\Escritorio\quickbms.exe : [unknown file]

Last script line before the error or that produced the error:
  177 log CAB_NAME 0 CAB_SIZE MEMORY_FILE2


I'm using QuickBMS 0.7 on Windows XP SP3. If you want, I'll put here the installer.

Thanks in advance!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors

Post by aluigi »

I'm aware of that bug and it will be fixed in the next version that I will release this weekend or even before.
In the meantime please use the previous version:
http://aluigi.org/papers/quickbms_0.6.7a.zip
crushedice2000
Posts: 32
Joined: Sun Nov 08, 2015 8:37 pm

Re: QuickBMS errors

Post by crushedice2000 »

aluigi wrote:I'm aware of that bug and it will be fixed in the next version that I will release this weekend or even before.
In the meantime please use the previous version:
http://aluigi.org/papers/quickbms_0.6.7a.zip


Thank you! It works well on the previous version! :D

However, don't worry. I'll expect until the next version arrives. I'm simply trying to extract some Smart Install Maker files and with 0.6.7a works as expected.

I have some off-topic (on-topic but not about errors) questions. Should I open a thread or send you a PM :?:
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors

Post by aluigi »

Open a new thread for them.
LALHW
Posts: 3
Joined: Tue Jan 12, 2016 7:26 pm

Re: QuickBMS errors

Post by LALHW »

Hello, I was trying to extract some .bff files from Project CARS but I keep getting the same error:

Code: Select all

- error in src\xalloc.c line 676: xdbg_realloc()

Error: memory allocation problem


Here it is a file example: https://mega.nz/#!WMlUwZhL!Uat5mZJytt1iqTRotCXeG0CJPTULU5LW-ZJAJQ0m4wk. I'm using latest (0.7.2a) version. I hope you can fix this.

Also, is it possible to implement a script for working with Codemasters .pssg files? Please check this .pssg file: https://mega.nz/#!7NFy2C6Z!9JTiaVHLyFx8i65QuP-6hIFwHDSfc1fmMd0w3UTUWQc

Finally, I would like to ask for support for FrostBite's .cas files, I would be very glad if you could figure it out.

Thank you very much for your hard work!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors

Post by aluigi »

Hi, it's a problem affecting the 0.7.2 brach of quickbms and will be fixed in the next version.
In the meantime use 0.7.1:
http://aluigi.org/papers/quickbms_0.7.1.zip

That pssg file is simply compressed with gzip, use 7-zip.
LALHW
Posts: 3
Joined: Tue Jan 12, 2016 7:26 pm

Re: QuickBMS errors

Post by LALHW »

OK, thank you for your answer. But when decompressing a .pssg file, the extracted doesn't have any extension, and can't be opened by 7zip.
Descend
Posts: 2
Joined: Wed Feb 03, 2016 5:04 pm

Re: QuickBMS errors

Post by Descend »

Hi aluigi!

I would like translation the Outcast 1.1

Unpack working, but re-import not work:

Image

Upload the files, and the unpacked files:

https://drive.google.com/file/d/0BwD5Nj ... sp=sharing

So i would like ggg folders to --- text.opk


Thanks
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors

Post by aluigi »

Unfortunately I don't have the recompression algorithm.
Descend
Posts: 2
Joined: Wed Feb 03, 2016 5:04 pm

Re: QuickBMS errors

Post by Descend »

Not possible make?

And i find, possible helping..:

http://www.zoneofgames.ru/forum/index.p ... ntry588329
Butterscup
Posts: 1
Joined: Thu Mar 03, 2016 6:01 am

Re: QuickBMS errors

Post by Butterscup »

This crash happens when I try to unpack a file from Black Desert Online. This is the NA release of Black Desert, not the Korean version that I think this was made for, but it seems to work on 95% of the files. The file ui_data/script/fullsizemode.lua inside of PAD03307.PAZ is the one causing the crash. All the files before it unpack successfully, and if I filter this lua file out quickbms continues until it errors out on another file inside the archive. The script is the one you supply at http://aluigi.altervista.org/bms/blackdesert.bms. I cannot upload the file here because it's over the 5MB limit I think, so here's a link to it! http://www.filedropper.com/pad03307

Code: Select all

C:\Users\Dude\Desktop\BDO Mods>quickbms -Y blackdesert.bms paz\pad03307.paz 03307

QuickBMS generic files extractor and reimporter 0.7.3
by Luigi Auriemma
e-mail: me@aluigi.org
web:    aluigi.org
        (Jan 31 2016 - 12:52:38)

                   quickbms.aluigi.org  Homepage
                            zenhax.com  ZenHAX Forum
                               @zenhax  Twitter & Scripts

- open input file C:\Users\Dude\Desktop\BDO Mods\paz\pad03307.paz
- open script blackdesert.bms
- set output folder 03307
- the folder doesn't exist, do you want to create it (y/N)?:

  offset   filesize   filename
--------------------------------------

- the script has requested to load a function from the dll
  MEMORY_FILE5
  do you want to continue (y/N)?
  - library MEMORY_FILE5 loaded at address 02EAF448
- function found at offset 10001401
- function found at offset 10001469
  00005e2c 4171172    ui_data/font/nanumgothicextrabold.ttf
  0028a34c 648236     ui_data/font/pearl.ttf
  002e48b4 145348     ui_data/font/roboto-regular.ttf
  002f9c24 2173604    ui_data/font/À±°íµñ540_tt.ttf
  0047610c 2141748    ui_data/font/À±°íµñ550.ttf
  005f4624 814        ui_data/ingame/script/counterattack.lua
  005f4954 1592       ui_data/ingame/script/pew/panel_skill_elf_snipe.lua
  005f4aa4 673        ui_data/ingame/xml/counterattack.xml
  005f4d4c 811        ui_data/ingame/xml/pew/panel_skill_elf_snipe.xml
  005f507c 4661       ui_data/script/cutscene.lua
  005f56bc 4964       ui_data/script/cutscene_ocean.lua
  005f5aec 3395       ui_data/script/dragmanager.lua
  005f5ff4 791        ui_data/script/fullsizemode.lua

-------------------
*EXCEPTION HANDLER*
-------------------
An error or crash occurred:

*EH* ExceptionCode      80000001 guard page violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   74b484fa
                        74AC0000 + 000884fa msvcrt.dll
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    06a57000

*EH* Stack Trace:
0x74b484fa : C:\WINDOWS\SYSTEM32\msvcrt.dll : memcpy
0x187fcb : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : [unknown file]
0x1c131b : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : [unknown file]
0x1d18af : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : [unknown file]
0x1d8bb4 : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : [unknown file]
0x201250 : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : [unknown file]
0x2011a6 : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : [unknown file]
0x200fd3 : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : [unknown file]
0x782f4d : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : tripledes_LTX__mcrypt_algorithm_version
0x1710fd : C:\Users\Dude\Desktop\BDO Mods\quickbms.exe : [unknown file]
0x77145de3 : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlUnicodeStringToInteger
0x77145dae : C:\WINDOWS\SYSTEM32\ntdll.dll : RtlUnicodeStringToInteger

Last script line before the error or that produced the error:
  144 encryption "" ""
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors

Post by aluigi »

Script 0.2.1, thanks.
The problem was caused by a file that wasn't compressed (SIZE was smaller than ZSIZE).
saltmaxwell
Posts: 3
Joined: Tue Mar 22, 2016 4:22 pm

Re: QuickBMS errors

Post by saltmaxwell »

Hello,
I was trying to extract files(obj.bin and tex.bin) from Virtua Fighter 5FS DLC data(.farc) with QuichBMS 0.7.3 and vf5 script.
Use script: http://aluigi.altervista.org/papers/bms ... hter_5.bms
I get This error:
http://i.imgur.com/ZA9mQs8.png

An error occurred from "sartim316_obj.bin".

Can you help me?

Thank you.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS errors

Post by aluigi »

That error means that the compressed file at that offset can't be decompressed (gzip).
You have to provide the file and I will check it.
saltmaxwell
Posts: 3
Joined: Tue Mar 22, 2016 4:22 pm

Re: QuickBMS errors

Post by saltmaxwell »

Thanks for your quick reply!

Upload the files
https://drive.google.com/file/d/0B3nIdb ... sp=sharing

Thanks