ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax
It is currently Mon May 23, 2022 7:31 am

All times are UTC




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Space Marshals 2(.bar)
PostPosted: Thu Jun 22, 2017 12:11 pm 

Joined: Mon Jul 04, 2016 8:37 am
Posts: 15
It seems that there are several formats in the game.
CRAB .... PxZP
CRAB .... PSND
CRAB .... TLPB
Only uploaded a small file.
Thanks in advance!


Attachments:
File comment: Sample
objects.rar [2.46 MiB]
Downloaded 167 times
Top
   
PostPosted: Sun Jun 25, 2017 11:57 pm 

Joined: Mon Jul 04, 2016 8:37 am
Posts: 15
Solved by using the default comtype.

Code:
Endian little
IDString "CRAB"
Get empty long

get fSize ASIZE
math FileInfoStart = fSize
math FileInfoStart - 8
GoTo FileInfoStart
get FileInfoOffset LONG
GoTo FileInfoOffset

get numFiles LONG
for i = 0 < numFiles
   get PackStartPos LONG
   get PackSize LONG
   get ehelper BYTE
   get lenPackName SHORT
   GetDString PackFPath lenPackName
   get wtf LONG

   SavePos cPackInfoPos

   GoTo PackStartPos
   get pxN LONG
   get dataSize LONG
   get zipSize LONG

   # ComType LZSS0_COMPRESS
   # ComType lz4_compress
   # ComType LZSS_Compress
   # ComType zlib
   # ComType zlib_compress
   # ComType zlib_noerror

   math packDataOffset = PackStartPos
   math packDataOffset + 12
   Clog PackFPath packDataOffset zipSize dataSize
   GoTo cPackInfoPos
Next i


Top
   
PostPosted: Tue Apr 05, 2022 6:21 pm 

Joined: Tue Apr 05, 2022 6:17 pm
Posts: 4
:?: I can't open any of the data files(.bar) or the obb files because the files are too big, how do I extend the file size limit? Should I use the command prompt? If so how do I do it? Any help with modding these games are greatly appreciated.


Top
   
PostPosted: Sat May 14, 2022 8:05 pm 
User avatar

Joined: Tue Jan 18, 2022 12:21 am
Posts: 106
MrCinematic wrote:
:?: I can't open any of the data files(.bar) or the obb files because the files are too big, how do I extend the file size limit? Should I use the command prompt? If so how do I do it? Any help with modding these games are greatly appreciated.

use quickbms 4gb version


Top
   
PostPosted: Sun May 15, 2022 4:49 pm 

Joined: Tue Apr 05, 2022 6:17 pm
Posts: 4
I tried that, but I'll try again.


Top
   
PostPosted: Sun May 15, 2022 4:55 pm 

Joined: Tue Apr 05, 2022 6:17 pm
Posts: 4
Naa.. " offset filesize filename
--------------------------------------
0000000000000014 33414 data\Audio\Alert_GW.psn

Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info: algorithm 1
offset 0000000000000014
input size 0x0000000000000004 4
output size 0x0000000000008286 33414
result 0xffffffffffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (33414)
It usually means that data is not compressed or uses another algorithm

Last script line before the error or that produced the error:
37 Clog PackFPath packDataOffset zipSize dataSize

Press ENTER or close the window to quit"


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