mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 23:37:31 +07:00
904 lines
27 KiB
HTML
904 lines
27 KiB
HTML
|
|
<!doctype html>
|
|
<html lang="en" class="no-js">
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
|
|
|
|
<link rel="icon" href="../../assets/images/favicon.png">
|
|
<meta name="generator" content="mkdocs-1.2.3, mkdocs-material-8.2.1">
|
|
|
|
|
|
|
|
<title>Miscellaneous JSON files - My Docs</title>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../../assets/stylesheets/main.e8d9bf0c.min.css">
|
|
|
|
|
|
<link rel="stylesheet" href="../../assets/stylesheets/palette.e6a45f82.min.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
|
|
<style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
|
|
|
|
|
|
|
|
<script>__md_scope=new URL("../..",location),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<body dir="ltr" data-md-color-scheme="" data-md-color-primary="none" data-md-color-accent="none">
|
|
|
|
|
|
|
|
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
|
|
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
|
|
<label class="md-overlay" for="__drawer"></label>
|
|
<div data-md-component="skip">
|
|
|
|
|
|
<a href="#difficultiesjson" class="md-skip">
|
|
Skip to content
|
|
</a>
|
|
|
|
</div>
|
|
<div data-md-component="announce">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<header class="md-header" data-md-component="header">
|
|
<nav class="md-header__inner md-grid" aria-label="Header">
|
|
<a href="../.." title="My Docs" class="md-header__button md-logo" aria-label="My Docs" data-md-component="logo">
|
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54z"/></svg>
|
|
|
|
</a>
|
|
<label class="md-header__button md-icon" for="__drawer">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
|
|
</label>
|
|
<div class="md-header__title" data-md-component="header-title">
|
|
<div class="md-header__ellipsis">
|
|
<div class="md-header__topic">
|
|
<span class="md-ellipsis">
|
|
My Docs
|
|
</span>
|
|
</div>
|
|
<div class="md-header__topic" data-md-component="header-topic">
|
|
<span class="md-ellipsis">
|
|
|
|
Miscellaneous JSON files
|
|
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<label class="md-header__button md-icon" for="__search">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
|
|
</label>
|
|
<div class="md-search" data-md-component="search" role="dialog">
|
|
<label class="md-search__overlay" for="__search"></label>
|
|
<div class="md-search__inner" role="search">
|
|
<form class="md-search__form" name="search">
|
|
<input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
|
|
<label class="md-search__icon md-icon" for="__search">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
|
</label>
|
|
<nav class="md-search__options" aria-label="Search">
|
|
|
|
<button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
|
|
</button>
|
|
</nav>
|
|
|
|
</form>
|
|
<div class="md-search__output">
|
|
<div class="md-search__scrollwrap" data-md-scrollfix>
|
|
<div class="md-search-result" data-md-component="search-result">
|
|
<div class="md-search-result__meta">
|
|
Initializing search
|
|
</div>
|
|
<ol class="md-search-result__list"></ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<div class="md-container" data-md-component="container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<main class="md-main" data-md-component="main">
|
|
<div class="md-main__inner md-grid">
|
|
|
|
|
|
|
|
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
|
|
<div class="md-sidebar__scrollwrap">
|
|
<div class="md-sidebar__inner">
|
|
|
|
|
|
|
|
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
|
<label class="md-nav__title" for="__drawer">
|
|
<a href="../.." title="My Docs" class="md-nav__button md-logo" aria-label="My Docs" data-md-component="logo">
|
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54z"/></svg>
|
|
|
|
</a>
|
|
My Docs
|
|
</label>
|
|
|
|
<ul class="md-nav__list" data-md-scrollfix>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../.." class="md-nav__link">
|
|
Welcome to MkDocs
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../../Credits/" class="md-nav__link">
|
|
Icon Credits
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../../Game%20Making%20Tips/" class="md-nav__link">
|
|
Tips and tricks for making a LibGDX game
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../../unique%20parameters/" class="md-nav__link">
|
|
Unique parameters
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../../uniques/" class="md-nav__link">
|
|
Uniques
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
|
|
|
|
|
|
<input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" checked>
|
|
|
|
|
|
|
|
|
|
<label class="md-nav__link" for="__nav_6">
|
|
Wiki
|
|
<span class="md-nav__icon md-icon"></span>
|
|
</label>
|
|
|
|
<nav class="md-nav" aria-label="Wiki" data-md-level="1">
|
|
<label class="md-nav__title" for="__nav_6">
|
|
<span class="md-nav__icon md-icon"></span>
|
|
Wiki
|
|
</label>
|
|
<ul class="md-nav__list" data-md-scrollfix>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Audiovisual-Mods/" class="md-nav__link">
|
|
Audiovisual Mods
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Building-locally-without-Android-Studio/" class="md-nav__link">
|
|
Building locally without Android Studio
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Civilization-related-JSON-files/" class="md-nav__link">
|
|
Civilization related JSON files
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Coding-standards/" class="md-nav__link">
|
|
Coding standards
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Creating-a-custom-tileset/" class="md-nav__link">
|
|
How to make Unciv use your custom tileset
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Force-rating-calculation/" class="md-nav__link">
|
|
Force rating
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../From-code-to-deployment/" class="md-nav__link">
|
|
From code to deployment
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Getting-Started/" class="md-nav__link">
|
|
Getting Started
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Home/" class="md-nav__link">
|
|
Home
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Installing-on-macOS/" class="md-nav__link">
|
|
Installing on macOS
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../JSON-files-for-mods/" class="md-nav__link">
|
|
JSON files for mods
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Making-a-new-Civilization/" class="md-nav__link">
|
|
Making a new Civilization
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Map-related-JSON-files/" class="md-nav__link">
|
|
Map related JSON files
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item md-nav__item--active">
|
|
|
|
<input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
|
|
|
|
|
|
|
|
<label class="md-nav__link md-nav__link--active" for="__toc">
|
|
Miscellaneous JSON files
|
|
<span class="md-nav__icon md-icon"></span>
|
|
</label>
|
|
|
|
<a href="./" class="md-nav__link md-nav__link--active">
|
|
Miscellaneous JSON files
|
|
</a>
|
|
|
|
|
|
|
|
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
|
|
|
|
|
|
|
|
|
|
<label class="md-nav__title" for="__toc">
|
|
<span class="md-nav__icon md-icon"></span>
|
|
Table of contents
|
|
</label>
|
|
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#difficultiesjson" class="md-nav__link">
|
|
Difficulties.json
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#erasjson" class="md-nav__link">
|
|
Eras.json
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#modoptionsjson" class="md-nav__link">
|
|
ModOptions.json
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#civilopedia-text" class="md-nav__link">
|
|
Civilopedia text
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Mods/" class="md-nav__link">
|
|
Mods
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Project-structure-and-major-classes/" class="md-nav__link">
|
|
Project structure
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Regions/" class="md-nav__link">
|
|
Regions
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Translating/" class="md-nav__link">
|
|
Translating
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Translations%2C-mods%2C-and-modding-freedom-in-Open-Source/" class="md-nav__link">
|
|
Translations, mods, and modding freedom in Open Source
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Uniques/" class="md-nav__link">
|
|
Uniques
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../Unit-related-JSON-files/" class="md-nav__link">
|
|
Unit related JSON files
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../_Footer/" class="md-nav__link">
|
|
Footer
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="md-nav__item">
|
|
<a href="../_Sidebar/" class="md-nav__link">
|
|
[Home](.)
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
|
|
<div class="md-sidebar__scrollwrap">
|
|
<div class="md-sidebar__inner">
|
|
|
|
|
|
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
|
|
|
|
|
|
|
|
|
|
<label class="md-nav__title" for="__toc">
|
|
<span class="md-nav__icon md-icon"></span>
|
|
Table of contents
|
|
</label>
|
|
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#difficultiesjson" class="md-nav__link">
|
|
Difficulties.json
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#erasjson" class="md-nav__link">
|
|
Eras.json
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#modoptionsjson" class="md-nav__link">
|
|
ModOptions.json
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="md-nav__item">
|
|
<a href="#civilopedia-text" class="md-nav__link">
|
|
Civilopedia text
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="md-content" data-md-component="content">
|
|
<article class="md-content__inner md-typeset">
|
|
|
|
|
|
|
|
|
|
<h1>Miscellaneous JSON files</h1>
|
|
|
|
<ul>
|
|
<li><a href="#difficultiesjson">Difficulties.json</a></li>
|
|
<li><a href="#erasjson">Eras.json</a></li>
|
|
<li><a href="#modoptionsjson">ModOptions.json</a></li>
|
|
<li><a href="#civilopedia-text">Generic Civilopedia Text</a></li>
|
|
</ul>
|
|
<h2 id="difficultiesjson">Difficulties.json</h2>
|
|
<p><a href="/android/assets/jsons/Civ%20V%20-%20Vanilla/Difficulties.json">Link to original</a></p>
|
|
<p>This file defines the difficulty levels a player can choose when starting a new game.</p>
|
|
<p>Each difficulty level can have the following attributes:
|
|
| Attribute | Type | Mandatory | Notes |
|
|
| --------- | ---- | ------- | ----- |
|
|
| name | String | Required | Name of the difficulty level |
|
|
| baseHappiness | Integer | Default 0 |
|
|
| extraHappinessPerLuxury | Float | Default 0 |
|
|
| researchCostModifier | Float | Default 1 |
|
|
| unitCostModifier | Float | Default 1 |
|
|
| buildingCostModifier | Float | Default 1 |
|
|
| policyCostModifier | Float | Default 1 |
|
|
| unhappinessModifier | Float | Default 1 |
|
|
| barbarianBonus | Float | Default 0 |
|
|
| playerBonusStartingUnits | List of Units | Default empty | Can also be 'Era Starting Unit', maps to <code>startingMilitaryUnit</code> of the Eras file. All other units must be in <a href="../Unit-related-JSON-files/#unitsjson">Units.json</a>] |
|
|
| aiCityGrowthModifier | Float | Default 1 |
|
|
| aiUnitCostModifier | Float | Default 1 |
|
|
| aiBuildingCostModifier | Float | Default 1 |
|
|
| aiWonderCostModifier | Float | Default 1 |
|
|
| aiBuildingMaintenanceModifier | Float | Default 1 |
|
|
| aiUnitMaintenanceModifier | Float | Default 1 |
|
|
| aiFreeTechs | List of Techs | Default empty |
|
|
| aiMajorCivBonusStartingUnits | List of Units | Default empty | See above |
|
|
| aiCityStateBonusStartingUnits | List of Units | Default empty | See above |
|
|
| aiUnhappinessModifier | Float | Default 1 |
|
|
| aisExchangeTechs | Boolean | | Unimplemented |
|
|
| turnBarbariansCanEnterPlayerTiles | Integer | Default 0 |
|
|
| clearBarbarianCampReward | Integer | Default 25 |</p>
|
|
<h2 id="erasjson">Eras.json</h2>
|
|
<p><a href="/android/assets/jsons/Civ%20V%20-%20Vanilla/Eras.json">Link to original</a></p>
|
|
<p>This file should contain all the era's you want to use in your mod.</p>
|
|
<p>Each era can have the following attributes:
|
|
| attribute | Type | optional or not | notes |
|
|
| --------- | ---- | --------------- | ----- |
|
|
| name | String | required | Name of the era |
|
|
| researchAgreementCost | Integer (≥0) | defaults to 300 | Cost of research agreements were the most technologically advanced civ is in this era |
|
|
| iconRGB | List of 3 Integers | defaults to [255,255,255] | RGB color that icons for technologies of this era should have in the Tech screen |
|
|
| unitBaseBuyCost | Integer (≥0) | defaults to 200 | Base cost of buying units with Faith, Food, Science or Culture when no other cost is provided |
|
|
| startingSettlerCount | Integer (≥0) | defaults to 1 | Amount of settler units that should be spawned when starting a game in this era |
|
|
| startingSettlerUnit | String | defaults to "Settler" | Name of the unit that should be used for the previous field. Must be in <a href="../Unit-related-JSON-files/#unitsjson">Units.json</a> |
|
|
| startingWokerCount | Integer (≥0) | defaults to 0 | Amount of worker units that should be spawned when starting a game in this era |
|
|
| startingWorkerUnit | String | defaults to "Worker" | Name of the unit that should be used for the previous field. Must be in <a href="../Unit-related-JSON-files/#unitsjson">Units.json</a> |
|
|
| startingMilitaryUnitCount | Integer (≥0) | defaults to 1 | Amount of military units that should be spawned when starting a game in this era |
|
|
| startingMilitaryUnit | String | defaults to "Warrior" | Name of the unit that should be used for the previous field. Must be in <a href="../Unit-related-JSON-files/#unitsjson">Units.json</a>|
|
|
| startingGold | Integer (≥0) | defaults to 0 | Amount of gold each civ should receive when starting a game in this era |
|
|
| startingCulture | Integer (≥0) | defaults to 0 | Amount of culture each civ should receive when starting a game in this era |
|
|
| settlerPopulation | Integer (>0) | defaults to 1 | Default amount of population each city should have when settled when starting a game in this era |
|
|
| settlerBuildings | List of Strings | defaults to none | Buildings that should automatically be built whenever a city is settled when starting a game in this era |
|
|
| startingObsoleteWonders | List of Strings | defaults to none | Wonders (and technically buildings) that should be impossible to built when starting a game in this era. Used in the base game to remove all wonders older than 2 era's |</p>
|
|
<h2 id="modoptionsjson">ModOptions.json</h2>
|
|
<p>This file is a little different:
|
|
- Does not exist in Vanilla ruleset
|
|
- Is entirely optional but will be created after downloading a mod</p>
|
|
<p>The file can have the following attributes, including the values Unciv sets (no point in a mod author setting those):
|
|
| Attribute | Type | Defaults | Notes |
|
|
|-----------|------|-----------|-------|
|
|
| isBaseRuleset | Boolean | false | Differentiates mods that change the vanilla ruleset or replace it |
|
|
| maxXPfromBarbarians | Integer | 30 | ...as the name says... |
|
|
| uniques | List | empty | Mod-wide specials, <a href="../Uniques/#modoptions-uniques">see here</a> |
|
|
| techsToRemove | List | empty | List of <a href="../Civilization-related-JSON-files/#techsjson">Technologies</a> to remove (isBaseRuleset=false only) |
|
|
| buildingsToRemove | List | empty | List of <a href="../Civilization-related-JSON-files/#buildingsjson">Buildings or Wonders</a> to remove (isBaseRuleset=false only) |
|
|
| unitsToRemove | List | empty | List of <a href="../Unit-related-JSON-files/#unitsjson">Units</a> to remove (isBaseRuleset=false only) |
|
|
| nationsToRemove | List | empty | List of <a href="../Civilization-related-JSON-files/#nationsjson">Nations</a> to remove (isBaseRuleset=false only) |
|
|
| lastUpdated | String | empty | Set automatically after download - Last repository update, not necessarily last content change |
|
|
| modUrl | String | empty | Set automatically after download - URL of repository |
|
|
| author | String | empty | Set automatically after download - Owner of repository |
|
|
| modSize | Integer | empty | Set automatically after download - kB in entire repository, not sum of default branch files |</p>
|
|
<h2 id="civilopedia-text">Civilopedia text</h2>
|
|
<p>Any 'thing' defined in json and listed in the Civilopedia can supply extra text, specifically for the Civilopedia. This can be used to explain special considerations better when the automatically generated display is insufficient, or for 'flavour', background stories and the like. Such text can be formatted and linked to other Civilopedia entries, within limits.</p>
|
|
<p>An example of the format is:</p>
|
|
<pre><code class="language-json"> "civilopediaText": [
|
|
{"text":"Ancient ruins provide a one-time random bonus when explored"},
|
|
{"separator":true},
|
|
{"text":"This line is red and links to the Scout including icons", "link":"Unit/Scout", "color":"red"},
|
|
{"text":"A big fat header sporting a golden star", "header":1, "starred":true, "color":"#ffeb7f"},
|
|
],
|
|
</code></pre>
|
|
<p>List of attributes - note not all combinations are valid:
|
|
|attribute|type|description|
|
|
|---------|----|-----------|
|
|
|<code>text</code>|String|Text to display.|
|
|
|<code>link</code>|String|Create link and icon, format: Category/Name or <em>external</em> link ('http://','https://','mailto:').|
|
|
|<code>icon</code>|String|Show icon without linking, format: Category/Name.|
|
|
|<code>extraImage</code>|String|Display an Image instead of text. Can be a path found in a texture atlas or or the name of a png or jpg in the ExtraImages folder.|
|
|
|<code>imageSize</code>|Float|Width in world units of the [extraImage], height is calculated preserving aspect ratio. Defaults to available width.|
|
|
|<code>header</code>|Integer|Header level. 1 means double text size and decreases from there.|
|
|
|<code>size</code>|Integer|Text size, default is 18. Use <code>size</code> or <code>header</code> but not both.|
|
|
|<code>indent</code>|Integer|Indent level. 0 means text will follow icons, 1 aligns to the right of all icons, each further step is 30 units.|
|
|
|<code>padding</code>|Float|Vertical padding between rows, defaults to 5 units.|
|
|
|<code>color</code>|String|Sets text color, accepts names or 6/3-digit web colors (e.g. #FFA040).|
|
|
|<code>separator</code>|Boolean|Renders a separator line instead of text. Can be combined only with <code>color</code> and <code>size</code> (line width, default 2).|
|
|
|<code>starred</code>|Boolean|Decorates text with a star icon - if set, it receives the <code>color</code> instead of the text.|
|
|
|<code>centered</code>|Boolean|Centers the line (and turns off automatic wrap).|</p>
|
|
<p>The lines from json will 'surround' the automatically generated lines such that the latter are inserted just above the first json line carrying a link, if any. If no json lines have links, they will be inserted between the automatic title and the automatic info. This method may, however, change in the future.</p>
|
|
|
|
|
|
</article>
|
|
</div>
|
|
</div>
|
|
|
|
</main>
|
|
|
|
<footer class="md-footer">
|
|
|
|
<nav class="md-footer__inner md-grid" aria-label="Footer">
|
|
|
|
|
|
<a href="../Map-related-JSON-files/" class="md-footer__link md-footer__link--prev" aria-label="Previous: Map related JSON files" rel="prev">
|
|
<div class="md-footer__button md-icon">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
|
|
</div>
|
|
<div class="md-footer__title">
|
|
<div class="md-ellipsis">
|
|
<span class="md-footer__direction">
|
|
Previous
|
|
</span>
|
|
Map related JSON files
|
|
</div>
|
|
</div>
|
|
</a>
|
|
|
|
|
|
|
|
<a href="../Mods/" class="md-footer__link md-footer__link--next" aria-label="Next: Mods" rel="next">
|
|
<div class="md-footer__title">
|
|
<div class="md-ellipsis">
|
|
<span class="md-footer__direction">
|
|
Next
|
|
</span>
|
|
Mods
|
|
</div>
|
|
</div>
|
|
<div class="md-footer__button md-icon">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
|
|
</div>
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
<div class="md-footer-meta md-typeset">
|
|
<div class="md-footer-meta__inner md-grid">
|
|
<div class="md-copyright">
|
|
|
|
|
|
Made with
|
|
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
|
Material for MkDocs
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
</div>
|
|
<div class="md-dialog" data-md-component="dialog">
|
|
<div class="md-dialog__inner md-typeset"></div>
|
|
</div>
|
|
<script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.bd0b6b67.min.js"}</script>
|
|
|
|
|
|
<script src="../../assets/javascripts/bundle.8aa65030.min.js"></script>
|
|
|
|
|
|
</body>
|
|
</html> |