Difference between revisions of "Hercules"

From XentaxWiki
Jump to: navigation, search
 
(FS: fixed)
Line 11: Line 11:
 
=== Format Specifications ===  
 
=== Format Specifications ===  
  
<tt><b>
+
{{GRAFPageFormat|1=
<font color="blue"> ''' // for each file ''' </font> <br>
+
{{BlockDescription| // for each file (1024 records) }}
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Hash? '' </font> <br>
+
: uint32 {4} &nbsp; - File Hash
: uint32 {4}&nbsp;&nbsp; - File Offset <br>
+
: uint32 {4} &nbsp; - File Offset
: uint32 {4}&nbsp;&nbsp; - File Length <br>
+
: uint32 {4} &nbsp; - File Length
<br>
+
 
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - null Padding to offset 6144 <br>  
+
byte {X} &nbsp;&nbsp;&nbsp; - File Data}}
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
+
 
</b></tt>
+
 
 +
=== Notes and Comments ===
 +
Hash routine in C++ code:
 +
<pre>unsigned int herchash(char *s){
 +
unsigned int hash, i;
 +
  hash = 0;
 +
  for(i = 0; i<strlen(s); i++){
 +
    hash += toupper(s[i]) << ((i*8)%32);
 +
  }
 +
  hash += strlen(s);
 +
  return(hash);
 +
}</pre>
 +
 
  
 
=== MultiEx BMS ===  
 
=== MultiEx BMS ===  
Line 27: Line 39:
 
=== Supported Programs ===  
 
=== Supported Programs ===  
  
* [[Game Extractor|Game Extractor]]<br>
+
* [[Game Extractor|Game Extractor]]
 +
* ctpax-x.ru/?goto=files&show=114 / Disney's Hercules tools (with Delphi source codes)

Revision as of 23:42, 20 March 2012

Choose archive extension:

FS


Format Specifications

// for each file (1024 records)
uint32 {4}   - File Hash
uint32 {4}   - File Offset
uint32 {4}   - File Length
byte {X}     - File Data


Notes and Comments

Hash routine in C++ code:

unsigned int herchash(char *s){
unsigned int hash, i;
  hash = 0;
  for(i = 0; i<strlen(s); i++){
    hash += toupper(s[i]) << ((i*8)%32);
  }
  hash += strlen(s);
  return(hash);
}


MultiEx BMS

Not written yet

Supported Programs

  • Game Extractor
  • ctpax-x.ru/?goto=files&show=114 / Disney's Hercules tools (with Delphi source codes)