Victoria 3

Victoria 3

Names of Nations
Fallingmoon 10 Mar, 2024 @ 10:10pm
Error Log
I was getting some spam in the error log with new games related to country names and tried my hand at breaking "fixing" them. I doubt they're too serious, but here's what I got:

Error Type 1

[jomini_script_system.cpp:262]: Script system error!
Error: Event target link 'c' returned an unset scope
Script location: file: common/government_types/01_monarchies.txt line: 895

[jomini_script_system.cpp:262]: Script system error!
Error: is_subject_of trigger [ Invalid Country! ]
Script location: file: common/government_types/01_monarchies.txt line: 895

[jomini_script_system.cpp:262]: Script system error!
Error: Event target link 'c' returned an unset scope
Script location: file: common/government_types/01_monarchies.txt line: 896

[jomini_script_system.cpp:262]: Script system error!
Error: is_subject_of trigger [ Invalid Country! ]
Script location: file: common/government_types/01_monarchies.txt line: 896

[jomini_script_system.cpp:262]: Script system error!
Error: Event target link 'c' returned an unset scope
Script location: file: common/government_types/01_monarchies.txt line: 927

[jomini_script_system.cpp:262]: Script system error!
Error: is_subject_of trigger [ Invalid Country! ]
Script location: file: common/government_types/01_monarchies.txt line: 927

[jomini_script_system.cpp:262]: Script system error!
Error: Event target link 'c' returned an unset scope
Script location: file: common/government_types/01_monarchies.txt line: 928

[jomini_script_system.cpp:262]: Script system error!
Error: is_subject_of trigger [ Invalid Country! ]
Script location: file: common/government_types/01_monarchies.txt line: 928

These errors cleared up by replacing lines

895, 927 with AND = { exists = c:RUS is_subject_of = c:RUS }
896, 928 with AND = { exists = c:UKR is_subject_of = c:UKR }
897, 929 with AND = { exists = c:BLR is_subject_of = c:BLR }

BLR's reference country doesn't seem to exist, I wasn't sure if that counted as a spoiler for future tags or leftover from something else.

Error Type 2

[jomini_script_system.cpp:262]: Script system error!
Error: is_country_type trigger [ Wrong scope for trigger: country_definition, expected country ]
Script location: file: common/dynamic_country_names/42_non_dyn_country_names.txt line: 40

[jomini_script_system.cpp:262]: Script system error!
Error: is_country_type trigger [ Wrong scope for trigger: country_definition, expected country ]
Script location: file: common/dynamic_country_names/42_non_dyn_country_names.txt line: 96

These errors cleared up by adding to lines 40 and 96
scope:actor = {
is_country_type = unrecognized
}

I have little experience with these things, so I probably broke more than I fixed, but I hope it helps some.
< >
Showing 1-1 of 1 comments
Science-Recon  [developer] 16 Mar, 2024 @ 3:41am 
Ah, no that was meant to be Belarus but Belarus has a different tag in this game to previous ones. That has been corrected.

As for the second issue, that's because the name system can access two different types of data: the default is for the country *definition* which only has access to the prescripted facts about the country, like it's cultures and religion and such, the other is with scope:actor, which is the actual instance of that country which can access things like it's active laws and such.
< >
Showing 1-1 of 1 comments
Per page: 1530 50