The Evil Within (*.bimage) HELP

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Sajjad_Rahim
Posts: 64
Joined: Sat Jan 10, 2015 10:03 am

The Evil Within (*.bimage) HELP

Post by Sajjad_Rahim »

Hi
first i knew there is thread about game and .bimage textures

but i tried everything (script,GIMP, And edit by hex, etc...)

and result damage textures and i cant convert to DDS

HERE SOME SAMPLES FILES

https://mega.nz/#!yNElAARC!eKsH4SchDiGK ... 4qdSItoCdw


And also i tried MerlinSVK script and still no result :evil:
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: The Evil Within (*.bimage) HELP

Post by shadow_lonely »

Try this:

# iD Tech 5 engine
# BIMAGE to DDS converter
# by MerlinSVK Oct 2014
# script for QuickBMS http://aluigi.org/papers.htm#quickbms

set MEMORY_FILE binary "\x44\x44\x53\x20\x7C\x00\x00\x00\x07\x10\x08\x00\xAA\xAA\xAA\xAA\xBB\xBB\xBB\xBB\xCC\xCC\xCC\xCC\x00\x00\x00\x00\x01\x00\x00\x00\x4D\x45\x52\x4C\x49\x4E\x3A\x29\x01\x00\x03\x00\x59\x43\x47\x31\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x04\x00\x00\x00\x44\x58\x54\x35\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
get NAME basename
string NAME += ".dds"

get FSIZE asize
goto 0x10
endian big
get WIDTH long
get HEIGHT long
endian little
goto 0x42
savepos START

math DATASIZE = FSIZE
math DATASIZE -= 0x42

putVarChr MEMORY_FILE 0XC HEIGHT long
putVarChr MEMORY_FILE 0x10 WIDTH long
putVarChr MEMORY_FILE 0x14 DATASIZE long

append
log MEMORY_FILE START DATASIZE
append

get DDSSIZE asize MEMORY_FILE
log NAME 0 DDSSIZE MEMORY_FILE


# idTech 5 Engine
# DDS to BIMAGE converter
# by MerlinSVK Oct 2014
# script for QuickBMS http://aluigi.org/papers.htm#quickbms

set MEMORY_FILE binary "\x53\xD8\x4F\x64\x09\x4D\x49\x42\x00\x00\x00\x00\x00\x00\x00\x00\xAA\xAA\xAA\xAA\xBB\xBB\xBB\xBB\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x0B\x00\x00\x00\x05\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\xAA\xAA\xAA\xAA\xBB\xBB\xBB\xBB\xCC\xCC\xCC\xCC"

get NAME basename
string NAME += ".bimage_NEW"

goto 0xC
get HEIGHT long
get WIDTH long
get DDSSIZE long

append
log MEMORY_FILE 0x80 DDSSIZE
append

reverselong HEIGHT
reverselong WIDTH
reverselong DDSSIZE

putVarChr MEMORY_FILE 0x10 WIDTH long
putVarChr MEMORY_FILE 0x14 HEIGHT long
putVarChr MEMORY_FILE 0x36 WIDTH long
putVarChr MEMORY_FILE 0x3A HEIGHT long
putVarChr MEMORY_FILE 0x3E DDSSIZE long

get BIMGSIZE asize MEMORY_FILE
log NAME 0 BIMGSIZE MEMORY_FILE
Sajjad_Rahim
Posts: 64
Joined: Sat Jan 10, 2015 10:03 am

Re: The Evil Within (*.bimage) HELP

Post by Sajjad_Rahim »

thanks works fine!