Skip to content

Commit

Permalink
et support enable
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemurin committed Jan 27, 2025
1 parent 378e2a8 commit 27d0780
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion EU4ToVic3/Data_Files/configurables/colonial_regions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ argentine_colony = {
split_name = "$PARENT$-Platinean"
}
africa_colony = {
region = niger_region region = guinea_region region = central_africa_region region = sahel_region region = horn_of_africa_region region = east_africa_region region = kongo_region region = south_africa_region
region = region_nile_basin region = region_ethiopia region = region_north_africa region = region_senegal region = region_niger region = region_congo region = region_southern_africa region = region_zanj
alone_name = "Neo-African"
split_name = "$PARENT$-African"
}
Expand Down
6 changes: 4 additions & 2 deletions EU4ToVic3/Source/Configuration/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ class Configuration: commonItems::parser
bool downTiers = true;
double shapingFactor = 1.0;
// runtime options.
bool vn = false; // Voltaire's Nightmare
bool thirdOdyssey = false; // Third Odyssey: Back to the Motherland
bool vn = false; // Voltaire's Nightmare
bool thirdOdyssey = false; // Third Odyssey: Back to the Motherland
bool extendedTimeline = false; // Extended Timeline
} configBlock;

void setOutputName(const std::string& name) { outputName = name; }
void setVN() { configBlock.vn = true; }
void setTO() { configBlock.thirdOdyssey = true; }
void setET() { configBlock.extendedTimeline = true; }
void setEurocentric() { configBlock.euroCentric = EUROCENTRISM::EuroCentric; }
void setVanillaStartDate() { configBlock.startDate = STARTDATE::Vanilla; }

Expand Down
6 changes: 5 additions & 1 deletion EU4ToVic3/Source/EU4World/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ void EU4::World::registerKeys(const std::shared_ptr<Configuration>& theConfigura
}
if (mod.name == "Third Odyssey: Back to the Motherland")
{
// throw std::runtime_error("1.8 update broke Third Odyssey: Back to the Motherland support. We're working on re-enabling it.");
Log(LogLevel::Notice) << "Third Odyssey: Back to the Motherland detected. Enabling TO support.";
theConfiguration->setTO();
if (theConfiguration->configBlock.euroCentric != Configuration::EUROCENTRISM::EuroCentric)
Expand All @@ -229,6 +228,11 @@ void EU4::World::registerKeys(const std::shared_ptr<Configuration>& theConfigura
theConfiguration->setEurocentric();
}
}
if (mod.name == "Extended Timeline")
{
Log(LogLevel::Notice) << "Extended Timeline detected. Enabling ET support.";
theConfiguration->setET();
}
}
});
registerKeyword("provinces", [this](std::istream& theStream) {
Expand Down
4 changes: 4 additions & 0 deletions EU4ToVic3/Source/V3World/V3World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ V3::World::World(const Configuration& configuration, const EU4::World& sourceWor
{
provinceMapper.loadProvinceMappings("configurables/third_odyssey_province_mappings.txt");
}
else if (configuration.configBlock.extendedTimeline)
{
provinceMapper.loadProvinceMappings("configurables/et_province_mappings.txt");
}
else
{
provinceMapper.loadProvinceMappings("configurables/province_mappings.txt");
Expand Down

0 comments on commit 27d0780

Please sign in to comment.