47 "Unknown leader type " + std::string(name) +
" in file " + err.
file_name +
" line " + std::to_string(line) +
"\n";
81 if(pr.second == context.
id) {
128 "Error, only issues can be administrative (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
149 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"fascist"))
151 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"monarchy"))
153 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"republic"))
156 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"theocracy"))
158 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"special"))
162 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"populist"))
168 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"monarchy2"))
170 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"monarchy3"))
172 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"republic2"))
174 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"republic3"))
176 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"communist2"))
178 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"communist3"))
180 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"fascist2"))
182 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"fascist3"))
184 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"theocracy2"))
186 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"theocracy3"))
188 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"cosmetic_1"))
190 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"cosmetic_2"))
192 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"colonial"))
194 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"nationalist"))
196 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"sectarian"))
198 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"socialist"))
200 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"dominion"))
202 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"agrarism"))
204 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"national_syndicalist"))
206 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"theocratic"))
216 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"anarcho_liberal"))
220 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"traditionalist"))
222 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"ultranationalist"))
225 err.
accumulated_errors +=
"Unknown flag type " + std::string(value) +
" in file " + err.
file_name +
" line " + std::to_string(line) +
"\n";
238 "Unknown ideology " + std::string(
text) +
" in file " + err.
file_name +
" line " + std::to_string(line) +
"\n";
283 "Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
291 err.
accumulated_errors +=
"Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
297 err.
accumulated_warnings +=
"Province id " + std::to_string(value) +
" was not found (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
304 err.
accumulated_errors +=
"Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
318 err.
accumulated_errors +=
"Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
333 "Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
364 err.
accumulated_errors +=
"Unknown commodity " + std::string(name) +
" in file " + err.
file_name +
" line " + std::to_string(line) +
"\n";
411 std::string(option) +
" is not a valid option name (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
420 if(
text.length() <= 2)
424 if(existing_count == 0) {
442 "Invalid culture " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
453 "Invalid religion " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
464 "Invalid rebel type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
470 dcon::pop_type_id ptype;
475 "Invalid pop type " + std::string(type) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
478 auto pop_id = pops_by_location.get_pop();
479 if(pop_id.get_culture() == def.
cul_id && pop_id.get_poptype() == ptype && pop_id.get_religion() == def.
rel_id) {
480 pop_id.get_size() += float(def.
size);
486 new_pop.set_culture(def.
cul_id);
487 new_pop.set_religion(def.
rel_id);
488 new_pop.set_size(
float(def.
size));
489 new_pop.set_poptype(ptype);
497 if(existing_faction) {
501 new_faction.set_type(def.
reb_id);
529 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"middle"))
535 "Invalid pop strata " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
607 if(value.length() > 0 && value[0] ==
'f') {
609 }
else if(value.length() > 0 && value[0] ==
'l') {
616 if(cid.index() < value.data.ssize())
623 if(cid.index() < value.data.ssize())
630 if(cid.index() < value.data.ssize())
1375 "Only uncivilized nation reforms may have a tech cost (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1407 "Error, only issues can have an administrative multiplier (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1448 "Invalid ideology " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1459 std::string str_label{label};
1468 "Invalid pop type / commodity " + str_label +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1515 "Invalid commodity " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1527 "Invalid commodity " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1537 "Invalid commodity " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1546 "Invalid commodity " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1555 temp.type = it->second;
1559 "Invalid unit type " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1581 err.
accumulated_errors +=
"Invalid technology folder name " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1597 "Invalid unit type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1615 "Invalid factory type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1632 err.
accumulated_errors +=
"unknown technology key " + std::string(name) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1643 "Invalid commodity " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1655 "Invalid commodity " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1667 "Invalid commodity " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1680 "Invalid rebel type " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1689 temp.type = it->second;
1693 "Invalid unit type " + std::string(label) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1704 "Invalid unit type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1721 "Invalid factory type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1738 err.
accumulated_errors +=
"unknown technology key " + std::string(name) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1760 "Invalid crime " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1790 for(
uint32_t i = 0; i < value.next_to_add_n; ++i) {
1793 "Too many modifiers attached to invention (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1800 for(
uint32_t i = 0; i < value.next_to_add_p; ++i) {
1803 "Too many modifiers attached to invention (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
1814 int32_t value =
parse_int(chance, line, err);
1819 auto id = context.
state.
world.create_national_event();
1828 int32_t value =
parse_int(chance, line, err);
1833 auto id = context.
state.
world.create_national_event();
1843 int32_t value =
parse_int(chance, line, err);
1848 auto id = context.
state.
world.create_provincial_event();
1858 int32_t value =
parse_int(chance, line, err);
1863 auto id = context.
state.
world.create_provincial_event();
1873 int32_t value =
parse_int(chance, line, err);
1878 auto id = context.
state.
world.create_national_event();
1887 int32_t value =
parse_int(chance, line, err);
1892 auto id = context.
state.
world.create_national_event();
1902 int32_t value =
parse_int(chance, line, err);
1907 auto id = context.
state.
world.create_national_event();
1917 int32_t value =
parse_int(chance, line, err);
1922 auto id = context.
state.
world.create_national_event();
1931 int32_t value =
parse_int(chance, line, err);
1936 auto id = context.
state.
world.create_national_event();
1946 int32_t value =
parse_int(chance, line, err);
1951 auto id = context.
state.
world.create_national_event();
1960 int32_t value =
parse_int(chance, line, err);
1965 auto id = context.
state.
world.create_national_event();
1975 int32_t value =
parse_int(chance, line, err);
1980 auto id = context.
state.
world.create_national_event();
1989 int32_t value =
parse_int(chance, line, err);
1994 auto id = context.
state.
world.create_national_event();
2004 int32_t value =
parse_int(chance, line, err);
2009 auto id = context.
state.
world.create_national_event();
2019 int32_t value =
parse_int(chance, line, err);
2024 auto id = context.
state.
world.create_national_event();
2033 int32_t value =
parse_int(chance, line, err);
2038 auto id = context.
state.
world.create_national_event();
2048 int32_t value =
parse_int(chance, line, err);
2053 auto id = context.
state.
world.create_national_event();
2063 int32_t value =
parse_int(chance, line, err);
2068 auto id = context.
state.
world.create_national_event();
2078 int32_t value =
parse_int(chance, line, err);
2083 auto id = context.
state.
world.create_national_event();
2098 "Invalid government " + std::string(to_gov) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2102 "Invalid government " + std::string(from_gov) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2117 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"nation"))
2119 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"culture"))
2121 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"nation_culture"))
2123 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"nation_religion"))
2125 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"religion"))
2127 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"culture_group"))
2133 "Invalid rebel area " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2140 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"ideology"))
2142 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"culture"))
2146 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"pan_nationalist"))
2148 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"religion"))
2150 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"culture_group"))
2154 "Invalid rebel defection " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2162 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"colonial"))
2164 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"culture"))
2168 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"pan_nationalist"))
2171 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"religion"))
2173 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"culture_group"))
2178 "Invalid rebel independence " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2192 "Invalid ideology " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2263 err.
accumulated_warnings +=
"Empty ai_will_do for decision is implicit already (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2273 auto gfx = open_directory(root,
NATIVE(
"gfx"));
2274 auto pictures = open_directory(gfx,
NATIVE(
"pictures"));
2275 auto decisions = open_directory(pictures,
NATIVE(
"decisions"));
2290 auto new_id = dcon::gfx_object_id(uint16_t(gfxindex));
2326 "Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2334 if(value.is_general) {
2336 l_id.set_background(value.background_);
2337 l_id.set_personality(value.personality_);
2338 l_id.set_prestige(value.prestige);
2339 l_id.set_since(value.date_);
2340 l_id.set_name(value.name_);
2341 l_id.set_is_admiral(
false);
2356 "Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2363 if(!value.is_general) {
2365 l_id.set_background(value.background_);
2366 l_id.set_personality(value.personality_);
2367 l_id.set_prestige(value.prestige);
2368 l_id.set_since(value.date_);
2369 l_id.set_name(value.name_);
2370 l_id.set_is_admiral(
false);
2388 "Invalid unit type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2404 "Invalid unit type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2411 "Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2415 auto p = pl.get_pop();
2422 "No soldiers in province regiment comes from (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2427 if(v < -200 || v > 200) {
2428 err.
accumulated_warnings +=
"Relation value " + std::to_string(v) +
" is not between [-200,-200] (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2429 v = std::clamp(v, -200, 200);
2444 auto status_level = [&]() {
2469 err.
accumulated_warnings +=
"Influence level " + std::to_string(v) +
" defaults to 'neutral' (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2481 if(v < 0.f || v > 100.f) {
2482 err.
accumulated_warnings +=
"Influence value " + std::to_string(v) +
" is not between [0,100] (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2497 if(value.is_general) {
2499 l_id.set_background(value.background_);
2500 l_id.set_personality(value.personality_);
2501 l_id.set_prestige(value.prestige);
2502 l_id.set_since(value.date_);
2503 l_id.set_name(value.name_);
2504 l_id.set_is_admiral(
false);
2508 l_id.set_background(value.background_);
2509 l_id.set_personality(value.personality_);
2510 l_id.set_prestige(value.prestige);
2511 l_id.set_since(value.date_);
2512 l_id.set_name(value.name_);
2513 l_id.set_is_admiral(
true);
2529 if(tag.length() == 3) {
2531 first_ = context.
state.
world.national_identity_get_nation_from_identity_holder(it->second);
2534 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2538 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2543 if(tag.length() == 3) {
2545 second_ = context.
state.
world.national_identity_get_nation_from_identity_holder(it->second);
2548 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2552 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2565 if(tag.length() == 3) {
2567 first_ = context.
state.
world.national_identity_get_nation_from_identity_holder(it->second);
2570 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2574 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2579 if(tag.length() == 3) {
2581 second_ = context.
state.
world.national_identity_get_nation_from_identity_holder(it->second);
2584 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2588 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2606 std::to_string(line) +
")\n";
2618 "invalid ideology " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2626 if(tag.length() == 3) {
2634 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2638 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2669 err.
accumulated_errors +=
"Province id " + std::to_string(value) +
" is too large (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2684 std::string str_label(label);
2698 std::to_string(line) +
")\n";
2706 " line " + std::to_string(line) +
")\n";
2710 "invalid key " + str_label +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2724 "invalid culture " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2738 "invalid culture " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2752 "invalid culture " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2765 "invalid religion " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2779 std::to_string(line) +
")\n";
2807 "invalid modifier " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2821 "invalid modifier " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2842 for(
auto prov_pop : owned_prov.get_province().get_pop_location()) {
2854 for(
auto prov_pop : owned_prov.get_province().get_pop_location()) {
2855 bool non_accepted = [&]() {
2856 if(prov_pop.get_pop().get_culture() == fh.get_primary_culture())
2858 if(fh.get_accepted_cultures(prov_pop.get_pop().get_culture()))
2873 for(
auto prov_pop : owned_prov.get_province().get_pop_location()) {
2884 if(owned_prov.get_province().get_is_colonial()) {
2885 for(
auto prov_pop : owned_prov.get_province().get_pop_location()) {
2908 for(
uint32_t i = 0; i < party_count; ++i) {
2909 dcon::political_party_id pid{ dcon::political_party_id::value_base_t(first_party.id.index() + i) };
2911 if(name == value_key) {
2921 err.
accumulated_warnings +=
"invalid political party " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2923 auto name = p.get_name();
2924 if(name == value_key) {
2934 err.
accumulated_errors +=
"globally invalid political party " + std::string(value) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2941 err.
accumulated_errors +=
"no decision named " + std::string(value) +
" found (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2946 auto name = d.get_name();
2947 if(name == value_key) {
2953 err.
accumulated_errors +=
"no decision named " + std::string(value) +
" found (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
2975 parsers::parse_country_file(gen, err, context);
2984 "Invalid government type " + std::string(name) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3002 err.
accumulated_errors +=
"Invalid issue group " + std::string(name) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3009 if(!value.name && !value.effect) {
3022 auto gfx = open_directory(root,
NATIVE(
"gfx"));
3023 auto pictures = open_directory(gfx,
NATIVE(
"pictures"));
3024 auto events = open_directory(pictures,
NATIVE(
"events"));
3028 return std::string(name) +
".tga";
3030 return std::string(name) +
".tga";
3032 return std::string(name) +
".tga";
3034 return std::string(
"GFX_event_no_image.tga");
3045 auto new_id = dcon::gfx_object_id(uint16_t(gfxindex));
3067 if(tag.length() == 3) {
3073 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3077 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3086 "history wargoal given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3092 auto gfx = open_directory(root,
NATIVE(
"gfx"));
3093 auto infa = open_directory(gfx,
NATIVE(
"interface"));
3094 auto leaders = open_directory(infa,
NATIVE(
"leaders"));
3097 for(
auto i : all_images) {
3101 bool admiral =
false;
3102 std::string group_name;
3104 auto apos = uname.find(
"_admiral_", 0);
3105 if(apos != std::string::npos) {
3107 group_name = uname.substr(0, apos);
3109 auto gpos = uname.find(
"_general_", 0);
3110 if(gpos != std::string::npos) {
3111 group_name = uname.substr(0, gpos);
3117 dcon::leader_images_id category;
3119 category = it->second;
3121 category = outer_context.
state.
world.create_leader_images();
3130 auto new_id = dcon::gfx_object_id(uint16_t(gfxindex));
3146 outer_context.
state.
world.leader_images_get_admirals(category).push_back(new_id);
3148 outer_context.
state.
world.leader_images_get_generals(category).push_back(new_id);
3155 if(tag.length() == 3) {
3161 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3165 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3169 if(tag.length() == 3) {
3175 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3179 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3188 std::to_string(line) +
")\n";
3196 if(tag.length() == 3) {
3204 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3208 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3214 if(tag.length() == 3) {
3222 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3226 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3232 if(tag.length() == 3) {
3239 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3243 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3248 if(tag.length() == 3) {
3255 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3259 "invalid tag " + std::string(tag) +
" encountered (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
3266 parse_war_block(gen, err, context);
3281 new_war.set_primary_attacker(context.
attackers[0]);
3282 new_war.set_primary_defender(context.
defenders[0]);
3283 new_war.set_is_great(context.
great_war);
3284 new_war.set_original_target(context.
defenders[0]);
3299 new_wg.set_added_by(wg.actor_);
3303 new_wg.set_target_nation(wg.receiver_);
3304 new_wg.set_type(wg.casus_belli_);
3305 new_wg.set_secondary_nation(wg.secondary_);
3306 new_wg.set_associated_tag(context.
outer_context.
state.
world.nation_get_identity_from_identity_holder(wg.secondary_));
3307 new_wg.set_associated_state(context.
outer_context.
state.
world.province_get_state_from_abstract_state_membership(wg.state_province_id_));
3314 name_ = std::string(value);
3318 path_ = std::string(value);
3349 add_root(fs, mod_path);
3354 body_features.push_back(hb_tag_from_string(value.data(),
int(value.length())));
3357 header_features.push_back(hb_tag_from_string(value.data(),
int(value.length())));
3360 map_features.push_back(hb_tag_from_string(value.data(),
int(value.length())));
3367 locale_parser new_locale = parsers::parse_locale_parser(gen, err, state);
3368 hb_language_t lang =
nullptr;
3370 auto new_locale_id = state.world.create_locale();
3371 auto new_locale_obj = fatten(state.world, new_locale_id);
3372 new_locale_obj.set_hb_script(hb_script_from_string(new_locale.
script.c_str(),
int(new_locale.
script.length())));
3373 new_locale_obj.set_native_rtl(new_locale.
rtl);
3377 auto f = new_locale_obj.get_body_font();
3382 auto f = new_locale_obj.get_header_font();
3387 auto f = new_locale_obj.get_map_font();
3392 auto f = new_locale_obj.get_body_font_features();
3397 auto f = new_locale_obj.get_header_font_features();
3402 auto f = new_locale_obj.get_map_font_features();
3407 auto f = new_locale_obj.get_locale_name();
3408 f.resize(
uint32_t(locale_name.length()));
3409 f.load_range((
uint8_t const*)locale_name.data(), (
uint8_t const*)locale_name.data() + locale_name.length());
3412 auto f = new_locale_obj.get_fallback();
3417 auto f = new_locale_obj.get_display_name();
std::string accumulated_errors
std::string accumulated_warnings
year_month_day to_ymd(absolute_time_point base) const noexcept
tag_type emplace_back(T &&... ts)
tagged_vector< gfx_object, dcon::gfx_object_id > gfx
tagged_vector< dcon::text_key, dcon::texture_id > textures
constexpr uint64_t to_bits(dcon::ideology_id id)
std::string_view province_building_type_get_name(economy::province_building_type v)
constexpr dcon::commodity_id money(0)
constexpr uint32_t pop_open_factory_invest
constexpr uint32_t pop_expand_factory_invest
constexpr uint32_t open_factory_invest
constexpr uint32_t pop_open_factory
constexpr uint32_t build_railway
constexpr uint32_t pop_build_factory_invest
constexpr uint32_t open_factory
constexpr uint32_t same_as_ruling_party
constexpr uint32_t state_vote
constexpr uint32_t can_invest_in_pop_projects
constexpr uint32_t build_factory
constexpr uint32_t build_railway_invest
constexpr uint32_t can_subsidise
constexpr uint32_t pop_expand_factory
constexpr uint32_t delete_factory_if_no_input
constexpr uint32_t culture_voting
constexpr uint32_t destroy_factory
constexpr uint32_t slavery_allowed
constexpr uint32_t build_bank
constexpr uint32_t rich_only
constexpr uint32_t build_university
constexpr uint32_t all_voting
constexpr uint32_t allow_foreign_investment
constexpr uint32_t pop_build_factory
constexpr uint32_t largest_share
constexpr uint32_t primary_culture_voting
constexpr uint32_t build_factory_invest
constexpr uint32_t factory_priority
constexpr uint32_t sainte_laque
constexpr uint32_t expand_factory_invest
constexpr uint32_t population_vote
constexpr uint32_t expand_factory
constexpr uint32_t po_transfer_provinces
constexpr uint32_t po_destroy_naval_bases
constexpr uint32_t po_reparations
constexpr uint32_t po_add_to_sphere
constexpr uint32_t po_demand_state
constexpr uint32_t po_install_communist_gov_type
constexpr uint32_t all_allowed_states
constexpr uint32_t po_annex
constexpr uint32_t po_status_quo
constexpr uint32_t is_triggered_only
constexpr uint32_t po_disarmament
constexpr uint32_t po_remove_prestige
constexpr uint32_t is_not_constructing_cb
constexpr uint32_t great_war_obligatory
constexpr uint32_t not_in_crisis
constexpr uint32_t po_remove_cores
constexpr uint32_t po_gunboat
constexpr uint32_t is_civil_war
constexpr uint32_t po_destroy_forts
constexpr uint32_t po_release_puppet
constexpr uint32_t po_clear_union_sphere
constexpr uint32_t po_make_puppet
constexpr uint32_t always
constexpr uint32_t po_colony
constexpr uint32_t po_uninstall_communist_gov_type
constexpr uint8_t level_friendly
constexpr uint8_t level_opposed
constexpr uint8_t level_neutral
constexpr uint8_t level_hostile
constexpr uint8_t level_in_sphere
constexpr uint8_t level_cordial
uint32_t tag_to_int(char first, char second, char third)
void enter_war_dated_block(std::string_view label, token_generator &gen, error_handler &err, war_history_context &context)
bool is_fixed_token_ci(char const *start, char const *end, char const (&t)[N])
void make_leader_images(scenario_building_context &outer_context)
sys::year_month_day parse_date(std::string_view content, int32_t line, error_handler &err)
int32_t parse_int(std::string_view content, int32_t line, error_handler &err)
void add_locale(sys::state &state, std::string_view locale_name, char const *data_start, char const *data_end)
bool parse_bool(std::string_view content, int32_t, error_handler &)
bool has_fixed_prefix_ci(char const *start, char const *end, char const (&t)[N])
void set_militancy(sys::state &state, dcon::pop_id p, float v)
void set_consciousness(sys::state &state, dcon::pop_id p, float v)
void set_literacy(sys::state &state, T p, ve::fp_vector v)
dcon::rebel_faction_id get_faction_by_type(sys::state &state, dcon::nation_id n, dcon::rebel_type_id r)
std::vector< unopened_file > list_files(directory const &dir, native_char const *extension)
directory open_directory(directory const &dir, native_string_view directory_name)
void add_ignore_path(file_system &fs, native_string_view replaced_path)
native_string utf8_to_native(std::string_view data_in)
directory get_root(file_system const &fs)
std::vector< native_string > list_roots(file_system const &fs)
std::string remove_double_backslashes(std::string_view data_in)
native_string correct_slashes(native_string_view path)
std::optional< file > open_file(directory const &dir, native_string_view file_name)
std::string native_to_utf8(native_string_view data_in)
file_contents view_contents(file const &f)
native_string get_file_name(unopened_file const &f)
constexpr int32_t max_event_options
dcon::text_key find_or_add_key(sys::state &state, std::string_view key, bool as_unicode)
std::string native_string
#define NATIVE_DIR_SEPARATOR
dcon::value_modifier_key conversion_chance
dcon::pop_type_id farmers
dcon::value_modifier_key migration_chance
dcon::value_modifier_key colonialmigration_chance
dcon::value_modifier_key demotion_chance
int32_t officer_leadership_points
dcon::pop_type_id bureaucrat
dcon::pop_type_id artisans
std::vector< folder_info > tech_folders
std::vector< dcon::issue_id > party_issues
float bureaucrat_tax_efficiency
dcon::pop_type_id soldiers
dcon::value_modifier_key assimilation_chance
dcon::pop_type_id officers
dcon::issue_option_id jingoism
dcon::pop_type_id capitalists
dcon::ideology_id conservative
dcon::value_modifier_key promotion_chance
dcon::pop_type_id laborers
dcon::value_modifier_key emigration_chance
float commodity_amounts[set_size]
dcon::commodity_id commodity_type[set_size]
static constexpr uint32_t set_size
dcon::cb_type_id standard_civil_war
dcon::cb_type_id crisis_liberate
dcon::cb_type_id crisis_colony
dcon::cb_type_id standard_great_war
dcon::national_event_id id
dcon::national_event_id id
dcon::provincial_event_id id
std::vector< fixed_event > on_surrender
std::vector< fixed_event > on_colony_to_state
std::vector< fixed_event > on_lost_great_nation
std::vector< fixed_event > on_yearly_pulse
std::vector< fixed_event > on_civilize
std::vector< fixed_event > on_debtor_default_small
std::vector< fixed_event > on_state_conquest
std::vector< fixed_event > on_election_started
std::vector< fixed_event > on_election_finished
std::vector< fixed_province_event > on_battle_won
std::vector< fixed_event > on_colony_to_state_free_slaves
std::vector< fixed_event > on_quarterly_pulse
void set_global_flag_variable(dcon::global_flag_id id, bool state)
dcon::national_focus_id flashpoint_focus
std::vector< fixed_event > on_debtor_default
std::vector< fixed_event > on_crisis_declare_interest
std::vector< fixed_event > on_my_factories_nationalized
std::vector< fixed_election_event > on_election_tick
std::vector< fixed_event > on_new_great_nation
std::vector< fixed_event > on_debtor_default_second
std::vector< fixed_province_event > on_battle_lost
void second(association_type, std::string_view tag, error_handler &err, int32_t line, scenario_building_context &context)
void end_date(association_type, sys::year_month_day ymd, error_handler &err, int32_t line, scenario_building_context &context)
void first(association_type, std::string_view tag, error_handler &err, int32_t line, scenario_building_context &context)
void start_date(association_type, sys::year_month_day ymd, error_handler &err, int32_t line, scenario_building_context &context)
ankerl::unordered_dense::map< std::string, dcon::gfx_object_id > map_of_names
ankerl::unordered_dense::map< std::string, dcon::texture_id > map_of_texture_names
void months(association_type, int32_t value, error_handler &err, int32_t line, individual_cb_context &context)
void po_status_quo(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void good_relation_prestige_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void break_truce_infamy_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void po_demand_state(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void allowed_substate_regions(dcon::trigger_key value, error_handler &err, int32_t line, individual_cb_context &context)
void allowed_states(dcon::trigger_key value, error_handler &err, int32_t line, individual_cb_context &context)
void po_make_puppet(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void break_truce_prestige_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void truce_months(association_type, int32_t value, error_handler &err, int32_t line, individual_cb_context &context)
void crisis(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void po_destroy_forts(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void po_gunboat(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void po_install_communist_gov_type(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void po_remove_prestige(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void po_annex(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void on_add(dcon::effect_key value, error_handler &err, int32_t line, individual_cb_context &context)
void po_destroy_naval_bases(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void is_civil_war(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void construction_speed(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void good_relation_infamy_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void allowed_states_in_crisis(dcon::trigger_key value, error_handler &err, int32_t line, individual_cb_context &context)
void badboy_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void constructing_cb(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void po_transfer_provinces(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void all_allowed_states(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void sprite_index(association_type, int32_t value, error_handler &err, int32_t line, individual_cb_context &context)
void po_clear_union_sphere(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void po_disarmament(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void good_relation_militancy_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void po_remove_cores(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void penalty_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void tws_battle_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void po_reparations(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void always(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void allowed_countries(dcon::trigger_key value, error_handler &err, int32_t line, individual_cb_context &context)
void on_po_accepted(dcon::effect_key value, error_handler &err, int32_t line, individual_cb_context &context)
void finish(individual_cb_context &context)
void po_release_puppet(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void break_truce_militancy_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void peace_cost_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void prestige_factor(association_type, float value, error_handler &err, int32_t line, individual_cb_context &context)
void po_colony(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void is_triggered_only(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void war_name(association_type, std::string_view value, error_handler &err, int32_t line, individual_cb_context &context)
void po_add_to_sphere(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void po_uninstall_communist_gov_type(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void great_war_obligatory(association_type, bool value, error_handler &err, int32_t line, individual_cb_context &context)
void can_use(dcon::trigger_key value, error_handler &err, int32_t line, individual_cb_context &context)
void free_value(std::string_view text, error_handler &err, int32_t line, scenario_building_context &context)
scenario_building_context & outer_context
void free_value(int32_t value, error_handler &err, int32_t line, climate_building_context &context)
tagged_vector< float, dcon::commodity_id > data
void finish(scenario_building_context &context)
void any_value(std::string_view name, association_type, float value, error_handler &err, int32_t line, scenario_building_context &context)
scenario_building_context & outer_context
void free_value(int32_t value, error_handler &err, int32_t line, continent_building_context &context)
void free_value(int32_t value, error_handler &err, int32_t line, continent_building_context &context)
dcon::national_identity_id id
scenario_building_context & outer_context
void any_group(std::string_view name, color_from_3i, error_handler &err, int32_t line, country_file_context &context)
void template_(association_type, std::string_view value, error_handler &err, int32_t line, country_file_context &context)
void color(color_from_3i cvalue, error_handler &err, int32_t line, country_file_context &context)
dcon::nation_id holder_id
dcon::national_identity_id nat_ident
scenario_building_context & outer_context
std::vector< std::pair< dcon::nation_id, dcon::decision_id > > & pending_decisions
void is_releasable_vassal(association_type, bool value, error_handler &err, int32_t line, country_history_context &context)
void ruling_party(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void prestige(association_type, float value, error_handler &err, int32_t line, country_history_context &context)
void govt_flag(govt_flag_block const &value, error_handler &err, int32_t line, country_history_context &context)
void remove_culture(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void decision(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void set_country_flag(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void non_state_culture_literacy(association_type, float value, error_handler &err, int32_t line, country_history_context &context)
void religion(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void literacy(association_type, float value, error_handler &err, int32_t line, country_history_context &context)
void any_value(std::string_view label, association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void civilized(association_type, bool value, error_handler &err, int32_t line, country_history_context &context)
void consciousness(association_type, float value, error_handler &err, int32_t line, country_history_context &context)
void set_global_flag(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void nationalvalue(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void plurality(association_type, float value, error_handler &err, int32_t line, country_history_context &context)
void culture(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void capital(association_type, int32_t value, error_handler &err, int32_t line, country_history_context &context)
void primary_culture(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void schools(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void government(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
void nonstate_consciousness(association_type, float value, error_handler &err, int32_t line, country_history_context &context)
void colonial_points(association_type, int32_t value, error_handler &err, int32_t line, country_history_context &context)
scenario_building_context & outer_context
dcon::culture_group_id id
scenario_building_context & outer_context
void leader(association_type, std::string_view name, error_handler &err, int32_t line, culture_group_context &context)
void union_tag(association_type, uint32_t v, error_handler &err, int32_t line, culture_group_context &context)
void is_overseas(association_type, bool v, error_handler &err, int32_t line, culture_group_context &context)
void color(color_from_3i v, error_handler &err, int32_t line, culture_context &context)
void radicalism(association_type, int32_t v, error_handler &err, int32_t line, culture_context &context)
scenario_building_context & outer_context
void effect(dcon::effect_key value, error_handler &err, int32_t line, decision_context &context)
void ai_will_do(dcon::value_modifier_key value, error_handler &err, int32_t line, decision_context &context)
void potential(dcon::trigger_key value, error_handler &err, int32_t line, decision_context &context)
void finish(decision_context &)
void picture(association_type, std::string_view value, error_handler &err, int32_t line, decision_context &context)
void allow(dcon::trigger_key value, error_handler &err, int32_t line, decision_context &context)
scenario_building_context & outer_context
void any_value(std::string_view tag, association_type, float v, error_handler &err, int32_t line, country_history_context &context)
void option(sys::event_option const &value, error_handler &err, int32_t line, event_building_context &context)
void picture(association_type, std::string_view value, error_handler &err, int32_t line, event_building_context &context)
std::array< sys::event_option, sys::max_event_options > options
int32_t last_option_added
dcon::issue_id issue_group_
void title(association_type, std::string_view value, error_handler &err, int32_t line, event_building_context &context)
void desc(association_type, std::string_view value, error_handler &err, int32_t line, event_building_context &context)
dcon::gfx_object_id picture_
void issue_group(association_type, std::string_view value, error_handler &err, int32_t line, event_building_context &context)
scenario_building_context & outer_context
void overseas_penalty(association_type, bool b, error_handler &err, int32_t line, good_context &context)
void available_from_start(association_type, bool b, error_handler &err, int32_t line, good_context &context)
void cost(association_type, float v, error_handler &err, int32_t line, good_context &context)
void finish(good_context &context)
void color(color_from_3i v, error_handler &err, int32_t line, good_context &context)
void money(association_type, bool v, error_handler &err, int32_t line, good_context &context)
dcon::government_type_id id
scenario_building_context & outer_context
void duration(association_type, int32_t value, error_handler &err, int32_t line, government_type_context &context)
void any_value(std::string_view text, association_type, bool value, error_handler &err, int32_t line, government_type_context &context)
void appoint_ruling_party(association_type, bool value, error_handler &err, int32_t line, government_type_context &context)
void election(association_type, bool value, error_handler &err, int32_t line, government_type_context &context)
void flagtype(association_type, std::string_view value, error_handler &err, int32_t line, government_type_context &context)
void flag(association_type, std::string_view value, error_handler &err, int32_t line, country_history_context &context)
::culture::flag_type flag_
void country(association_type, std::string_view tag, error_handler &err, int32_t line, war_history_context &context)
void casus_belli(association_type, std::string_view value, error_handler &err, int32_t line, war_history_context &context)
void actor(association_type, std::string_view tag, error_handler &err, int32_t line, war_history_context &context)
void receiver(association_type, std::string_view tag, error_handler &err, int32_t line, war_history_context &context)
dcon::nation_id secondary_
dcon::province_id state_province_id_
void state_province_id(association_type t, int32_t value, error_handler &err, int32_t line, war_history_context &context)
dcon::nation_id receiver_
dcon::cb_type_id casus_belli_
scenario_building_context & outer_context
scenario_building_context & outer_context
void remove_social_reform(dcon::value_modifier_key value, error_handler &err, int32_t line, individual_ideology_context &context)
void color(color_from_3i cvalue, error_handler &err, int32_t line, individual_ideology_context &context)
void can_reduce_militancy(association_type, bool value, error_handler &err, int32_t line, individual_ideology_context &context)
void date(association_type, sys::year_month_day ymd, error_handler &err, int32_t line, individual_ideology_context &context)
void add_social_reform(dcon::value_modifier_key value, error_handler &err, int32_t line, individual_ideology_context &context)
void uncivilized(association_type, bool value, error_handler &err, int32_t line, individual_ideology_context &context)
void remove_political_reform(dcon::value_modifier_key value, error_handler &err, int32_t line, individual_ideology_context &context)
void add_military_reform(dcon::value_modifier_key value, error_handler &err, int32_t line, individual_ideology_context &context)
void civilized(association_type, bool value, error_handler &err, int32_t line, individual_ideology_context &context)
void finish(individual_ideology_context &)
void add_economic_reform(dcon::value_modifier_key value, error_handler &err, int32_t line, individual_ideology_context &context)
void add_political_reform(dcon::value_modifier_key value, error_handler &err, int32_t line, individual_ideology_context &context)
scenario_building_context & outer_context
dcon::reform_option_id id
scenario_building_context & outer_context
void plurality(association_type, float value, error_handler &err, int32_t line, invention_context &context)
void gas_attack(association_type, bool value, error_handler &err, int32_t line, invention_context &context)
void shared_prestige(association_type, float value, error_handler &err, int32_t line, invention_context &context)
void activate_unit(association_type, std::string_view value, error_handler &err, int32_t line, invention_context &context)
void activate_building(association_type, std::string_view value, error_handler &err, int32_t line, invention_context &context)
void gas_defence(association_type, bool value, error_handler &err, int32_t line, invention_context &context)
void any_group(std::string_view label, unit_modifier_body const &value, error_handler &err, int32_t line, invention_context &context)
void rebel_org_gain(inv_rebel_org_gain const &value, error_handler &err, int32_t line, invention_context &context)
void enable_crime(association_type, std::string_view value, error_handler &err, int32_t line, invention_context &context)
void any_value(std::string_view name, association_type, int32_t value, error_handler &err, int32_t line, invention_context &context)
void colonial_points(association_type, int32_t value, error_handler &err, int32_t line, invention_context &context)
void any_value(std::string_view label, association_type, float value, error_handler &err, int32_t line, invention_context &context)
void any_value(std::string_view label, association_type, float value, error_handler &err, int32_t line, invention_context &context)
dcon::rebel_type_id faction_
void faction(association_type, std::string_view v, error_handler &err, int32_t line, invention_context &context)
void any_value(std::string_view label, association_type, float value, error_handler &err, int32_t line, invention_context &context)
void effect(inv_effect const &value, error_handler &err, int32_t line, invention_context &context)
void limit(dcon::trigger_key value, error_handler &err, int32_t line, invention_context &context)
void shared_prestige(association_type, float value, error_handler &err, int32_t line, invention_context &context)
void chance(dcon::value_modifier_key value, error_handler &err, int32_t line, invention_context &context)
scenario_building_context & outer_context
scenario_building_context & outer_context
void technology_cost(association_type, int32_t value, error_handler &err, int32_t line, individual_option_context &context)
void administrative_multiplier(association_type, float value, error_handler &err, int32_t line, individual_option_context &context)
void on_execute(on_execute_body const &value, error_handler &err, int32_t line, individual_option_context &context)
void war_exhaustion_effect(association_type, float value, error_handler &err, int32_t line, individual_option_context &context)
void is_jingoism(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void administrative(association_type, bool value, error_handler &err, int32_t line, issue_context &context)
void next_step_only(association_type, bool value, error_handler &err, int32_t line, issue_context &context)
std::vector< uint32_t > map_features
std::vector< uint32_t > header_features
std::vector< uint32_t > body_features
void body_feature(association_type, std::string_view value, error_handler &err, int32_t line, sys::state &)
void header_feature(association_type, std::string_view value, error_handler &err, int32_t line, sys::state &)
void map_feature(association_type, std::string_view value, error_handler &err, int32_t line, sys::state &)
bool prevent_map_letterspacing
void promotion_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, scenario_building_context &context)
void conversion_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, scenario_building_context &context)
void emigration_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, scenario_building_context &context)
void assimilation_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, scenario_building_context &context)
void demotion_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, scenario_building_context &context)
void migration_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, scenario_building_context &context)
void colonialmigration_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, scenario_building_context &context)
void path(association_type, std::string_view value, error_handler &err, int32_t line, mod_file_context &context)
void name(association_type, std::string_view value, error_handler &err, int32_t line, mod_file_context &context)
void replace_path(association_type, std::string_view value, error_handler &err, int32_t line, mod_file_context &context)
void add_to_file_system(simple_fs::file_system &fs)
void user_dir(association_type, std::string_view value, error_handler &err, int32_t line, mod_file_context &context)
std::vector< std::string > replace_paths
sys::provincial_modifier_definition constructed_definition_p
sys::national_modifier_definition constructed_definition_n
scenario_building_context & outer_context
void free_value(std::string_view text, error_handler &err, int32_t line, names_context &context)
dcon::national_focus_id id
scenario_building_context & outer_context
void has_flashpoint(association_type, bool value, error_handler &err, int32_t line, national_focus_context &context)
void flashpoint_tension(association_type, float value, error_handler &err, int32_t line, national_focus_context &context)
void railroads(association_type, float value, error_handler &err, int32_t line, national_focus_context &context)
void ideology(association_type, std::string_view value, error_handler &err, int32_t line, national_focus_context &context)
void limit(dcon::trigger_key value, error_handler &err, int32_t line, national_focus_context &context)
void any_value(std::string_view label, association_type, float value, error_handler &err, int32_t line, national_focus_context &context)
void loyalty_value(association_type, float value, error_handler &err, int32_t line, national_focus_context &context)
void location(association_type, int32_t value, error_handler &err, int32_t line, oob_file_army_context &context)
void name(association_type, std::string_view value, error_handler &err, int32_t line, oob_file_army_context &context)
void leader(oob_leader const &value, error_handler &err, int32_t line, oob_file_army_context &context)
scenario_building_context & outer_context
dcon::nation_id nation_for
scenario_building_context & outer_context
dcon::nation_id nation_for
scenario_building_context & outer_context
dcon::nation_id nation_for
scenario_building_context & outer_context
dcon::nation_id nation_with
scenario_building_context & outer_context
dcon::nation_id nation_for
scenario_building_context & outer_context
void leader(oob_leader const &value, error_handler &err, int32_t line, oob_file_context &context)
void date(association_type, sys::year_month_day value, error_handler &err, int32_t line, oob_file_context &context)
void name(association_type, std::string_view value, error_handler &err, int32_t line, oob_file_context &context)
void leader(oob_leader const &value, error_handler &err, int32_t line, oob_file_navy_context &context)
void location(association_type, int32_t value, error_handler &err, int32_t line, oob_file_navy_context &context)
void name(association_type, std::string_view value, error_handler &err, int32_t line, oob_file_navy_context &context)
void type(association_type, std::string_view value, error_handler &err, int32_t line, oob_file_regiment_context &context)
void name(association_type, std::string_view value, error_handler &err, int32_t line, oob_file_regiment_context &context)
void home(association_type, int32_t value, error_handler &err, int32_t line, oob_file_regiment_context &context)
void value(association_type, int32_t v, error_handler &err, int32_t line, oob_file_relation_context &context)
void level(association_type, int32_t v, error_handler &err, int32_t line, oob_file_relation_context &context)
void truce_until(association_type, sys::year_month_day v, error_handler &err, int32_t line, oob_file_relation_context &context)
void influence_value(association_type, float v, error_handler &err, int32_t line, oob_file_relation_context &context)
void type(association_type, std::string_view value, error_handler &err, int32_t line, oob_file_ship_context &context)
void name(association_type, std::string_view value, error_handler &err, int32_t line, oob_file_ship_context &context)
void open_factory(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void primary_culture_voting(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void pop_open_factory(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void build_railway_invest(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void destroy_factory(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void delete_factory_if_no_input(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void build_university(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void open_factory_invest(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void rich_only(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void largest_share(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void can_subsidise(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void population_vote(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void factory_priority(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void pop_expand_factory(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void pop_build_factory_invest(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void expand_factory(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void can_invest_in_pop_projects(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void slavery_allowed(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void build_factory_invest(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void dhont(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void expand_factory_invest(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void build_railway(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void all_voting(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void same_as_ruling_party(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void pop_open_factory_invest(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void culture_voting(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void pop_build_factory(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void sainte_laque(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void allow_foreign_investment(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void pop_expand_factory_invest(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void build_factory(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void build_bank(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
void state_vote(association_type, bool value, error_handler &err, int32_t line, individual_option_context &context)
dcon::political_party_id id
scenario_building_context & outer_context
void name(association_type, std::string_view text, error_handler &err, int32_t line, party_context &context)
void any_value(std::string_view issue, association_type, std::string_view option, error_handler &err, int32_t line, party_context &context)
void end_date(association_type, sys::year_month_day ymd, error_handler &err, int32_t line, party_context &context)
void ideology(association_type, std::string_view text, error_handler &err, int32_t line, party_context &context)
void finish(party_context &context)
void start_date(association_type, sys::year_month_day ymd, error_handler &err, int32_t line, party_context &context)
void rebel_type(association_type, std::string_view value, error_handler &err, int32_t line, pop_history_province_context &context)
void religion(association_type, std::string_view value, error_handler &err, int32_t line, pop_history_province_context &context)
dcon::rebel_type_id reb_id
void culture(association_type, std::string_view value, error_handler &err, int32_t line, pop_history_province_context &context)
scenario_building_context & outer_context
void any_group(std::string_view type, pop_history_definition const &def, error_handler &err, int32_t line, pop_history_province_context &context)
scenario_building_context & outer_context
void workplace_output(association_type, float value, error_handler &err, int32_t line, poptype_context &context)
void can_build(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void strata(association_type, std::string_view value, error_handler &err, int32_t line, poptype_context &context)
void can_reduce_consciousness(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void unemployment(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void research_points(association_type, float value, error_handler &err, int32_t line, poptype_context &context)
void allowed_to_vote(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void leadership(association_type, int32_t value, error_handler &err, int32_t line, poptype_context &context)
void state_capital_only(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void luxury_needs(commodity_array const &value, error_handler &err, int32_t line, poptype_context &context)
void tax_eff(association_type, float value, error_handler &err, int32_t line, poptype_context &context)
void sprite(association_type, int32_t value, error_handler &err, int32_t line, poptype_context &context)
void can_be_recruited(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void workplace_input(association_type, float value, error_handler &err, int32_t line, poptype_context &context)
void is_artisan(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void life_needs(commodity_array const &value, error_handler &err, int32_t line, poptype_context &context)
void equivalent(association_type, std::string_view value, error_handler &err, int32_t line, poptype_context &context)
void research_optimum(association_type, float value, error_handler &err, int32_t line, poptype_context &context)
void everyday_needs_income(income const &value, error_handler &err, int32_t line, poptype_context &context)
void administrative_efficiency(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void everyday_needs(commodity_array const &value, error_handler &err, int32_t line, poptype_context &context)
void is_slave(association_type, bool value, error_handler &err, int32_t line, poptype_context &context)
void luxury_needs_income(income const &value, error_handler &err, int32_t line, poptype_context &context)
void life_needs_income(income const &value, error_handler &err, int32_t line, poptype_context &context)
void color(color_from_3i cvalue, error_handler &err, int32_t line, poptype_context &context)
scenario_building_context & outer_context
void poptype(association_type, std::string_view v, error_handler &err, int32_t line, production_context &context)
void defection(association_type, std::string_view value, error_handler &err, int32_t line, rebel_context &context)
void demands_enforced_effect(dcon::effect_key value, error_handler &err, int32_t line, rebel_context &context)
void allow_all_ideologies(association_type, bool value, error_handler &err, int32_t line, rebel_context &context)
void defect_delay(association_type, int32_t value, error_handler &err, int32_t line, rebel_context &context)
void occupation_mult(association_type, float value, error_handler &err, int32_t line, rebel_context &context)
void allow_all_culture_groups(association_type, bool value, error_handler &err, int32_t line, rebel_context &context)
void demands_enforced_trigger(dcon::trigger_key value, error_handler &err, int32_t line, rebel_context &context)
void independence(association_type, std::string_view value, error_handler &err, int32_t line, rebel_context &context)
void area(association_type, std::string_view value, error_handler &err, int32_t line, rebel_context &context)
void break_alliance_on_win(association_type, bool value, error_handler &err, int32_t line, rebel_context &context)
void siege_won_trigger(dcon::trigger_key value, error_handler &err, int32_t line, rebel_context &context)
void icon(association_type, int32_t value, error_handler &err, int32_t line, rebel_context &context)
void spawn_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, rebel_context &context)
void allow_all_cultures(association_type, bool value, error_handler &err, int32_t line, rebel_context &context)
void siege_won_effect(dcon::effect_key value, error_handler &err, int32_t line, rebel_context &context)
void will_rise(dcon::value_modifier_key value, error_handler &err, int32_t line, rebel_context &context)
void movement_evaluation(dcon::value_modifier_key value, error_handler &err, int32_t line, rebel_context &context)
void ideology(association_type, std::string_view value, error_handler &err, int32_t line, rebel_context &context)
scenario_building_context & outer_context
void any_value(std::string_view from_gov, association_type, std::string_view to_gov, error_handler &err, int32_t line, rebel_context &context)
scenario_building_context & outer_context
scenario_building_context & outer_context
void pagan(association_type, bool v, error_handler &err, int32_t line, religion_context &context)
void color(color_from_3f v, error_handler &err, int32_t line, religion_context &context)
void icon(association_type, int32_t v, error_handler &err, int32_t line, religion_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
void any_value(std::string_view chance, association_type, int32_t event, error_handler &err, int32_t line, scenario_building_context &context)
ankerl::unordered_dense::map< std::string, dcon::unit_type_id > map_of_unit_types
ankerl::unordered_dense::map< std::string, dcon::national_flag_id > map_of_national_flags
ankerl::unordered_dense::map< std::string, dcon::modifier_id > map_of_modifiers
ankerl::unordered_dense::map< std::string, dcon::global_flag_id > map_of_global_flags
ankerl::unordered_dense::map< std::string, dcon::religion_id > map_of_religion_names
ankerl::unordered_dense::map< std::string, pending_invention_content > map_of_inventions
ankerl::unordered_dense::map< std::string, pending_roption_content > map_of_roptions
ankerl::unordered_dense::map< std::string, pending_tech_content > map_of_technologies
ankerl::unordered_dense::map< std::string, dcon::pop_type_id > map_of_poptypes
ankerl::unordered_dense::map< int32_t, pending_nat_event > map_of_national_events
ankerl::unordered_dense::map< std::string, pending_ideology_content > map_of_ideologies
ankerl::unordered_dense::map< std::string, dcon::reform_id > map_of_reforms
std::vector< dcon::province_id > original_id_to_prov_id_map
tagged_vector< province_data, dcon::province_id > prov_id_to_original_id_map
ankerl::unordered_dense::map< std::string, dcon::issue_id > map_of_iissues
ankerl::unordered_dense::map< std::string, pending_crime_content > map_of_crimes
ankerl::unordered_dense::map< std::string, pending_option_content > map_of_ioptions
ankerl::unordered_dense::map< std::string, pending_cb_content > map_of_cb_types
ankerl::unordered_dense::map< std::string, pending_rebel_type_content > map_of_rebeltypes
ankerl::unordered_dense::map< int32_t, pending_prov_event > map_of_provincial_events
scenario_building_context(sys::state &state)
int32_t number_of_commodities_seen
ankerl::unordered_dense::map< std::string, int32_t > map_of_tech_folders
ankerl::unordered_dense::map< std::string, dcon::leader_images_id > map_of_leader_graphics
ankerl::unordered_dense::map< uint32_t, dcon::national_identity_id > map_of_ident_names
building_gfx_context gfx_context
ankerl::unordered_dense::map< std::string, dcon::culture_id > map_of_culture_names
ankerl::unordered_dense::map< std::string, dcon::commodity_id > map_of_commodity_names
ankerl::unordered_dense::map< std::string, dcon::government_type_id > map_of_governments
ankerl::unordered_dense::map< std::string, dcon::factory_type_id > map_of_factory_names
void free_value(int32_t value, error_handler &err, int32_t line, scenario_building_context &context)
scenario_building_context & outer_context
std::vector< dcon::province_id > provinces
void free_value(int32_t value, error_handler &err, int32_t line, state_def_building_context &context)
scenario_building_context & outer_context
void any_value(std::string_view label, association_type, float value, error_handler &err, int32_t line, tech_context &context)
void free_value(std::string_view name, error_handler &err, int32_t line, tech_group_context &context)
::culture::tech_category category
scenario_building_context & outer_context
void any_value(std::string_view label, association_type, float value, error_handler &err, int32_t line, tech_context &context)
void any_value(std::string_view label, association_type, float value, error_handler &err, int32_t line, tech_context &context)
void activate_unit(association_type, std::string_view value, error_handler &err, int32_t line, tech_context &context)
void area(association_type, std::string_view value, error_handler &err, int32_t line, tech_context &context)
void ai_chance(dcon::value_modifier_key value, error_handler &err, int32_t line, tech_context &context)
void any_value(std::string_view name, association_type, int32_t value, error_handler &err, int32_t line, tech_context &context)
void year(association_type, int32_t value, error_handler &err, int32_t line, tech_context &context)
void plurality(association_type, float value, error_handler &err, int32_t line, tech_context &context)
void activate_building(association_type, std::string_view value, error_handler &err, int32_t line, tech_context &context)
void any_group(std::string_view label, unit_modifier_body const &value, error_handler &err, int32_t line, tech_context &context)
void colonial_points(association_type, int32_t value, error_handler &err, int32_t line, tech_context &context)
void cost(association_type, int32_t value, error_handler &err, int32_t line, tech_context &context)
scenario_building_context & outer_context
void experience(association_type, float value, error_handler &err, int32_t line, trait_context &context)
void attack(association_type, float value, error_handler &err, int32_t line, trait_context &context)
void defence(association_type, float value, error_handler &err, int32_t line, trait_context &context)
void organisation(association_type, float value, error_handler &err, int32_t line, trait_context &context)
void reconnaissance(association_type, float value, error_handler &err, int32_t line, trait_context &context)
void morale(association_type, float value, error_handler &err, int32_t line, trait_context &context)
void speed(association_type, float value, error_handler &err, int32_t line, trait_context &context)
void reliability(association_type, float value, error_handler &err, int32_t line, trait_context &context)
void finish(scenario_building_context &)
dcon::national_identity_id id
scenario_building_context & outer_context
void free_value(std::string_view text, error_handler &err, int32_t line, unit_names_context &context)
void any_value(std::string_view value, association_type, float v, error_handler &err, int32_t line, country_history_context &context)
void first(association_type, std::string_view tag, error_handler &err, int32_t line, scenario_building_context &context)
void start_date(association_type, sys::year_month_day ymd, error_handler &err, int32_t line, scenario_building_context &context)
void end_date(association_type, sys::year_month_day ymd, error_handler &err, int32_t line, scenario_building_context &context)
void second(association_type, std::string_view tag, error_handler &err, int32_t line, scenario_building_context &context)
void world_war(association_type, bool v, error_handler &err, int32_t line, war_history_context &context)
void rem_attacker(association_type, std::string_view tag, error_handler &err, int32_t line, war_history_context &context)
void add_defender(association_type, std::string_view tag, error_handler &err, int32_t line, war_history_context &context)
void rem_defender(association_type, std::string_view tag, error_handler &err, int32_t line, war_history_context &context)
void add_attacker(association_type, std::string_view tag, error_handler &err, int32_t line, war_history_context &context)
scenario_building_context & outer_context
std::vector< dcon::nation_id > defenders
std::vector< dcon::nation_id > attackers
std::vector< history_war_goal > wargoals
void name(association_type, std::string_view name, error_handler &err, int32_t line, war_history_context &context)
void finish(war_history_context &)
float values[modifier_definition_size]
dcon::national_modifier_value offsets[modifier_definition_size]
static constexpr uint32_t modifier_definition_size
float values[modifier_definition_size]
static constexpr uint32_t modifier_definition_size
dcon::provincial_modifier_value offsets[modifier_definition_size]
culture::global_cultural_state culture_definitions
dcon::text_key add_key_win1252(std::string const &text)
dcon::data_container world
simple_fs::file_system common_fs
absolute_time_point start_date
military::global_military_state military_definitions
dcon::unit_name_id add_unit_name(std::string_view text)
dcon::text_key lookup_key(std::string_view text) const
dcon::text_key add_key_utf8(std::string const &text)
nations::global_national_state national_definitions
float discipline_or_evasion
dcon::texture_id primary_texture_handle