The original Parameters.json is in History_Game/Content/_MyContents/ExtFiles/ in the game's install folder. For the Steam version, the install folder is the one that opens when you right-click "The End of History" in your Steam library and choose "Manage" → "Browse local files". In the default location it is C:\Program Files (x86)\Steam\steamapps\common\The End of History\History_Game\Content\_MyContents\ExtFiles\. Create a Json folder directly under the MOD folder, copy the original file to <MOD name>/Json/Parameters.json, and edit that copy. Use the original file in the install folder as a reference.
In your copy of Parameters.json, we recommend keeping only the parameters you want to change and deleting the rest. For fields you do not write, the original settings or the settings of other enabled MODs are used. Leaving unchanged fields in can overwrite the settings of other MODs.
After deleting fields, fix the brackets, quotation marks and commas and save it as valid JSON. Normal DT JSON files can also keep only the rows and fields you change. Use _fullReplace.json to replace a whole table.
The following example sets the length of a day at normal speed to 12 seconds and the upper limit of the numbering of random characters' face images to 007.
{
"OneDaySec_NormalSpeed": "12.0",
"RandomUnitTexMaxSuffixNum": "7"
}
Field names must match the original Parameters.json. The values in this example are strings, so even the numbers are in double quotes. When editing other fields, keep the value types used in the original file.
Check settings such as initial numbers and character generation in scenes where a new game or new characters are generated. Content already recorded in existing save data is not all rebuilt.
To change data tables for characters, factions, items and so on, copy the distributed JSON and edit it. The original files are in the same ExtFiles folder as Parameters.json. Files in ExtFiles with _disabled in their names are references and are not loaded by the game as they are. Rewriting or renaming files directly inside ExtFiles is the old method and is not recommended. Always copy them to your MOD's Json folder before editing.
Inside a MOD, remove the language suffix (_en, _jp, _zh-Hans, _zh_Hant) and _disabled from the file name. For example:
DT_ItemList_en_disabled.json → <MOD name>/Json/DT_ItemList.json
DT_UnitList_en_disabled.json → <MOD name>/Json/DT_UnitList.json
DT_UnitLevelHPTable_disabled.json → <MOD name>/Json/DT_UnitLevelHPTable.json
If you write in English, starting from the _en JSON instead of _jp makes the contents easier to read. (Some IDs are still written in Japanese.)
RowName is the name that identifies a row. When changing an existing row, keep its RowName. When adding a new row, give it a unique RowName and update the references in related data.
Name and similar entries are fields inside a row. Even if they contain the same text as RowName, their role is different.
Keep the shape of numbers, strings, booleans, arrays, Maps and nested structs as in the original file. Enum strings (values chosen from a fixed set of options, such as types or categories) must also match the original spelling.
Save JSON in UTF-8. Do not break the JSON syntax with missing quotation marks or commas, trailing commas, or comments. Putting data table JSON you do not change into your MOD can overwrite other MODs' changes, so include only the tables you replace.
Using the _jp (or any language's) JSON does not lock all display text to that language. NSLOCTEXT(...) in the original files carries the information that identifies the translation, plus the source text. If you keep its format and content and the game contains a matching translation, the translation for the game's display language can be used.
On the other hand, translations of text you add or change in a MOD are not created automatically. If you put a plain string into a display Text field, that string is shown as written even when playing in another language. For fields where you want to keep the existing translations, keep the original NSLOCTEXT(...) value.
For example, to replace the value of the display Name with a plain string, write "Name": "New Name". The information identifying the translation is lost, so this name is shown in the language you wrote it in. Do not change names referenced by other data, such as RowName or the various IDs, together with the display text.
When editing NSLOCTEXT(...), keep its format, including quotation marks and escapes. If you change the source text, existing translations may no longer be applied.
Below are the names of the original files in the ExtFiles folder and their main contents. For DT JSON used in a MOD, put the file in Json/ under the name of the original file with the language suffix and _disabled removed. For a full replacement, also add _fullReplace just before .json. Parameters.json keeps the same name.
Settings, countries, characters
Parameters.json: Settings for the whole game, such as how time passes, generation conditions and the upper limit of face image numbering.
DT_CountryList.json: Country names, representative faction, capital, member factions, acquired technologies, and relations between countries.
DT_PowerList.json: Faction names, representative character, member characters and bases, flag image.
DT_CultureList.json: Culture names, random generation weights, effects, and the civilization code of the face images used.
DT_UnitList_en.json: Initial characters' names, ages, gender, culture, abilities, face images, affiliation and family relations, possessions, and more.
DT_FirstNameList.json: Given names for random characters, with culture, gender and unique-name categories.
DT_FamilyNameList.json: Family names for random characters, with culture and unique-name categories.
DT_CharacterLook.json: Appearance settings for each face image name: mesh names and colors for hair and so on.
DT_UnitCharacteristics.json: Character traits and their display text, and groups of traits that cannot be held together.
DT_UnitCharacteristicsGreetResponsePoint.json: How characters of each trait react to each way of greeting.
DT_UnitExpSkillThreashold.json: Experience thresholds required for each skill level of characters.
DT_UnitLevelHPTable.json: HP values for each character level.
Battle, soldiers, items
DT_BattleSkill.json: Battle skill names and descriptions, targets, effects, duration, cooldown, learning and activation conditions, and more.
DT_SoldierTypeList.json: Troop types' culture and line, abilities, equipment, costs, wages, food consumption, and more.
DT_SoldierTraits.json: Soldier traits and their effects.
DT_SoldierExpThreashold.json: Experience thresholds required for soldier levels.
DT_SoldierTypeFormationOrder.json: Placement order within a unit and left/right ordering for each troop line.
DT_ItemList.json: Items such as weapons and armor: price, stats, effects, weight, acquisition and sale conditions, images, and more.
Bases, economy, technology
DT_SpotList.json: Initial data for cities, villages and castles: position, connections, population, industry, culture, lord, facilities, and more. Until MODs for changing the terrain itself are supported, adding or removing territories or changing their positions is not recommended.
DT_SpotUniqueDiscription.json: Unique descriptions shown for specific bases.
DT_DiscoverySpots.json: Names, value and descriptions of discovery spots.
DT_FacilityList.json: Base facilities: which kinds of bases can build them, effects per level, construction cost, upkeep, and more.
DT_TechnologyTypes.json: Technology names and descriptions, required Science Points, prerequisites and restrictions, effects, position in the technology tree, and more.
DT_TradeGoodsList.json: Trade goods types, weight, production and consumption conditions, descriptions, images.
DT_TradingArea.json: Trading area names. The list referenced by each base's trading area setting.
Ranks, orders, proposals, text
DT_Rank.json: Settings for each rank and position: required merit, unit limit, and more.
DT_OrderType.json: Order types: advance funds, eligible ranks, deadline, failure conditions, merit, and more.
DT_SuggestType.json: Proposal types: display name, occurrence category, influence cost, merit when adopted.
DT_InfluenceCost.json: Influence costs of diplomatic actions, faction independence, founding a country, and more.
DT_Flavor.json: Text such as normal world-building descriptions and hints.
DT_Flavor_Collapse.json: Text related to the collapse of the world.
You can also add the suffix DT_XXX_fullReplace.json to the file name.
A normal DT_XXX.json overwrites only the fields written for rows with the same RowName and keeps rows and fields it does not mention. A new RowName adds a row. To rebuild a whole table, name the file DT_XXX_fullReplace.json; rows it does not contain are deleted. Both go in <MOD name>/Json/. The differences, how empty values are handled, and the order of application are summarized in the comparison table below. "ExtFiles" in the order of application only matters if you used the old method of removing _disabled from file names inside ExtFiles.