FileStructure BIN CrypticS: Difference between revisions

From OuroDev
No edit summary
m (11 revisions imported: Importing Portal Corps Wiki pages and history - Feb 6, 2020)
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
== BIN FILE STRUCTURE - CrypticS ==
== BIN FILE STRUCTURE - CrypticS ==
(WORK IN PROGRESS)
(WORK IN PROGRESS)
</BR> I have realized my approach was slightly wrong on this, the contents appear to be handled like a large string and broken apart....so I will revise this as I work out how to better resolve the string & control chars, with the byte alignements etc...
DragonSire
DragonSire


Line 19: Line 18:
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer/UInteger
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer/UInteger
| 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;" | CheckSum
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Adler32 CheckSum
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
|-
|-
Line 39: Line 38:
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | *
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | *
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | *
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | *
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | String Table
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | File Table
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
|}
|}
{| class="wikitable" style="width:50%"
{| class="wikitable" style="width:50%"
|+BIN File Structure (String Table)
|+BIN File Structure (File Table)
! style="text-align: center; font-weight:bold; font-size:16px; background-color:#5578dd;width:20%;" | DataType
! style="text-align: center; font-weight:bold; font-size:16px; background-color:#5578dd;width:20%;" | DataType
! style="text-align: center; font-weight:bold; font-size:16px; background-color:#5578dd;width:10%;" | Size
! style="text-align: center; font-weight:bold; font-size:16px; background-color:#5578dd;width:10%;" | Size
Line 71: Line 70:
| 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;" | String
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | String
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | String from Length
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | FilePath
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | **Cryptic String Format, Using Alignment Scheme </BR> Aligns to 4 bytes...
|-
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | *
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | CHECK
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Skip Alignment Check
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | ((4 - (PositionInBuffer And 3)) And 3) </BR> Skip Number Bytes Believe All Zero though could be control character changes
|-
|-
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer/UInteger
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | Integer/UInteger
| 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;" | CheckSum, or Offset...Not Sure Yet
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | FileTime TimeT
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
|-
|-
Line 89: Line 83:
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |  
|}
|}
== BIN FILE STRUCTURE - CrypticS ==
 
{| class="wikitable" style="width:50%"
== Specific CrypticS File Examples (Work in Progress) ==
|+BIN File Structure (Work in Progress)
 
! style="text-align: center; font-weight:bold; font-size:16px; background-color:#5578dd;width:20%;" | DataType
<source lang="javascript" line start="2" highlight="4-6">
! style="text-align: center; font-weight:bold; font-size:16px; background-color:#5578dd;width:10%;" | Size
TokenizerParseInfo ParsePowerCategory[] =
! style="text-align: center; font-weight:bold; font-size:16px; background-color:#5578dd;width:30%;" | Description
{
! style="text-align: center; font-weight:bold; font-size:16px; background-color:#5578dd;width:20%;" | Notes
{ "{",                TOK_START,      0 },
|-
{ "SourceFile",      TOK_CURRENTFILE(PowerCategory, pchSourceFile) },
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | *
{ "Name",            TOK_STRUCTPARAM | TOK_STRING(PowerCategory, pchName, 0)        },
| style="text-align: center; font-size:15px; background-color:#dae8fc;" | END LOOP
{ "DisplayName",      TOK_STRING(PowerCategory, pchDisplayName, 0) },
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |
{ "DisplayHelp",      TOK_STRING(PowerCategory, pchDisplayHelp, 0)      },
| style="text-align: center; font-size:15px; background-color:#dae8fc;" |
{ "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>

Latest revision as of 11:02, 6 February 2020

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 }
};