Disney's Hercules FS: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
 
imported>Ikskoks
m (Ikskoks moved page Disney's Hercules to Disney's Hercules FS)
 
(16 intermediate revisions by 3 users not shown)
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]]
* [http://www.ctpax-x.org/?goto=files&show=114 Disney's Hercules tools] (with Delphi source codes)
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Disney's%20Hercules%20PC/Hercules_PC_Tool.py Hercules PC Tool]
 
 
[[Category:Complete Complete|Disney's Hercules]]
[[Category:Platform PC|Disney's Hercules]]
[[Category:CE None|Disney's Hercules]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_fs | Extension: fs]]
[[Category:BMS_None | BMS: None]]
[[Category:File Format]]
[[Category:Hash]]

Latest revision as of 14:07, 10 January 2021

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