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.

Error with quickbms dk2_compress

Featured Replies

  • Author
  • Localization

cfarl, posted Fri Feb 09, 2018 4:29 pm (32305)


Hi!
I'm getting and error when running the a script in a particular .lha decompressed file from Dead Space.

My script:
Code:
comtype dk2_compress
get ZSIZE asize
goto 2
endian big
get SIZE threebyte
get NAME basename
string NAME = "primeiro_comp.LH2"
clog NAME 0 ZSIZE SIZE

My file: https://drive.google.com/open?id=13PVC2x2KV2IOc03Tp1FfkYnGi6PE6Kkg

My call to quickbms:
Code:
quickbms.exe -o comprimir-lh2.bms primeiro_descom.LH2

QuickBms Error Message:
Code:
QuickBMS generic files extractor and reimporter 0.8.3
by Luigi Auriemma
e-mail: [email protected]
web:    aluigi.org
        (Jan 21 2018 - 15:18:31)

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

- open input file C:\danger\traducoes\traducao-dead space\erro_quickbms\primeiro_descom.LH2
- open script comprimir-lh2.bms
- set output folder .

  offset   filesize   filename
--------------------------------------
  00000000 4410368    primeiro_comp.LH2

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

*EH* ExceptionCode      80000001 guard page violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   012b7ddf
                        012A0000 00017ddf quickbms.exe
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    0e2ee000

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

Can you help me?

Thanks in advance!
  • Author
  • Localization

aluigi, posted Fri Feb 09, 2018 8:44 pm (32308)


I have no idea of what you want to do, really.
Anyway if you want just to compress the file:
Code:
comtype dk2_compress
get SIZE asize
clog "new_file" 0 SIZE SIZE
  • Author
  • Localization

cfarl, posted Fri Feb 09, 2018 11:37 pm (32317)


Your script works as a charm!
But even using it, I got the same error with the file I provided up.... :(
  • Author
  • Localization

aluigi, posted Sat Feb 10, 2018 8:07 pm (32340)


Interesting.
Unfortunately the dk2/qfs compressor has not been written by me so I have no ideas, but it looks like it's a bit messy and buggy, that explains why it wants to access data outside the buffer.
I will check it for the next version of quickbms, maybe I will find a solution by myself.

It's interesting that the issue seems to happen just with your file :)
  • Author
  • Localization

aluigi, posted Sat Feb 10, 2018 8:19 pm (32341)


Ok the problem seems to be the necessity of having 1028 zeroes after the file... definitely a bad thing.
I will fix it by myself.
  • Author
  • Localization

aluigi, posted Sat Feb 10, 2018 8:25 pm (32342)


*edit* wrong
  • Author
  • Localization

cfarl, posted Sun Feb 11, 2018 1:50 am (32349)


ok, this new script works with the first file, but not with this.... https://drive.google.com/open?id=1ifLH2R2ZHyGtXTYlJLo7Kcy7mIwUALOu :(

Code:
QuickBMS generic files extractor and reimporter 0.8.3
by Luigi Auriemma
e-mail: [email protected]
web:    aluigi.org
        (Jan 21 2018 - 15:18:31)

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

- open input file C:\Users\admin\Desktop\Traducoes\Dead Space\criar_novo_str\primeiro_descom.LH2
- open script tools\comprimir-lh2.bms
- set output folder .

  offset   filesize   filename
--------------------------------------
  00000000 244715     primeiro_comp.LH2

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

*EH* ExceptionCode      80000001 guard page violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   000c7ddf
                        000B0000 00017ddf quickbms.exe
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    0d04e000

Last script line before the error or that produced the error:
  10  clog NAME 0 TMP SIZE MEMORY_FILE
  • Author
  • Localization

aluigi, posted Sun Feb 11, 2018 12:07 pm (32356)


my mistake, forget my previous post, there is no work-around
  • Author
  • Localization

cfarl, posted Sun Feb 11, 2018 4:45 pm (32387)


No problem, Aluigi. Thanks for your help, and for this great tool you made.
With best regards,
cfarl
  • Author
  • Localization

aluigi, posted Thu Mar 01, 2018 5:16 pm (32805)


The bug will be fixed in the upcoming quickbms 0.8.4.
It was extremely easy to fix so I have no idea why the author preferred to create a bug on purpose (as described in his comments) rather than adding a simple check on 2 pointers, it doesn't seem a "requirement" of the algorithm... mah.
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.