ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Aug 18, 2018 12:35 pm

All times are UTC




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Fri Feb 09, 2018 4:29 pm 

Joined: Sun Nov 05, 2017 12:45 am
Posts: 7
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: me@aluigi.org
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!


Top
   
PostPosted: Fri Feb 09, 2018 8:44 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8614
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


Top
   
PostPosted: Fri Feb 09, 2018 11:37 pm 

Joined: Sun Nov 05, 2017 12:45 am
Posts: 7
Your script works as a charm!
But even using it, I got the same error with the file I provided up.... :(


Top
   
PostPosted: Sat Feb 10, 2018 8:07 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8614
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 :)


Top
   
PostPosted: Sat Feb 10, 2018 8:19 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8614
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.


Top
   
PostPosted: Sat Feb 10, 2018 8:25 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8614
*edit* wrong


Top
   
PostPosted: Sun Feb 11, 2018 1:50 am 

Joined: Sun Nov 05, 2017 12:45 am
Posts: 7
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: me@aluigi.org
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


Top
   
PostPosted: Sun Feb 11, 2018 12:07 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8614
my mistake, forget my previous post, there is no work-around


Top
   
PostPosted: Sun Feb 11, 2018 4:45 pm 

Joined: Sun Nov 05, 2017 12:45 am
Posts: 7
No problem, Aluigi. Thanks for your help, and for this great tool you made.
With best regards,
cfarl


Top
   
PostPosted: Thu Mar 01, 2018 5:16 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8614
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 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