Trade company modding
This page is an explanation of how to mod a trade company. The relevant folder is /Europa Universalis IV/common/trade_companies. In the vanilla game, this folder only contains one file 00_trade_companies.txt. This is the file that must be edited when modifying existing trade companies, unless the mod replaces the trade companies path (or the entire common path). In that case or if you are adding entirely new trade companies, one or more new file(s) with any name can be created in the trade companies folder.
Contents
Trade company code[edit]
![]() |
This section may contain outdated information that is inaccurate for the current version of the game. The last version it was verified as up to date for was 1.23. |
A trade company is defined on the following model
trade_company_west_africa = { color = { 50 0 200 } provinces = { 1164 1165 1166 1096 1793 2241 1466 1097 1098 1118 1119 1151 1163 2242 1168 1306 4078 4079 4080 1111 1126 1139 1141 2257 2258 1147 2289 2290 2294 1112 1113 1116 2239 1114 1117 2238 1167 1171 1172 1174 } names = { name = "TRADE_COMPANY_WEST_AFRICA_Root_Culture_GetName" } names = { name = "TRADE_COMPANY_WEST_AFRICA_Africa_Trade_Company" } }
Name[edit]
Each trade comany needs a unique name, which begin the entry.
trade_company_west_africa = { }
Color[edit]
The color line determines the charter in Colonial and Trade Regions map mode.
color = { 50 0 200 }
Provinces[edit]
The provinces section should include all the provinces you want to see included in that trade company.
A province can only be part of one trade company, or it'll cause a game crash.
Note that, in Vanilla, trade companies match trade nodes.
provinces = { 1164 1165 1166 1096 1793 2241 1466 1097 1098 1118 1119 1151 1163 2242 1168 1306 4078 4079 4080 1111 1126 1139 1141 2257 2258 1147 2289 2290 2294 1112 1113 1116 2239 1114 1117 2238 1167 1171 1172 1174 }
Trade Company names[edit]
These names work like any other localisation strings, but it is useful to follow existing naming conventions.
names = { name = "TRADE_COMPANY_WEST_AFRICA_Root_Culture_GetName" }
Localisations[edit]
Localisation is handled in the same way as any other localisation string. For example:
trade_company_west_africa:0 "West Africa Charter" TRADE_COMPANY_WEST_AFRICA_Root_GetName:0 "[Root.GetAdjective] West Africa Company" TRADE_COMPANY_WEST_AFRICA_Africa_Trade_Company:0 "West Africa Trade Company"
In the above examples, [Root.GetAdjective] will find the national adjective of the company's overlord (English, British, French etc.) and use that as the first word in the name.
Documentation | Effects • Triggers • Modifiers • Scopes • Variables • Localisation • Customizable localization |
Scripting | Advisors • Ages • Bookmarks • Buildings • Casus belli • Colonial regions • Countries • Culture • Decisions • Defines • Diplomatic actions • Disasters • Estates • Events • Factions • Government • Great projects • History • Idea groups • Institutions • Missions • Modifiers • Nation designer • Policies • Religion • Rebel types • Subject types • Technology • Trade companies • Trade goods • Units |
Map | Map • Random New World • Trade nodes |
Graphics | 3D Models • Interface • Graphical Assets • Fonts • Particles • Shaders • Unit models |
Audio | Music • Sound |
Other | Console commands • Checksum • JoroDox mod making tool • Mod structure • Troubleshooting • The Validator |
Guides | Adding a province |