TheoTown file structure

Moderator: Wiki editor

User avatar
reindeerwheat
Metropolitan
Reactions:
Posts: 127
Joined: 21 Jun 2025, 14:57

TheoTown file structure

#1

Post by reindeerwheat »

Up to date as of 1.12.74

0-9, A-Z
  • Show
    πŸ“‚ managed plugins
    Where only plugins downloaded from the plugin store in-game are stored. They should always end with .mpf.
    • πŸ“„ Core_integration_<..>.mpf
    • πŸ“„ DSA_Game_Integration_<..>.mpf
    .mpf files are encrypted and are associated with the forum account that was signed in the game at the time of creation (at the time you downloaded the plugins from the store). They will be ignored if you aren't signed in to the same account. This restriction exists to combat potentially unauthorised plugin sharing/usage.
  • πŸ“‚ maps: Where your single cities (which aren't located in a region) are stored. City files can be any name but should end with .city.
  • πŸ“‚ music: Where the game's music are stored. You can also import other songs to be played in-game: viewtopic.php?t=6061.
  • Show
    πŸ“‚ plugins
    Where external plugins downloaded from outside the plugin store should be stored. They are usually found at viewforum.php?f=43(<-- please read the security notice linked there), GitHub, unofficial TT community Discord servers (may require an invite link from insiders), or around the internet.
    • πŸ“‚ pluginA*
    • Show
      πŸ“‚ sample
    • πŸ“„ encryptedA.plugin*
    • πŸ“„ encryptedB.ttplugin*
    • πŸ“ error.log: Last plugin error encountered (e.g. invalid JSON syntax, duplicate IDs).
    • πŸ“ jsonOnlyPlugin.json*
    • πŸ“„ pluginB.zip*
    • πŸ“„ pluginC.zip*
    • πŸ“ README.txt
    *For illustration purposes only; they aren't actually included by default.
  • Show
    πŸ“‚ regions
    Where your regions are stored.
    • Show
      πŸ“‚ default
      • πŸ“„ X_Y.city*: City files' name here should always follow this fornat, "7_4.city" for example. "X" and "Y" are unsigned integer coordinates where a city should be positioned in a region, starting from the bottom-left corner. (viewtopic.php?p=15384#p15384)
      • πŸ“ region.json
      *For illustration purposes only.
    • πŸ“‚ flatearth: Same structure as πŸ“‚ default.
    • πŸ“‚ tributaries: Same structure as πŸ“‚ default.
  • πŸ“‚ scenarios: Where scenarios for limited time events (unless I get corrected for this otherwise) are stored. Scenarios are also (single) cities and their file names should end with .city.
  • πŸ“ key_mapping.json: Where keybinds for the game's functions are stored.
  • πŸ“ crash.txt, log.txt, and out.txt: For debugging purposes.
  • πŸ“ settings.json: Where the game's settings are stored.

How to access:
  • Show
    Built-in file manager
    20260221_165211.png
    20260221_164647.png
    Screenshot_20260221-170329_TheoTown.png
  • Show
    Android
    /storage/emulated/0/Android/data/info.flowersoft.theotown.theotown/files
    Alternatively, you can access these files on your PC once you connected it with your device (via USB for example).
  • Show
    iOS
    You can access the files via the Files app or, when the device is connected to a Mac, in the storage location for your device in the finder. Search for TheoTown.
  • Windows: C:\Users\<insert usernane>\TheoTown
  • macOS/Linux: /home/TheoTown or ~/TheoTown

Did you know: ".." represents a parent directory, so "plugins/dirA/dirB/../dirC" is just "plugins/dirA/dirC" and so on.

Return to β€œOther”