Develop / World data format · All guides · Improve this page ↗

On this page

Default world data pack

For a complete asset-copy workflow, current modding limits and C++ behavior extensions, see Extending and modding.

This directory is the world that a new career starts from: eleven countries, each with a top division and a second division linked for promotion and relegation (three clubs up, three down every season). Clubs are named after real cities and towns (including the Apulian towns of the Italian second division, Acaya among them), but the pack contains no real crests, kits, stadiums or professional players: kit colours, nicknames, founding years and player identities are fictional, with optional contributor-name cameos. Stadiums use a generic municipal naming pattern (which can coincide with a real municipal stadium's name). Keep professional players, real club badges and copied kits out of the pack. Contributors may use their own name or nickname for a fictional player as an optional credit; follow the player cameo guide.

Files are read at startup from the asset root (AssetPaths in src/global/paths.h.in: installed data next to the executable, else the source checkout). Every .json file in teams/ and players/ is loaded, so a data pack can be split over as many files as you like. All files are UTF-8 JSON.

leagues/leagues.json

Array of leagues.

FieldRequiredMeaning
idyesLeague id (1-249; 250 and up are continental competitions). Also keys the economy/nationality/region profile in src/model/world_tuning.h (LEAGUE_PROFILES): add a row for every new league, otherwise it silently gets a default English, European profile.
nameyesDisplay name. The domestic cup of a top division is named after it ("League" becomes "Cup").
parent_leaguenoId of the division above; links the tiers of one country for promotion and relegation. A league without a parent is a country's top division: it names the domestic cup (entered by every division of the country) and is the country for continental places and scouting.
tiebreakno"head_to_head" or omitted for goal difference.

teams/*.json

Array of clubs. The default pack uses 20 clubs per league; keep leagues at an even size and check src/model/match_scheduler.* before changing it. Team ids follow the league: league L holds ids L*100+1 to L*100+20 (for example 1401-1420 for the English second division). The second divisions of every country except Italy are in second_divisions.json.

FieldRequiredMeaning
idyesUnique team id (1-65535; 0 is reserved for free agents). Keep ids stable: saves refer to them.
nameyesDisplay name.
league_idyesLeague the club starts in.
balancenoIgnored for new worlds (opening cash follows reputation).
short_namenoThree-letter code, unique in the pack, e.g. "LEC".
colours.primarynoKit colour "#RRGGBB".
colours.secondarynoKit colour "#RRGGBB", different from the primary.
stadium.namenoStadium name.
stadium.capacitynoNominal capacity (see below).
foundednoFounding year.
nicknamenoClub nickname.
article_itnoItalian article ("il", "lo", "l'", "la") when the default (masculine, chosen from the first letters) is wrong, e.g. "la" for Roma.

The optional fields are read by DataGenerator::loadClubIdentities() (and article_it by loadClubArticles()) and are not stored in saves. Reputation, facilities, ticket prices and the stadium capacity used by the simulation are generated from the world seed, so stadium.capacity is descriptive only for now.

players/*.json

Optional hand-made players. Every club is filled up to a full squad with generated players, so this directory may be empty.

FieldMeaning
idUnique player id below 50000 (generated players start there).
team_idClub id.
first_name, last_nameFictional names, or your own chosen contributor name/nickname.
age, heightYears, centimetres.
nationalityDemonym such as "Italian" (see stringToLanguage in src/global/languages.h; unknown values fall back to English).
roleRole name understood by RoleUtils::fromString.
statsMap of the attribute names in assets/config/stats_config.json to 1-100 values.
contract_years, wageContract length and weekly wage.
preferred_foot"Left" or "Right".
statusOptional, defaults to 0.

names_files/

first_names.json and last_names.json are the name pools for generated players, staff and scouts.

FieldRequiredMeaning
namesyesArray of names, used for nationalities without a pool of their own. Must not be empty.
by_nationalitynoObject mapping a nationality demonym (as for players, e.g. "Italian") to an array of names. Generated players and staff of that nationality draw from it; unknown demonyms and empty arrays are ignored.

first_names.json may also carry a hashed exclusion list, excluded_name_hashes: full names the generator must never produce, stored only as hashes so the pack contains no real people's names. Each entry is the 16-digit lowercase hex form of NamePool::nameHash (salted 64-bit FNV-1a of the name in lower case, Latin accents folded, single spaces; see src/model/world_generation.cpp). A generated first and last name pair whose hash is on the list is drawn again. Do not add plain names to the pack for this purpose.