HairyDude / pdxparse

A parser for scripts used in Paradox Development Studios games, written in Haskell
MIT License
6 stars 7 forks source link

Update to the new localization scheme #13

Closed HairyDude closed 7 years ago

HairyDude commented 8 years ago

A few patches ago EU4 switched to a new format for localization files that includes a version for every message, like:

MENU_MESSAGES_DISABLE_ALL:0 "Disable all"

The ":0" after the tag is not standard YAML, so parsing these files now requires a custom YAML parser. The parser need not handle all of YAML, only the subset used by Clausewitz localization files.

Stellaris also uses this format. Judging by prerelease videos, HOI4 will also use it. Previously only EU4 used YAML, so we need not keep the old standard-YAML scheme.

HairyDude commented 8 years ago

Some localizations are failing to be used, so evidently the parser is not quite correct.