# Open_Season_dec.bms
# Game: Open Season
# Unreal Engine 2 v927 *.dec files
# script for QuickBMS http://quickbms.aluigi.org
set CurOffset long 0
get FileSize asize
get FileName basename
set FileCount long 0
do
get B byte
math CurOffset + 1
if B == 0xc1
get C byte
math CurOffset + 1
if C == 0x83
get D byte
math CurOffset + 1
if D == 0x2a
get E byte
math CurOffset + 1
if E == 0x9e
xmath Offset "CurOffset - 4"
print "%Offset%"
putArray 0 FileCount Offset
math FileCount + 1
endif
endif
endif
endif
xmath NextOffset "CurOffset + 4"
while NextOffset < FileSize
print "%FileCount%"
for index = 0 < FileCount
getArray Offset 0 index
set NextOffset long FileSize
xmath x "index + 1"
if x < FileCount
getArray NextOffset 0 x
endif
xmath Size "NextOffset - Offset"
string TempName p= "%s_%i.%s" FileName index assets
log TempName Offset Size
next index
Let me enlighten you: end effect of those three scripts is bunch of files which the game engine (UE2) is using. At this point unless you will write a decompiler (time consuming), there is no easy way to export UE content.
OFC, you can open decompressed (.dec) file in some Hex editor and find all needed offsets, then guess 'what is what' and where belong to - good luck wth that ...- AND maybe in a few years you will finish what you are trying to achive.
Good luck.