Insane 1nsane IDF: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
||
| Line 59: | Line 59: | ||
=== Encryption Method === | === Encryption Method === | ||
Below is example of the code from quickbms script which may be used to decrypt TOC: | 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;"> | <div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | ||
Revision as of 21:54, 25 September 2021
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.
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
Compatible Programs
- IDF Exploder / mirror1 / mirror2
- IDF commander / mirror1
- IDFMaker / mirror1 / mirror2
- EasyIDF
- IDF Converter
- bizarr3
See Also
Gallery
-
IDF Explorer
-
IDF Commander
-
IDF Converter