Welcome to the Creatures Wiki! Log in and join the community.
COB files
Revision as of 16:39, 5 May 2020 by 73.162.102.108 (talk) (Add missing "name" field at end of C1 COB)
COBs are made with CAOS, and with special cob-making programs like BoBCoB. They are produced both by CL and by users of the game. For the original Creatures, there are no official cob-making programs - BoBCoB is probably the most popular unofficial one - but there are both official and unofficial tools for Creatures 2.
This stub could use more information. |
Technical Information
Creatures 1
Creatures 1's COBs are simpler than all later COB/agent files. As with all Creatures file formats, they are in little-endian order.
They are simply defined as such:
Length | Type | Description |
---|---|---|
2 bytes | integer | COB Version (I've only ever seen 1) |
2 bytes | integer | Quantity Available (for injecting) |
4 bytes | integer | Expiration month |
4 bytes | integer | Expiration day |
4 bytes | integer | Expiration year |
2 bytes | integer | Number of object scripts |
2 bytes | integer | Number of install scripts |
4 bytes | integer | Quantity Used (for injecting) |
varies | 0 or more string blocks | Object scripts |
varies | 0 or more string blocks | Install scripts |
4 bytes | integer | Picture width |
4 bytes | integer | Picture height |
2 bytes | integer | unknown (always seems to be the same as the picture's width) |
varies | SPR picture data | Picture. Encoded like a single frame of an SPR with no header. |
varies | string block | COB Name |
String blocks are defined as follows
Length | Type | Description |
---|---|---|
1 byte | integer | String Length (if 255, use second string length) |
2 bytes | integer | String Length (if first string length was less than 255, this string length does not exist) |
varies | string | String (If this is a script, lines of CAOS are comma-separated with no whitespace between them) |
Related links