FORGOTTEN TOWNS

FORGOTTEN TOWNS / MODDING DOCUMENTATION

Modding wiki ↗

Java API reference (Javadoc)

MOD API 15

Browse the wiki

Current Mod API documentation.

MODDING DOCUMENTATION

Give your mod a cover and description

Selecting an installed mod in the main-menu Mods screen shows its cover, name, author, extended description and up to two screenshots. These work while the mod is disabled and without executing its Java code.

Folder layout

your_mod/
  mod.json
  about/
    preview.png
    screenshots/
      1.png
      2.png
    translations/
      en.json
      nl.json
      ...

No extra manifest fields or registrations are required. The filename is exactly about/preview.png. Use a landscape PNG, preferably 16:9; the image keeps its aspect ratio. Limits are 8 MiB per preview, 4096 pixels per edge and 8,388,608 pixels total. Oversized or invalid images are omitted and logged; they do not prevent enabling the mod. Decoding happens off the render thread. A selection without an image still shows its text.

Localize the description

about/translations/en.json is a flat JSON object:

{
  "mods.your_mod.name": "Your Mod",
  "mods.your_mod.author": "Your name or studio",
  "mods.your_mod.description": "A short explanation of what players can do with this mod."
}

Replace your_mod with your exact manifest ID. These three keys are accepted; author credit is optional. Each catalog must stay within 64 KiB. Supply the same keys in en, nl, de, fr, ru, zh_cn, es, pt_br, pl, ja, ko, it and tr. Use several short paragraphs to explain gameplay, requirements and limits. Encode paragraph breaks as \n\n in JSON. The details pane scrolls independently, keeping Enable/Disable, Settings and load-order controls visible. A proper mod title can stay the same across languages.

The manager reads the current language's about catalog first, then any matching keys in the manifest's ordinary translation catalog as a fallback. Missing names display the pack ID; missing descriptions display a localized placeholder. This fallback is not a substitute for translating your pack. Missing authors display a localized “Not supplied” label. Author credit is searchable. A proper creator name can remain identical across languages. This is an author-supplied credit, not an authenticated badge. The Workshop tab separately shows the Steam publisher display name.

Update presentation without breaking saves

The reserved root about/ folder is excluded from the captured gameplay snapshot and save hash. Artwork or catalog edits there do not change compatibility. The manifest may not reference it for patches, gameplay translations or code. Put actual game sprites under assets/, where their bytes remain part of the save identity. Keep gameplay data and executable code out of about/.

Click Refresh after changing a cover or description. Runtime JSON and JAR changes still require Apply & reload, which reloads content in the same game window.

about/ui.json adds a separately captured runtime theme. See UI and gameplay customization for button skins, panel colors, scrollable lists, image overrides and localization rules. Use Apply & reload to apply theme changes; these also preserve the gameplay hash.

Presentation examples

SDK source projects demonstrate about/preview.png, native panel screenshots and localized description catalogs. Use them to learn the folder structure and presentation API. Keep illustrations distinct from screenshots of your actual interface.

A readable cover has one clear subject and enough space for its title or logo. Related packs can share a palette and visual motif to make their dependency relationship recognizable. The localized mod title is also drawn separately by the game. Supply a wide image for the in-game details pane; it fills the pane width while preserving its proportions and receives a thin border.

See Steam Workshop for publishing and its separate preview requirements. Keep the same pack ID and only one installed copy when distributing a project independently.

Supply about/screenshots/1.png and about/screenshots/2.png. These optional PNGs use the same file-size, dimension and contained-path limits as the cover. They load asynchronously, display below the description and open larger when clicked. Use Back or Escape to return. Mouse-wheel scrolling reaches both images and the dependency information. The menu remains bounded on large displays.

Screenshot captions use the player's UI language. Text already captured inside an image stays in its captured language. Use genuine captures; covers and concept art belong in the cover slot. Like the other about/ files, screenshots do not alter the gameplay save hash.