Please create an account or Login! Have fun!

Editing C2H

Jump to navigation Jump to search
You are not logged in. While you can edit without logging in, your IP address will be recorded publicly, along with the time and date, in this page's history. It is sometimes possible for others to identify you with this information. Creating an account will conceal your IP address and provide you with many other benefits. Messages sent to your IP can be viewed on your talk page.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
=== Overview ===
A '''C2H ''' file (having the extension .c2h) is the file format where [[Chip's Challenge 2]] stores the best scores and times for each level.
A '''C2H ''' file (having the extension .c2h) is the file format where [[Chip's Challenge 2]] stores the best scores and times for each level.


Line 5: Line 6:
All data in the file is little-endian.
All data in the file is little-endian.


== Format ==
=== Section header format ===
=== Section header ===
{| class="article-table"
{| class="wikitable" border="1"
!Bytes
!Bytes
!Content
!Content
Line 19: Line 19:


=== Section types ===
=== Section types ===
{| class="wikitable" border="1"
{| class="article-table"
!Section ID
!Section ID
!Content Type
!Content Type
Line 51: Line 51:
=== SAVE section ===
=== SAVE section ===


{| class="wikitable" border="1"
{| class="article-table"
!Offset
!Offset
!Bytes
!Bytes
Line 68: Line 68:
|Highest bonus score achieved (does not include bonus from time left)
|Highest bonus score achieved (does not include bonus from time left)
|-
|-
|0x0C
|...
|4
|
|Sixtieths of a second left<ref>Conversion to decimal time is given by diving this by 60, rounding up, readding the fraction (replacing .00 with .100). For example, 3195 would become 54.25</ref> for the <em>worst</em> attempt recorded
|Unknown
|-
|0x10
|4
|Chips left
|-
|-
|0x14
|0x14
|4
|4
|Time bonus
|Base level score, (level number)*500
|-
|-
|0x18
|0x18
Line 84: Line 80:
|Level number
|Level number
|-
|-
|0x1C
|...
|4
|
|Initial time, in seconds
|Unknown
|-
|0x20
|4
|Number of level attempts before completion
|-
|0x24
|4
|Exit gender
|-
|0x28
|4
|Entry point that was used (advanced scripting)
|-
|0x2C
|4
|Exit that was used (advanced scripting)
|-
|-
|0x30
|0x30
Line 108: Line 88:
|1 if level is solved, 0 if unsolved
|1 if level is solved, 0 if unsolved
|-
|-
|0x34
|...
|4
|
|Result (advanced scripting)
|Unknown
|-
|0x38
|4
|Register 1 (advanced scripting)
|-
|0x3C
|4
|Register 2 (advanced scripting)
|-
|0x40
|4
|Register 3 (advanced scripting)
|-
|0x44
|4
|Register 4 (advanced scripting)
|-
|0x48
|4
|Menu processing
|-
|0x4C
|4
|Internal flags
|-
|0x50
|4
|Tools carried on exit
|-
|0x54
|4
|Keys carried on exit
|-
|-
|0x58
|0x58
Line 148: Line 96:
|Highest level time achieved
|Highest level time achieved
|-
|-
|0x5C
|0x5c
|4
|4
|Highest level score achieved (including base level score)
|Highest level score achieved (including base level score)
Line 154: Line 102:
|0x60
|0x60
|4
|4
|Level checksum
|Unknown
|}
|}


== External Links ==
== External Links ==


*[http://www.pvv.org/~spaans/CC2fileformat.txt Skype message from Chuck Sommerville about .c2h file format]
*[http://www.pvv.org/~spaans/c2h.txt Notes on the .c2m file format by Ruben Spaans]
*[http://www.pvv.org/~spaans/c2h.txt Notes on the .c2h file format by Ruben Spaans]
 
== Footnotes ==
 
[[Category:Terminology]]
[[Category:Terminology]]
[[Category:File formats]]
Please note that all contributions to Chip's Challenge Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Chip's Challenge Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)
Your changes will be visible immediately.
  • If you want to test editing, try the sandbox.
  • On talk pages, please sign your posts by typing four tildes (~~~~).