They look like big endian DDS files but i used a script to swap the endian and it's just distorted. Anyway this should add your .DDS header.
Code: Select all
# Bad Company 2 DDS Converter
# Xbox 360 Only
# MrNightmareTM
get NAME basename
getdstring NAME2 0x10
goto 0x50
get UNK1 long
reverselong UNK1
get UNK2 long
reverselong UNK2
set MEMORY_FILE2 binary "\x44\x44\x53\x20\x7C\x00\x00\x00\x07\x10\x0A\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x05\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\x08\x10\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
putVarChr MEMORY_FILE2 0xC UNK1 long
putVarChr MEMORY_FILE2 0x10 UNK2 long
append
get SIZE asize MEMORY_FILE2
log MEMORY_FILE 0 SIZE MEMORY_FILE2
get SIZE asize
math SIZE -= 0x9C
log MEMORY_FILE 0x9C SIZE
append
get SIZE asize MEMORY_FILE
string NAME += ".dds"
log NAME 0 SIZE MEMORY_FILE
They look like big endian dds files as i previously said
Before:
After Conversion:
Original PC file:
You can see they look very similar but still distorted but it's progress, the file looks like it needs unswizzling.
Anyway here is that other script made ages ago:
Code: Select all
# Endian Big .DDS to Endian Little .DDS
# May not have full support
# MrNightmareTM
# Special thanks, Chrrox for the method!
# v0.1a
get SIZE asize
log MEMORY_FILE 0 SIZE
get SIZE2 asize
math SIZE2 -= 0x80
math SIZE2 /= 4
goto 0x80
for i = 0 < SIZE2
savepos CURRENTOFFSET
get UNK1 short
reverseshort UNK1
putVarChr MEMORY_FILE CURRENTOFFSET UNK1 short
savepos CURRENTOFFSET
get UNK1 short
reverseshort UNK1
putVarChr MEMORY_FILE CURRENTOFFSET UNK1 short
next i
get NAME basename
string NAME += "_reversed.dds"
log NAME 0 SIZE MEMORY_FILE
Seems weird how the file is all swizzled, is it swizzled or is it something else?