The Evil Within (*.bimage) Conversion

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

The Evil Within (*.bimage) Conversion

Post by shadow_lonely »

Hi, can someone help me to convert this raw image(bimage) to other format and vice versa..?

https://mega.co.nz/#!4cY1GbhT!wSyu8zStM ... K1mfThGPzQ

Here are my result with texture finder, (DXT3/DXT5) I can sure it is font file, but I can not edit it! Anyone could help me edit .bimage file? Thanks!

Image
Image
Image
Image
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: The Evil Within (*.bimage) Conversion

Post by shadow_lonely »

Someone! Plesea
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: The Evil Within (*.bimage) Conversion

Post by michalss »

No matter coz you cannot do reimport anyway, so this is very pointless :(
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: The Evil Within (*.bimage) Conversion

Post by shadow_lonely »

michalss wrote:No matter coz you cannot do reimport anyway, so this is very pointless :(


With new script! I repack sucessfully! Both font and lang file! But I cannot edit .bimage file, I tried your 010 temple, but seem need update something! :cry: :cry: :cry:
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: The Evil Within (*.bimage) Conversion

Post by michalss »

shadow_lonely wrote:
michalss wrote:No matter coz you cannot do reimport anyway, so this is very pointless :(


With new script! I repack sucessfully! Both font and lang file! But I cannot edit .bimage file, I tried your 010 temple, but seem need update something! :cry: :cry: :cry:



You sure you did successfull reimport ? I did try it a few times without the success
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: The Evil Within (*.bimage) Conversion

Post by shadow_lonely »

michalss wrote:
shadow_lonely wrote:
michalss wrote:No matter coz you cannot do reimport anyway, so this is very pointless :(


With new script! I repack sucessfully! Both font and lang file! But I cannot edit .bimage file, I tried your 010 temple, but seem need update something! :cry: :cry: :cry:



You sure you did successfull reimport ? I did try it a few times without the success


I'm sure. I edited text and reimport sucess! But, i can not edit font file. :cry:
anarkad
Posts: 13
Joined: Sat Oct 18, 2014 12:19 am

Re: The Evil Within (*.bimage) Conversion

Post by anarkad »

with pc wiles script works, not for x360 / ps3
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: The Evil Within (*.bimage) Conversion

Post by michalss »

anarkad wrote:with pc wiles script works, not for x360 / ps3



well too bad :( im interested only about X360 version, dont have PC version...
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: The Evil Within (*.bimage) Conversion

Post by MerlinSVK »

shadow_lonely wrote:... But, i can not edit font file. :cry:


Try these BMS scripts. Some chars are in RGB channels, and some are in Alpha.

EDIT: I rewrote the scripts to also support PS3 font textures

Code: Select all

# iD Tech 5 engine
# BIMAGE to DDS converter (PC/PS3)
# by MerlinSVK    Oct 2014
# version 1.1
# 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 HNAME = NAME
string HNAME += ".head"
string NAME += ".dds"

get ASIZE asize
get ID long

if ID == "0x644FD853"      # PC
     goto 0x10
     endian big
     get WIDTH long
     get HEIGHT long
    endian little
     goto 0x42
     savepos START
    xmath DATASIZE "ASIZE - START"
    log HNAME 0 START   # save header for backward conversion
else
     goto 0xC
     endian big
     get WIDTH long
     get HEIGHT long
    endian little
     goto 0x3E
     savepos START
    xmath DATASIZE "ASIZE - START"
    log HNAME 0 START   # save header for backward conversion
endif

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



Code: Select all

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

open FDDE DDS 0
open FDDE HEAD 1

get NAME basename
string NAME += ".bimage_NEW"

get DSIZE asize 0
math DSIZE -= 0x80
get HSIZE asize 1

math FINAL_SIZE = HSIZE + DSIZE
putvarchr MEMORY_FILE FINAL_SIZE 0
log MEMORY_FILE 0 0

log MEMORY_FILE 0 HSIZE 1      # copy header into memory_file
append
log MEMORY_FILE 0x80 DSIZE 0   # append texture data
append

get BIMGSIZE asize MEMORY_FILE
log NAME 0 BIMGSIZE MEMORY_FILE
Last edited by MerlinSVK on Fri Oct 31, 2014 10:33 pm, edited 1 time in total.
Ned Stark
Posts: 2
Joined: Tue Oct 21, 2014 1:15 am

Re: The Evil Within (*.bimage) Conversion

Post by Ned Stark »

shadow_lonely wrote:With new script! I repack sucessfully! Both font and lang file! But I cannot edit .bimage file, I tried your 010 temple, but seem need update something! :cry: :cry: :cry:


shadow_lonely wrote:I'm sure. I edited text and reimport sucess! But, i can not edit font file. :cry:



Hi, shadow_lonely. I also tried to reinsert the edited texts and failed, could you share with us your script? Please ;)
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: The Evil Within (*.bimage) Conversion

Post by shadow_lonely »

Ned Stark wrote:
shadow_lonely wrote:With new script! I repack sucessfully! Both font and lang file! But I cannot edit .bimage file, I tried your 010 temple, but seem need update something! :cry: :cry: :cry:


shadow_lonely wrote:I'm sure. I edited text and reimport sucess! But, i can not edit font file. :cry:



Hi, shadow_lonely. I also tried to reinsert the edited texts and failed, could you share with us your script? Please ;)


Here this script: http://aluigi.org/papers/bms/others/the_evil_within.bms
Have a good day! ^^
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: The Evil Within (*.bimage) Conversion

Post by shadow_lonely »

MerlinSVK wrote:
shadow_lonely wrote:... But, i can not edit font file. :cry:


Try these BMS scripts. Some chars are in RGB channels, and some are in Alpha.


Thanks! But something wrong?

Image

I will try again! Thanks again! ^^
Ned Stark
Posts: 2
Joined: Tue Oct 21, 2014 1:15 am

Re: The Evil Within (*.bimage) Conversion

Post by Ned Stark »

shadow_lonely wrote:Here this script: http://aluigi.org/papers/bms/others/the_evil_within.bms
Have a good day! ^^


Thanks, but unfortunately it did not work for me ... I'll keep trying.

I'm trying to locate the game, but I can not reinsert the files, what a pity.
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: The Evil Within (*.bimage) Conversion

Post by MerlinSVK »

shadow_lonely wrote:Thanks! But something wrong?


Nope, it's OK. Because...

Some chars are in RGB channels, and some are in Alpha.
greenbingo
Posts: 7
Joined: Fri Oct 31, 2014 6:09 pm

Re: The Evil Within (*.bimage) Conversion

Post by greenbingo »

i have ps3 48.bimage file
how can i convert bimage to dds & dds to bimage?
that bms file not support in ps3 bimage file
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: The Evil Within (*.bimage) Conversion

Post by MerlinSVK »

Now they do ;)
greenbingo
Posts: 7
Joined: Fri Oct 31, 2014 6:09 pm

Re: The Evil Within (*.bimage) Conversion

Post by greenbingo »

Thanks! MerlinSVK

it's working!!!!
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: The Evil Within (*.bimage) Conversion

Post by shadow_lonely »

greenbingo wrote:Thanks! MerlinSVK

it's working!!!!


Still can not reimport! When you find out a problem. Please help me! Thanks!
birseysoylicem
Posts: 3
Joined: Mon Dec 15, 2014 11:14 am

Re: The Evil Within (*.bimage) Conversion

Post by birseysoylicem »

@MerlinSVK
how to common.tpr repack ps3 version? please help me.
MerlinSVK
Posts: 165
Joined: Wed Aug 13, 2014 10:00 am

Re: The Evil Within (*.bimage) Conversion

Post by MerlinSVK »

I don't know how to repack it.