It seems that there are several formats in the game.
CRAB .... PxZP
CRAB .... PSND
CRAB .... TLPB
Only uploaded a small file.
Thanks in advance!
Space Marshals 2(.bar)
-
- Posts: 15
- Joined: Mon Jul 04, 2016 8:37 am
Re: Space Marshals 2(.bar)
Solved by using the default comtype.
Code: Select all
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
-
- Posts: 5
- Joined: Tue Apr 05, 2022 6:17 pm
Re: Space Marshals 2(.bar)
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.
-
- Posts: 179
- Joined: Tue Jan 18, 2022 12:21 am
Re: Space Marshals 2(.bar)
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
-
- Posts: 5
- Joined: Tue Apr 05, 2022 6:17 pm
Re: Space Marshals 2(.bar)
I tried that, but I'll try again.
-
- Posts: 5
- Joined: Tue Apr 05, 2022 6:17 pm
Re: Space Marshals 2(.bar)
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"
--------------------------------------
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"
-
- Posts: 5
- Joined: Tue Apr 05, 2022 6:17 pm
Re: Space Marshals 2(.bar)
Maybe I didn't compile the scrip right... How is it done?