We have begun migration of most wikis to our new host, Amazon Web Services. All but the top 100 wikis are in read-only mode until the migration is complete. Estimated completion: TBD -- Update: Fri 10/20 11pm UTC - We have encountered some unexpected issues. Our staff is working around the clock to complete this process as quickly as possible. Thank you for your patience.

ArkML

From ARK: Survival Evolved Wiki
Jump to: navigation, search

Ark Markup Language (or ArkML for short) is a markup language seen in several instances within ARK. It is a type of SGML, and currently has only one known element, the "RichColor" element, which is used to add color to text. There is no official documentation for this markup language, and it may change at any time.

When parsing ArkML, be sure that you are using a valid SGML parser. Most modern day XML parsers no longer support SGML, as XML is a subset of SGML and most of SGML has in large fallen out of favor and become obsolete.

If using Python (any version), Python's built-in SGML parser correctly supports SGML.

RichColor Element[edit | edit source]

The RichColor element adds a font color to all of the text inside it. Its only attribute - "Color", specifies the color of the text and is required.

The Color attribute's format consists of four decimal values between 0 and 1 separated by commas. The 4 values represent the red, green, blue, and opacity values respectively; where 1 represents "high" and 0 represents "low". All 4 values are required by the Color attribute, and most/all(verification needed) whitespace inside the Color attribute seems to be ignored.

Examples:

  • <RichColor Color="1, 0, 0, 1">Red</> produces Red
  • <RichColor Color="0, 1, 0, 1">Green</> produces Green
  • <RichColor Color="1, 0.65, 0, 1">Orange</> produces Orange
  • <RichColor Color="0, 0, 0, 1">Black</> produces Black
  • <RichColor Color="1, 1, 0, 1">Yellow</> produces Yellow
  • <RichColor Color="1, 0, 1, 1">Fuchsia</> produces Fuchsia

Codec Implementations[edit | edit source]

See ArkML/Codec Implementations