FileStructure BIN CrypticS: Difference between revisions

From OuroDev
Line 85: Line 85:


== Specific CrypticS File Examples (Work in Progress) ==
== Specific CrypticS File Examples (Work in Progress) ==
<source lang="javascript" line start="2" highlight="4-6">
TokenizerParseInfo ParsePowerCategory[] =
{
{ "{",                TOK_START,      0 },
{ "SourceFile",      TOK_CURRENTFILE(PowerCategory, pchSourceFile)  },
{ "Name",            TOK_STRUCTPARAM | TOK_STRING(PowerCategory, pchName, 0)        },
{ "DisplayName",      TOK_STRING(PowerCategory, pchDisplayName, 0) },
{ "DisplayHelp",      TOK_STRING(PowerCategory, pchDisplayHelp, 0)      },
{ "DisplayShortHelp", TOK_STRING(PowerCategory, pchDisplayShortHelp, 0) },
{ "PowerSets",        TOK_STRINGARRAY(PowerCategory, ppPowerSetNames ) },
{ "",       TOK_AUTOINTEARRAY(PowerCategory, ppPowerSets ) },
{ "Available",        TOK_IGNORE,      0 },
{ "}",                TOK_END,        0 },
{ "", 0, 0 }
};
</source>
{| class="wikitable" style="width:50%"
{| class="wikitable" style="width:50%"
|+Categories File (Work in Progress)
|+Categories File (Work in Progress)
Line 104: Line 122:
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | String
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | String
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | VAR
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | VAR
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | FileName
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | SourceFile
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Cryptic String Format, Using Alignment Scheme
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Cryptic String Format, Using Alignment Scheme
|-
|-
Line 114: Line 132:
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | String
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | String
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | VAR
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | VAR
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | PSTRING
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | DisplayName / PSTRING
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Cryptic String Format, Using Alignment Scheme
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Cryptic String Format, Using Alignment Scheme
|-
|-
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | 4
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | 4
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Unknown Expected Zero
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | DisplayHelp
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Expected Zero
|-
|-
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | 4
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | 4
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Unknown Expected Zero
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | DisplayShortHelp
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Seems to Indicate a List Follows???
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Expected Zero
|-
|-
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer
Line 149: Line 167:
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | 4
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | 4
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Unknown Expected Zero
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Available
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Ignored / Usually Zero
|-
|-
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | *
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | *

Revision as of 13:00, 14 May 2019

BIN FILE STRUCTURE - CrypticS

(WORK IN PROGRESS) DragonSire

BIN FILE STRUCTURE - CrypticS

BIN File Structure (Header)
DataType Size Description Notes
String 8 Bytes Identifier Should be CrypticS
Integer/UInteger 4 Adler32 CheckSum
Short/UShort 2 Bytes String Length
String * Parse Type Used Expected Parse6 (Current)
Short/UShort 2 Bytes FileNumber File1
* * File Table
BIN File Structure (File Table)
DataType Size Description Notes
Integer/UInteger 4 NumberBytes
Integer/UInteger 4 Number String Entries
* LOOP String Entries
Short/UShort 2 Length of String
VAR String FilePath **Cryptic String Format, Using Alignment Scheme
Aligns to 4 bytes...
Integer/UInteger 4 FileTime TimeT
* END LOOP

Specific CrypticS File Examples (Work in Progress)

TokenizerParseInfo ParsePowerCategory[] =
{
	{ "{",                TOK_START,       0 },
	{ "SourceFile",       TOK_CURRENTFILE(PowerCategory, pchSourceFile)  },
	{ "Name",             TOK_STRUCTPARAM | TOK_STRING(PowerCategory, pchName, 0)        },
	{ "DisplayName",      TOK_STRING(PowerCategory, pchDisplayName, 0) },
	{ "DisplayHelp",      TOK_STRING(PowerCategory, pchDisplayHelp, 0)      },
	{ "DisplayShortHelp", TOK_STRING(PowerCategory, pchDisplayShortHelp, 0) },
	{ "PowerSets",        TOK_STRINGARRAY(PowerCategory, ppPowerSetNames ) },
	{ "",			      TOK_AUTOINTEARRAY(PowerCategory, ppPowerSets ) },
	{ "Available",        TOK_IGNORE,      0 },
	{ "}",                TOK_END,         0 },
	{ "", 0, 0 }
};
Categories File (Work in Progress)
DataType Size Description Notes
* LOOP
Integer/UInteger 4 Unsure....
String VAR SourceFile Cryptic String Format, Using Alignment Scheme
String VAR Name Cryptic String Format, Using Alignment Scheme
String VAR DisplayName / PSTRING Cryptic String Format, Using Alignment Scheme
Integer 4 DisplayHelp Expected Zero
Integer 4 DisplayShortHelp Expected Zero
Integer 4 Number of Strings that Follow # PowerSets
* LOOP
String VAR PowerSet Name Cryptic String Format, Using Alignment Scheme
* END LOOP
Integer 4 Available Ignored / Usually Zero
* END LOOP