Monday, July 1, 2013

Desperados : Wanted Dead or Alive - .res / .RES files

List of files with extension .res or .RES :
 PS F:\> $Dir = get-childitem -recurse F:\Game\Infogrames\Desperados\Game  
 PS F:\> $List = $Dir | where {$_.extension -eq ".res"}  
 PS F:\> $List | ft fullname | Format-Table  
 FullName  
 --------  
 F:\Game\Infogrames\Desperados\Game\Data\Interface\DEFAULT.RES  
 F:\Game\Infogrames\Desperados\Game\Data\Interface\Texts.res  
 F:\Game\Infogrames\Desperados\Game\Data\Sounds\Expressions\Expressions.res  

Method to open .res file :
 005D8270 ReadResFile proc near  

File format specification

 +0x00 : Magic Number  
 +0x04 : Archive Version  
 +0x08 : Nb Entry  
 +0x0C : Format  
 +0x10 : Unknow_0  
 ....
Magic number must be equal to 0x53455253 ('SERS').
ArchiveVersion must be equal to 0x100 (256).
Format can be equal to :

  • 0x45564157 ('EVAW') : 0x005D96A0 WaveResFile proc near
  • 0x43434950 ('CCIP') : 0x005D8D50 PiccResFile proc near
  • 0x44494C53 ('DILS') : 0x005DA0E0 SlidResFile proc near
  • 0x20525543 (' RUC') : 0x005D9CA0 CurResFile proc near
  • 0x20434950 (' CIP') : 0x005D8A10 PicResFile proc near
  • 0x204F4452 (' ODR') : 0x005DA800 RdoResFile proc near
  • 0x4E545442 ('NTTB') : 0x005DA470 BttnResFile proc near
  • 0x4654504E ('FTPN') : 0x005D8630 NptfResFile proc near
  • 0x4C474F54 ('LGOT') : 0x005DAB90 ToglResFile proc near
  • 0x54584554 ('TXET') : 0x005D90B0 TextResFile proc near
Refer to other articles to understand each entry type.

2 comments: