User:G-lander/NCCS: Difference between revisions

Update the spec
m (Fix typo)
(Update the spec)
 
Line 26: Line 26:
|NCCS
|NCCS
|Null-terminated string
|Null-terminated string
|The file's version. The latest version is "02".
|The file's version. The latest version is "0.2".
|-
|-
|FILE
|FILE
Line 44: Line 44:
|Level miscellaneous data. The format is identical to the format of the [[C2H#Save_section|SAVE section]] in [[C2H]] files.
|Level miscellaneous data. The format is identical to the format of the [[C2H#Save_section|SAVE section]] in [[C2H]] files.
|-
|-
|SLTN/PSLN
|SLN /PSLN
|Level solution
|See SLN section below
|The recorded level solution, identical to the [[C2M#REPL_.2F_PRPL_section|REPL section]] of the C2M file, excluding the first three bytes. The PSLN section is compressed, the SLTN section is not.
|The recorded level solution. The PSLN section is compressed, the SLN section is not.
|-
|-
|STAT
|STAT
Line 62: Line 62:
[[Category:Terminology]]
[[Category:Terminology]]
[[Category:File formats]]
[[Category:File formats]]
=== SLN Section ===
The SLN section stores the solution for the specified level. It is similar to the [[C2M#REPL_.2F_PRPL_section|REPL section]] of C2M files, but they are not the same.
The contents of this section are as follows:
{| class="wikitable" border="1"
!Bytes
!Content
|-
|1
|The number of the player
|-
|Varies
|A sequence of input changes
|}
Multiple SLN sections can be set for a single level for multiple players.
==== Input change ====
Specifies a change in input:
{| class="wikitable" border="1"
!Bytes
!Content
|-
|1
|An input bitmask specifying the new input
|-
|1
|Number of frames this input is held for. Last input must have length 0xff, specifying infinite length. Otherwise <= 0xfc. Larger delays are specified via multiple input changes
|}
==== Input bitmask ====
Specifies which keys are pressed, any number of bits can be combined:
{| class="wikitable" border="1"
!Bitmask
!Meaning
|-
|0x1
|Up
|-
|0x2
|Right
|-
|0x4
|Down
|-
|0x8
|Left
|-
|0x10
|Drop item
|-
|0x20
|Cycle items
|-
|0x40
|Switch player
|}


=== STAT section ===
=== STAT section ===
trusted-editors
113

edits