Insane 1nsane IDF: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(76 intermediate revisions by the same user not shown)
Line 18: Line 18:
// header
// header
4 bytes (char) - signature  // "FFFL"
4 bytes (char) - signature  // "FFFL"
3 bytes (uint32) - version?  // 12
4 bytes (uint32) - version?  // 12
4 bytes (uint32) - TOC type // 0x00010000 - unencrypted TOC
                            // 0x00010100 - encrypted TOC
4 bytes (uint32) - TOC offset  // XORed with 0x123
4 bytes (uint32) - encryption key
 
 
// data
num_of_files *
{
  x bytes - file data
}
 
// TOC
4 bytes (uint32) - number of files
num_of_files *
{
  52 bytes (char) - file name + padding  // e.g. "Data\Misc\japan.pcx"
  4 bytes (uint32) - unknown
  4 bytes (uint32) - file offset
  4 bytes (uint32) - file size
}
4 bytes (uint32) - number of files (repeated?)
</pre>
</pre>
</div>
</div>
Line 25: Line 47:


Not written yet.
Not written yet.
=== QuickBMS Script ===
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Insane%201nsane/Insane_IDF_script.bms Insane_IDF_script.bms]


=== Notes and Comments ===  
=== Notes and Comments ===  


None.
* Table of Content (archive footer) is encrypted with '''XOR''' encryption. TOC offset is XORed with 0x123.
* Data seems to be unencrypted and uncompressed.
* IDF extension is probably translated to "Insane Data File".
 
=== Encryption Method ===
 
Below is example of the code from quickbms script which may be used to decrypt TOC:
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
for i = 0 < TOC_LENGTH
get NEW_BYTE byte
XMATH NEW_BYTE "NEW_BYTE ^ TOC_XOR_KEY"
XMATH TOC_XOR_KEY "(NEW_BYTE + i + (TOC_XOR_KEY * 5)) & 0xFF"
</pre>
</div>


=== Games ===  
=== Games ===  
List of games using this file format:
List of games using this file format:
* Insane / 1insane
* Insane / 1nsane (PC) (*.IDF)


=== Compatible Programs ===  
=== Compatible Programs ===  


* [https://www.files.sabilagar.com/1nsaneother/1511IDFExploder.zip IDF Exploder]
* [https://www.files.sabilagar.com/1nsaneother/1511IDFExploder.zip IDF Exploder] / [https://drive.google.com/file/d/1_L94WA7vo6lBJfkRdm3kXD30n0PkrHyI/view?usp=sharing mirror1] / [http://hoovtech.net/lxr/upload/insane/utilities/1511IDFExploder.zip mirror2]
* [https://drive.google.com/file/d/1Al6dT5-tmWIamMTBF-KGN07lN337KwwH/view?usp=sharing IDF commander] / [http://hoovtech.net/lxr/upload/insane/utilities/1483IDF_Commander_installer.zip mirror1]
* [https://web.archive.org/web/20060115190323/http://www.insaneheat.com/Utilities/IDFMaker.zip IDFMaker] / [https://drive.google.com/file/d/1dmEjmIaKaFlTi2OtTJajG1plNEmJqBFq/view?usp=sharing mirror1] / [http://hoovtech.net/lxr/upload/insane/utilities/4321IDFMaker.zip mirror2]
* [http://hoovtech.net/lxr/upload/insane/utilities/9216EasyIDF_setup.zip EasyIDF]
* [http://hoovtech.net/lxr/upload/insane/utilities/7295IDF%20Converter%201.2%20Install.zip IDF Converter]
* [https://github.com/pwtf/bizarr3 bizarr3]
 
=== See Also ===
 
* [https://web.archive.org/web/20101115010906/https://www.insaneheat.com/Utilities/ Insane Modding Tools] / [http://hoovtech.net/lxr/insaneutilities.php More modding tools]
* [http://vnovak.com/tools/1NSANE-Swissknife-v0.3.zip 1NSANE Swissknife]
* [https://web.archive.org/web/20030726132058/http://www.insaneheat.com/Utilities/ImapV1.exe Imap]
* [https://web.archive.org/web/20030726132300/http://www.insaneheat.com/Utilities/InsaneMapEditingReferencePakv4.exe InsaneMapEditingReferencePak]
 
==Gallery==
<gallery bordercolor="transparent" spacing="small" orientation="landscape">
IDF_Explorer.png|IDF Explorer
IDF_Commander.png|IDF Commander
IDF_Converter.png|IDF Converter
</gallery>
<br/><br>
<br/><br>




[[Category:Complete WIP|Insane 1insane IDF]]
[[Category:Complete Complete|Insane 1insane IDF]]
[[Category:Platform PC|Insane 1insane IDF]]
[[Category:Platform PC|Insane 1insane IDF]]
[[Category:CE None|Insane 1insane IDF]]
[[Category:CE Encrypted|Insane 1insane IDF]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_idf | Extension: idf]]
[[Category:Extension_idf | Extension: idf]]
[[Category:XOR encryption]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 17:55, 6 August 2022

Back to index | Edit this page

IDF

  • Format Type : Archive
  • Endian Order : Little Endian
  • Signature : FFFL


Format Specifications

// 1nsane PC
// IDF file format

// little endian

// header
4 bytes (char) - signature  // "FFFL"
4 bytes (uint32) - version?  // 12
4 bytes (uint32) - TOC type // 0x00010000 - unencrypted TOC
                            // 0x00010100 - encrypted TOC
4 bytes (uint32) - TOC offset  // XORed with 0x123
4 bytes (uint32) - encryption key


// data
num_of_files *
{
   x bytes - file data
}

// TOC
4 bytes (uint32) - number of files
num_of_files *
{
   52 bytes (char) - file name + padding  // e.g. "Data\Misc\japan.pcx"
   4 bytes (uint32) - unknown
   4 bytes (uint32) - file offset
   4 bytes (uint32) - file size
}
4 bytes (uint32) - number of files (repeated?)

MultiEx BMS Script

Not written yet.

QuickBMS Script

Notes and Comments

  • Table of Content (archive footer) is encrypted with XOR encryption. TOC offset is XORed with 0x123.
  • Data seems to be unencrypted and uncompressed.
  • IDF extension is probably translated to "Insane Data File".

Encryption Method

Below is example of the code from quickbms script which may be used to decrypt TOC:

for i = 0 < TOC_LENGTH
	get NEW_BYTE byte
	XMATH NEW_BYTE "NEW_BYTE ^ TOC_XOR_KEY"
	XMATH TOC_XOR_KEY "(NEW_BYTE + i + (TOC_XOR_KEY * 5)) & 0xFF" 

Games

List of games using this file format:

  • Insane / 1nsane (PC) (*.IDF)

Compatible Programs

See Also

Gallery