-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mod Compatibility Fixes #291
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this PR do not reflect how Victoria 2 works.
Carefully research Victoria 2 instead of trusting in mods.
Mods often just use things without realising it doesn't work.
@@ -79,6 +79,7 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana | |||
ret &= add_condition("any_greater_power", GROUP, COUNTRY, COUNTRY); | |||
ret &= add_condition("any_neighbor_country", GROUP, COUNTRY, COUNTRY); | |||
ret &= add_condition("any_owned_province", GROUP, COUNTRY, PROVINCE); | |||
ret &= add_condition("any_owned", GROUP, COUNTRY, PROVINCE); // alias? not in vanilla, but used by HPM poptypes, so used by a ton of derivative mods too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an effect scope. See https://vic2.paradoxwikis.com/List_of_scopes#any_owned
It is easily mistaken for a condition scope.
4e23937
to
76f501e
Compare
76f501e
to
e5a01cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with minor comments.
e5a01cf
to
5b7386e
Compare
5b7386e
to
558e096
Compare
558e096
to
73423c5
Compare
@@ -218,6 +234,7 @@ int main(int argc, char const* argv[]) { | |||
|
|||
char const* program_name = StringUtils::get_filename(argc > 0 ? argv[0] : nullptr, "<program>"); | |||
fs::path root; | |||
std::vector<std::string> mods; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::vector<std::string> mods; | |
std::vector<std::string> mods; | |
mods.reserve(argc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically we could have std::vector<std::string_view>
here, but vector of string_views is not convertible to vector of strings so everything need to support vector of string_views instead.
replace_path
when searching for files