Fantasy Map Simulator – Guides to Modding

Modding Guide

By Murtage.

Here is a quick guide to modding assets available to us. First the moddable files are in SteamingAssets which for a default save of steam and game is located here:

  • C:\Program Files (x86)\Steam\steamapps\common\FantasyMapSimulator\FantasyMapSimulator_Data\StreamingAssets

Alternatively you can go to steam right click the games in the library and select properties then in the screen that shows up go to installed files tab and select browse.

There are 5 types of mods you can make. They are located from StreamingAssets folder.

Events/etc:

  • localization.csv

Biome:

  • /Base/BiomeResource/BiomeResource.json
  • /Base/BiomeResource/localization.csv

Culture Sets:

  • /Base/Culture/{Name Of Culture}/CityNames.csv
  • /Base/Culture/{Name Of Culture}/PoliticalSystems.json
  • /Base/Culture/{Name Of Culture}/StateNames.csv

Religion Sets:

  • /Base/Religion/{Name of Religion/localization.csv
  • /Base/Religion/{Name of Religion/Religion.json

Traits:

  • /Base/Traits/traits.json

We will start with culture sets once again the folder layout is

  • /Base/Culture/{Name Of Culture}/CityNames.csv
  • /Base/Culture/{Name Of Culture}/PoliticalSystems.json
  • /Base/Culture/{Name Of Culture}/StateNames.csv

CityNames.csv and StateNames.csv are identical in layout one names States the other names Provinces within those States. CSV stands for comma separated value and can be loaded by Google Sheets or Microsoft Excel or any text editor

Format is:

  • Headers1, headers2, …
  • Value1, value2, …

Headers in these two files are:

  • Key, Language1, Language2, …
  • Value, valueInLanguage1, valueInLanguage2, …

So if you were only supporting English your StateNames.csv would look like:

  • Key, English
  • France, France
  • England, England
  • Portugal, Portugal
  • Etc, etc

Support for more than one language would be:

  • Key, English, Francais, etc
  • France, France, La France, etc
  • England, England, Angleterre, etc

For Example

Your StateNames.csv might look like:

  • Key, English,
  • Poland, Poland,
  • Russia, Russia,
  • Ukraine, Ukraine,

Note the comma on the end of the line for the state names. As mentioned above a regular csv file would end a line without a command and then the next line would start. It appears that even though the formatting is different lines this csv would actually be one long line because it is connected by commas.

Never seen it like this before, but that is how the game is coded.

The bad part about this is if you load the .csv into excel and saved it and then opened it up into a text editor the commas at the end would be removed and the game would load the csv in a normal format and freak out.

Edit the CSVs in a text editor.

CityNames.csv would likewise look like:

  • Key, English, Francais, etc
  • Paris, Paris, Paris, etc
  • London, London, Londres, etc

However, remember to throw those commas on the end like so:

  • Key, English, Francais,
  • Paris, Paris, Paris,
  • London, London, Londres,

PoliticalSystems.json is a bit different because it is a JSON file. General structure of a JSON file is:

{
    Object1{
ValueName: value
    Or
    ValueName: 
[
        valueName1: value1,
        valueName2: value2,
valueNameEtc: valueEtc
    ]
},
    Object2{
        ValueName: value
        Or
        ValueName: 
            [
                valueName1: value1,
                valueName2: value2,
                valueNameEtc: valueEtc
            ]
        },
    ObjectEtc…
}

For PoliticalSystems.json its simple one object filled with an array of values:

{
    “PoliticalSystems”: [
        “Kingdom”,
        “Empire”,
        “Federation”,
        “Republic”,
        “Tribal”,
        “Theocracy”
]
}

PoliticalSystems.json lets you choose which political system your states can spawn with so if you just put:

{
    “PoliticalSystems”: [
“Kingdom”
]
}

Then every state created with this culture set would spawn with the political system “Kingdom”. You are at the mercy of the 6 base political systems which are drawn from /StreamingAssets/localization.csv

You can change the names of these political systems but will be restricted to 6 and will not be able to modify what these political systems do in game.

If you do not provide enough city names and/or state names and create in-game more states, cities then there are names you’ll get a weird named state along the lines of, “Not enough names in culture set {Your culture set}”

Example CityNames.csv

Example StateNames.csv

Example PoliticalSystem.json

Example state/province in game

Out of names error

Jan Bakowski
About Jan Bakowski 474 Articles
A lifelong gamer Jan Bakowski, also known as Lazy Dice, was always interested in gaming and writing. He lives in Poland (Wrocław). His passion for games began with The Legend of Zelda: Ocarina of Time on the Nintendo 64 back in 1998. Proud owner of Steam Deck, which has become his primary gaming platform. He’s been making guides since 2012. Sharing his gaming experience with other players has become not only his hobby but also his job.

Be the first to comment

Leave a Reply

Your email address will not be published.


*