Welcome to the Creatures Wiki! Log in and join the community.

Difference between revisions of "CHARSET.DTA"

From Creatures Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
'''CHARSET.DTA''' is the font used in [[Creatures 1]] and [[Creatures 2]]. It contains 128 characters, matching the standard [[Wikipedia:ASCII|ASCII text encoding]]. Creatures 2 additionally has '''EuroCharset.dta''', which contains 256 characters, matching the [[Wikipedia:Windows-1252|CP-1252]] encoding with support for accented characters common to European languages.
+
'''CHARSET.DTA''' is the font used in [[Creatures 1]] and [[Creatures 2]]. It contains 128 characters, matching the standard [[Wikipedia:ASCII|ASCII text encoding]]. Creatures 2 additionally has '''EuroCharset.dta''', which contains 256 characters, matching the [[Wikipedia:Windows-1252|Windows-1252]] encoding with support for accented characters common to European languages.
  
 
The file format is as follows:
 
The file format is as follows:
Line 5: Line 5:
 
{| border="1"
 
{| border="1"
 
|-
 
|-
! size           !! description
+
! type           !! description
 
|-
 
|-
| 72 bytes       || Data for a single character - 6 pixels wide, 12 pixels high. It's not clear how pixels are mapped to colors.
+
| char[72]       || Data for a single character - 6 pixels wide, 12 pixels high. It's not clear how pixels are mapped to colors.
 
|-
 
|-
 
| ...            || Additional characters (128 total in CHARSET.DTA, 256 total in EuroCharset.dta)
 
| ...            || Additional characters (128 total in CHARSET.DTA, 256 total in EuroCharset.dta)
 
|-  
 
|-  
| 16-bit integer || Width when rendered of character at this index. Character data is left-aligned.
+
| u16le.        || Actual width of character at this index. Character data is left-aligned.
 
|-
 
|-
| ...            || Additional character widths when rendered
+
| ...            || Additional character widths.
 
|}
 
|}
  
 
==Japanese version==
 
==Japanese version==
  
There is a Japanese font for [[Creatures]], which includes [[Wikipedia:Katakana|katakana]] in addition to the normal ASCII characters (and uses [[Wikipedia:Code_page_932_(Microsoft_Windows)|CP-932 encoding]] internally). Each character's data is 11 pixels wide to accommodate the larger Japanese characters.
+
There is a Japanese font for [[Creatures]], which includes [[Wikipedia:Katakana|katakana]] in addition to the normal ASCII characters (and maps to the [[Wikipedia:Code_page_932_(Microsoft_Windows)|Windows-932 encoding]] internally). Each character's data is 11 pixels wide to accommodate the larger Japanese characters, increasing the character data size from 72 bytes to 132 bytes.
  
 
It was hypothesized that there existed a Japanese font for [[Creatures 2]], but the game is believed to never have been released for the Japanese market.
 
It was hypothesized that there existed a Japanese font for [[Creatures 2]], but the game is believed to never have been released for the Japanese market.

Latest revision as of 00:57, 16 October 2021

CHARSET.DTA is the font used in Creatures 1 and Creatures 2. It contains 128 characters, matching the standard ASCII text encoding. Creatures 2 additionally has EuroCharset.dta, which contains 256 characters, matching the Windows-1252 encoding with support for accented characters common to European languages.

The file format is as follows:

type description
char[72] Data for a single character - 6 pixels wide, 12 pixels high. It's not clear how pixels are mapped to colors.
... Additional characters (128 total in CHARSET.DTA, 256 total in EuroCharset.dta)
u16le. Actual width of character at this index. Character data is left-aligned.
... Additional character widths.

Japanese version[edit]

There is a Japanese font for Creatures, which includes katakana in addition to the normal ASCII characters (and maps to the Windows-932 encoding internally). Each character's data is 11 pixels wide to accommodate the larger Japanese characters, increasing the character data size from 72 bytes to 132 bytes.

It was hypothesized that there existed a Japanese font for Creatures 2, but the game is believed to never have been released for the Japanese market.

Creatures prototypes[edit]

Prototypes prior to Creatures 1 used a different format. CHARSET.DTA contained the same 128 characters, but each was 4 pixels wide and 32 pixels high. Character width information was not included as all characters simply rendered as 4 pixels wide.

size description
32 bytes Data for a single character - 4 pixels wide, 8 pixels high.
... Additional characters (128 total)