ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Dec 12, 2017 9:39 pm

All times are UTC




Post new topic  Reply to topic  [ 251 posts ]  Go to page Previous 19 10 11 12 13 Next
Author Message
PostPosted: Sat Mar 18, 2017 1:28 am 
User avatar

Joined: Tue Feb 02, 2016 2:35 am
Posts: 981
Excuse me, how are "lzo1x" and "lzo2a" highlighed as bold blue on notepad++(by using quickbms language that was imported from the program) while "xmemdecompress" are highlighted as just plain blue?
Image
Or maybe it's just me being an idiot.

_________________
Expect my username to be everywhere, whether you're using the internet or not.


Top
   
PostPosted: Sat Mar 18, 2017 9:26 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7233
Fixed.
It was an old version of the file dated 31 May 2015 that additionally didn't contain these important lzo* :)


Top
   
PostPosted: Sat Mar 18, 2017 1:18 pm 
User avatar

Joined: Tue Feb 02, 2016 2:35 am
Posts: 981
Thanks for the fix.

Anyway, I know this thread is not about "games" but since this is also about compression issues I feel no other thread fits than this one.

So, I had to modify your assassins_creed2.bms script just to see if it works with the extracted files of Assassin's Creed. One file in particular from the Xbox 360 version of the game refuses to work.

Code:
  offset   filesize   filename
--------------------------------------
  00000000 714        Map_Menu_0

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

*EH* ExceptionCode      80000001 guard page violation
*EH* ExceptionFlags     00000000
*EH* ExceptionAddress   00829c87
                        00400000 + 00429c87 quickbms.exe
*EH* NumberParameters   00000002
*EH*                    00000000
*EH*                    0b195001

Last script line before the error or that produced the error:
  63  clog MEMORY_FILE OFFSET ZSIZE SIZE
I had attached the file and the modified script in question.


Attachments:
assassins_creed2.rar [730 Bytes]
Downloaded 31 times
Map_Menu_XBOX360.rar [881.4 KiB]
Downloaded 24 times

_________________
Expect my username to be everywhere, whether you're using the internet or not.
Top
   
PostPosted: Sat Mar 18, 2017 3:15 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7233
I don't know.
The first file (0x00000019: 0x00000229 -> 0x000002ca) was correctly decompressed, no idea why there are problems with the chunks of the second one (0x0000047b: 0x00002d8a -> 0x00008000), everything is correct as far as I can see except for the data of the second file that (at a first look) doesn't seem xmem.


Top
   
PostPosted: Sat Mar 18, 2017 4:07 pm 
User avatar

Joined: Tue Feb 02, 2016 2:35 am
Posts: 981
Yeah I thought so too.
However, in the decrypted binary executable of the Xbox 360 version of the game, I found three strings that indicate these compression algorithms:
Code:
LZX
LZO2A
LZO1X_999
LZO1X_1
One of them isn`t even supported on quickbms(lzo1x_999), while my guess is that lzo1x_1 might be the same as lzo1x.
These are just clues I`ve gotten anyway. Perhaps you might have better luck than me in figuring out the compression algorithm used on that file.

_________________
Expect my username to be everywhere, whether you're using the internet or not.


Top
   
PostPosted: Sat Mar 18, 2017 4:24 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7233
LZX: it's xmemdecompress (Microsoft LZX)
LZO2A: lzo2a
LZO1X_999: it's the recompression algorithm of lzo1x, it's the same used by quickbms with comtype lzo1x_compress
LZO1X_1: lzo1x


Top
   
PostPosted: Sat Mar 18, 2017 5:33 pm 
User avatar

Joined: Tue Feb 02, 2016 2:35 am
Posts: 981
Huh.

_________________
Expect my username to be everywhere, whether you're using the internet or not.


Top
   
PostPosted: Sat Mar 18, 2017 9:09 pm 
User avatar

Joined: Tue Feb 02, 2016 2:35 am
Posts: 981
Here are more versions from the Xbox 360 version of Assassin`s Creed. Because I think that just one isn`t enough.

_________________
Expect my username to be everywhere, whether you're using the internet or not.


