OpenSpace CNT: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
imported>Ikskoks
 
(49 intermediate revisions by the same user not shown)
Line 8: Line 8:


<tt><b>
<tt><b>
<font color="blue"> ''' // header ''' </font> <br>
uint32 {4}&nbsp;&nbsp; - Number Of Folders <br>  
uint32 {4}&nbsp;&nbsp; - Number Of Folders <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Number Of Files? '' </font> <br>  
uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - Is XOR Used flag <br>  
byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - XOR Value <br>  
byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - Is Checksum Used flag <br>  
byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - XOR Key <br>  
<br>
<br>
<font color="blue"> ''' // for each folder ''' </font> <br>  
<font color="blue"> ''' // for each folder ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Folder Name Length <br>  
: uint32 {4}&nbsp;&nbsp; - Folder Name Length <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Encrypted Folder Name <font color="purple">(XOR with the "XOR Value Field")</font> <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Encrypted Folder Name <font color="purple">(XOR with the "XOR Key Field")</font> <br>  
<br>
<br>
byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - End Of Directory Marker <font color="purple">(1)</font> <br>  
byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - End Of Directory Marker / Directory Checksum<font color="purple"> (1)</font> <br>  
<br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>  
<font color="blue"> ''' // for each file ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - null <br>  
: uint32 {4}&nbsp;&nbsp; - null <br>  
: uint32 {4}&nbsp;&nbsp; - Filename Length <br>  
: uint32 {4}&nbsp;&nbsp; - Filename Length <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Encrypted Filename <font color="purple">(XOR with the "XOR Value Field")</font> <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Encrypted Filename <br>  
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - File XOR Key  <br>  
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Checksum  <br>  
: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
: uint32 {4}&nbsp;&nbsp; - File Offset <br>  
: uint32 {4}&nbsp;&nbsp; - File Length <br>  
: uint32 {4}&nbsp;&nbsp; - File Length <br>  
Line 33: Line 35:
=== MultiEx BMS ===  
=== MultiEx BMS ===  


Not written yet<br><br>
Not written yet.<br>
 
=== Notes and Comments ===
* CNT archive is used for storing data in [https://raymanpc.com/wiki/en/OpenSpace OpenSpace engine] games.


=== Supported Programs ===  
=== Supported Programs ===  


* [[Game Extractor|Game Extractor]]<br>
* [[Game Extractor|Game Extractor]]<br>
* [https://github.com/RayCarrot/RayCarrot.Rayman Rayman Control Panel]
* [https://github.com/byvar/raymap Raymap]
* [https://github.com/szymski/Rayman2Lib/tree/master/csharp_tools/CNTExplorer CNT Explorer (Rayman2Lib)]
=== Games ===
List of games using this file format:<br>
* Rayman 2
* Rayman 3
* Rayman M
* Rayman Arena
* Donald Duck: Quack Attack / Donald Duck: Goin' Quackers
* Tonic Trouble
* Playmobil: Hype
==Gallery==
<gallery bordercolor="transparent" spacing="small" orientation="landscape">
Ray_Cont_Panel.png
cnt_explorer.png
</gallery>


=== Other Games ===


These games also use this file format<br>
[[Category:Complete Almost Done|OpenSpace CNT]]
* Rayman 2 *.cnt
[[Category:Platform PC|OpenSpace CNT]]
* Rayman 3 *.cnt
[[Category:CE None|OpenSpace CNT]]
* Rayman M *.cnt
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_cnt | Extension: cnt]]
[[Category:BMS_None | BMS: None]]
[[Category:XOR encryption]]
[[Category:File Format]]

Latest revision as of 14:19, 4 April 2021

CNT


Format Specifications

// header
uint32 {4}   - Number Of Folders
uint32 {4}   - Number Of Files
byte {1}     - Is XOR Used flag
byte {1}     - Is Checksum Used flag
byte {1}     - XOR Key

// for each folder

uint32 {4}   - Folder Name Length
char {X}     - Encrypted Folder Name (XOR with the "XOR Key Field")


byte {1}     - End Of Directory Marker / Directory Checksum (1)

// for each file

uint32 {4}   - null
uint32 {4}   - Filename Length
char {X}     - Encrypted Filename
uint32 {4}   - File XOR Key
uint32 {4}   - Checksum
uint32 {4}   - File Offset
uint32 {4}   - File Length


byte {X}     - File Data

MultiEx BMS

Not written yet.

Notes and Comments

Supported Programs

Games

List of games using this file format:

  • Rayman 2
  • Rayman 3
  • Rayman M
  • Rayman Arena
  • Donald Duck: Quack Attack / Donald Duck: Goin' Quackers
  • Tonic Trouble
  • Playmobil: Hype

Gallery