Modding
Discord Wishlist on Steam

Changing anything

Words and barks

A mod can give the game words in any language: a translation of ours, a language the game hasn't got, or our English reworded. And it can give people new things to say. Format 4.

json
"texts": { "cs": "texts/cs.json", "sk": [ "texts/a.json", "texts/b.json" ] }

Each language names a file, or a list of them.

A file of words

json
{
  "name": "Čeština",
  "words": { "Continue": "Pokračovat", "Early build {0}": "Raná verze {0}" },
  "text": [ { "en": "Back", "ctx": "slot", "to": "Záda" } ]
}
  • "name" is the language's own name, as it is shown in the settings.
  • "words" is the short form: the English the game draws, and what to draw instead.
  • "text" is written like the game's own tables (Resources/Text/sk/*.json), so one of ours can be copied and translated. "ctx" tells apart one English line meaning two things: "Back" as going back, and "Back" as the slot on your back.
  • {0} and {1} are filled in by the game. Keep them in the translation.

Languages

  • A language the game lacks (Czech in the example) can be picked in the settings once a mod gives it, when the game's pixel fonts draw its letters. Anything it doesn't translate shows in English.
  • "en" rewords our English. "sk" changes our Slovak.
  • Several mods may give words for one language. The later mod's win where they give the same line.

Barks

Barks are the short things people say in passing. A mod's bark files go where ours are, resources/Barks/<language>/<file>.json, written like ours ({ "barks": [ ... ] }). They never replace our file. Each set is read over ours:

  • A set with the same situation, temper, role, character and condition as one of ours replaces that set's lines.
  • Any other set is added.

The example mod Examples/resources gives timid peasants who spot an armed stranger lines of their own.

On the bench

Under Files over ours, each language is a page of two columns: the game's English and the language's words, with a search and + A line, which picks a line of the game's English or takes what is typed. It is saved as texts/<code>.json and listed in mod.json. The foot counts the lines said.

A language's words: the game's English beside the mod's.
A language's words: the game's English beside the mod's.