Top
   
PostPosted: Tue Mar 28, 2017 7:29 pm 
User avatar

Joined: Thu Oct 02, 2014 4:58 pm
Posts: 148
Today i got a message in Linux that xmemcompress is only supported in windows, is possible to fix it?


Top
   
PostPosted: Wed Mar 29, 2017 2:29 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7233
Unfortunately I can't help with that because it's an API of the XboxSDK for Win32 that can't be used on Linux.
As far as I know there are no open source versions of xmemdecompress, in the past I already checked some "supposedly working" codes and they failed in misery, so you can save your time instead of searching :)


Top
   
PostPosted: Wed Mar 29, 2017 9:19 pm 
User avatar

Joined: Thu Oct 02, 2014 4:58 pm
Posts: 148
Oh..well thanks anyway :D, wine works great with the quickbms


Top
   
PostPosted: Thu Mar 30, 2017 9:04 am 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 135
I think umodel does not use it.
https://github.com/gildor2/UModel/blob/ ... ession.cpp


Top
   
PostPosted: Thu Mar 30, 2017 11:23 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7233
lzxd is already available in quickbms in the compression/unmspack.c but it uses the hardcoded window_bits 21 (lzxcab) and 16 (lzxchm), while apparently it needs 17 for xmem.
Added in my TODO the possibilty to specify arbitrary arguments to pass to the decompressor.


Top
   
PostPosted: Wed Apr 05, 2017 7:29 am 

Joined: Tue Dec 20, 2016 8:18 pm
Posts: 15
Thank you for implementing labels, but looks like I found bug. If labels used in the function then it causes script to loop endlessly. Here is example:
Code:
debug
callfunction INSIDE

startfunction INSIDE
set CHECK byte 0
print "000"
test:
if CHECK = 4
   continue end
endif
print "AAA"
continue test2
print "BBB"
label test2
print "CCC"
math CHECK + 1
continue test
end:
endfunction


Top
   
PostPosted: Wed Apr 05, 2017 3:36 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7233
I can only suggest you to replace continue with break and check if something changes but in any case everything worked correctly in my tests (that involved also functions) and there will be no updates for this (so called) feature in future.


Top
   
PostPosted: Wed Apr 05, 2017 5:55 pm 

Joined: Tue Dec 20, 2016 8:18 pm
Posts: 15
Break has the same effect.


Top
   
PostPosted: Thu Apr 06, 2017 1:38 pm 
User avatar

Joined: Tue Feb 02, 2016 2:35 am
Posts: 981
aluigi wrote:
lzxd is already available in quickbms in the compression/unmspack.c but it uses the hardcoded window_bits 21 (lzxcab) and 16 (lzxchm), while apparently it needs 17 for xmem.
Added in my TODO the possibilty to specify arbitrary arguments to pass to the decompressor.
Does that mean the issue I`m having with the Xbox 360 version of Assassin`s Creed(by using my scimitar_compressed.bms script, no less) will be eventually "fixed"?

_________________
Expect my username to be everywhere, whether you're using the internet or not.


Top
   
PostPosted: Fri Apr 07, 2017 11:45 am 

Joined: Fri Apr 07, 2017 11:39 am
Posts: 1
I get a "rnc_packed_crc_error" when trying to use the robotwarsed.bms script with QuickBMS 0.8.0. 0.7.7 works just fine, though, so I'll stick with that until Luigi fixes this :)


Top
   
PostPosted: Sat Apr 08, 2017 7:42 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7233
Thanks for the report, I "touched" the rnc code just in 0.8.0 and apparently I forgot to disable the rnc check... oh well it happens


Top
   
PostPosted: Sat Apr 29, 2017 5:16 pm 

Joined: Sat Apr 29, 2017 4:24 pm
Posts: 2
Hey, just got a memory allocation error from the Zero Escape: The Nonary Games script. Let me know if you need any further details. Just looking to get the whole thing unpacked.

http://i.imgur.com/vAxdDvO.png

The assets unpacked so far have been hugely helpful, so thanks for this.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 251 posts ]  Go to page Previous 19 10 11 12 13 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