Ksiaze i Tchorz PTC: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(12 intermediate revisions by the same user not shown)
Line 25: Line 25:
num_of_files *
num_of_files *
{
{
   24 bytes (char) - file name  // e.g. "CREDITS.DAT"
   24 bytes (char) - file name + nulls // e.g. "CREDITS.DAT"
   4 bytes (uint32) - file offset
   4 bytes (uint32) - file offset
   4 bytes (uint32) - file size
   4 bytes (uint32) - file size
Line 32: Line 32:
</div>
</div>


=== MultiEx BMS Script ===  
=== quickBMS Script ===  


Not written yet.
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/The%20Prince%20and%20the%20Coward/The_Prince_and_the_Coward_PTC_script.bms The_Prince_and_the_Coward_PTC_script.bms]


=== Notes and Comments ===  
=== Notes and Comments ===  
Line 43: Line 43:
=== Games ===  
=== Games ===  
List of games using this file format:
List of games using this file format:
* Ksiaze i Tchorz / The Prince and the Coward (PC) (*.PTC)
* Ksiaze i Tchorz / The Prince and the Coward / Galador (PC) (*.PTC)


=== Compatible Programs ===  
=== Compatible Programs ===  
Line 51: Line 51:




[[Category:Complete WIP|Ksiaze i Tchorz PTC]]
[[Category:Complete Complete|Ksiaze i Tchorz PTC]]
[[Category:Platform PC|Ksiaze i Tchorz PTC]]
[[Category:Platform PC|Ksiaze i Tchorz PTC]]
[[Category:CE Encrypted|Ksiaze i Tchorz PTC]]
[[Category:CE Encrypted|Ksiaze i Tchorz PTC]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_ptc | Extension: ptc]]
[[Category:Extension_ptc | Extension: ptc]]
[[Category:BMS_None | BMS: None]]
[[Category:XOR encryption]]
[[Category:XOR encryption]]
[[Category:Custom encryption]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 20:29, 30 January 2022

Back to index | Edit this page

PTC

  • Format Type : Archive
  • Endian Order : Little Endian
  • Signature : P&TC


Format Specifications

//header
4 bytes (char) - signature // "P&TC"
4 bytes (uint32) - file table offset  // encrypted
4 bytes (uint32) - file table size  // encrypted

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

// file table (encrypted)
num_of_files *
{
   24 bytes (char) - file name + nulls  // e.g. "CREDITS.DAT"
   4 bytes (uint32) - file offset
   4 bytes (uint32) - file size
}

quickBMS Script

Notes and Comments

  • All files seems to have the same filename which is "DATABANK.PTC".
  • Values in header are encrypted with XOR. TOC is also encrypted with custom encryption method.

Games

List of games using this file format:

  • Ksiaze i Tchorz / The Prince and the Coward / Galador (PC) (*.PTC)

Compatible Programs

  • ScummVM (see "extractor" source code here)