Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/Vic2ToHoI4_Release_0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Dec 23, 2016
2 parents a80057e + 5aab43b commit 2982be6
Show file tree
Hide file tree
Showing 19 changed files with 10,050 additions and 4,453 deletions.
3 changes: 2 additions & 1 deletion Vic2ToHoI4/Copy_Files.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rem **Create blankMod**
del "Release\blankMod" /Q
del "Release\blankMod" /Q /S /F
rmdir "Release\blankMod" /Q /S
xcopy "Data_Files\blankMod" "release\blankmod" /Y /E /I

rem **Copy data files**
Expand Down
2 changes: 2 additions & 0 deletions Vic2ToHoI4/Data_Files/ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ Mattymooz - Data Files
Yellowone1 - Art
KaeI - Art

Special thanks to LukyLucaz, who allowed us to incoroporate Increased Resources into the converter.


- AND ALL THE OTHERS WHO GAVE THEIR INPUT ON THE FORUM -
6,055 changes: 5,798 additions & 257 deletions Vic2ToHoI4/Data_Files/Resources.txt

Large diffs are not rendered by default.

1,055 changes: 0 additions & 1,055 deletions Vic2ToHoI4/Data_Files/blankMod/output/common/defines/00_defines.lua

This file was deleted.

862 changes: 0 additions & 862 deletions Vic2ToHoI4/Data_Files/blankMod/output/common/defines/00_graphics.lua

This file was deleted.

4 changes: 2 additions & 2 deletions Vic2ToHoI4/Data_Files/configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ configuration =
# hardcoded: Use the one hardcoded into the latest converter version
# automatic: Attempt to automatically detect the installed HoI4 version
# manualEntry: Manually enter the HoI4 version
HoI4VersionMethod = "automatic"
HoI4VersionMethod = "manualEntry"

# HoI4Version: If manually entering the HoI4 version, set this to the desired version
HoI4Version = "1.2.1"
HoI4Version = "1.3.1"

# Manpower factor: a multiplier applied to manpower conversion
manpower_factor = "1.0"
Expand Down
3 changes: 3 additions & 0 deletions Vic2ToHoI4/Source/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,8 @@ HOI4Version Configuration::getAutomaticHoI4Version()
}
}

LOG(LogLevel::Error) << "Could not automatically set HoI4 version. Run HoI4 and convert again, or use a different version setting.";
exit(-1);

return HOI4Version();
}
1 change: 0 additions & 1 deletion Vic2ToHoI4/Source/HOI4World/HoI4Country.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,6 @@ void HoI4Country::initFromV2Country(const V2World& _srcWorld, const V2Country* _
if (isThisStateOwnedByUs(state))
{
state->setAsCapitalState();
state->addAirBase(10);
}

// major nation
Expand Down
14 changes: 14 additions & 0 deletions Vic2ToHoI4/Source/HOI4World/HoI4Focus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.*/

HoI4Focus::HoI4Focus()
{
availableIfCapitulated = false;
}


Expand Down Expand Up @@ -71,6 +72,15 @@ HoI4Focus::HoI4Focus(Object* obj)
yPos = stoi(obj->getLeaf("y"));
cost = stoi(obj->getLeaf("cost"));

auto availableIfcapitulatedObjs = obj->getValue("available_if_capitulated");
if (
(availableIfcapitulatedObjs.size() > 0) &&
(availableIfcapitulatedObjs[0]->getLeaf() == "yes")
)
{
availableIfCapitulated = true;
}

auto availableObjs = obj->getValue("available");
if (availableObjs.size() > 0)
{
Expand Down Expand Up @@ -183,6 +193,10 @@ ostream& operator << (ostream& output, HoI4Focus& focus)
output << " x = " << focus.xPos << "\n";
output << " y = " << focus.yPos << "\n";
output << " cost = " << focus.cost << "\n";
if (focus.availableIfCapitulated)
{
output << " available_if_capitulated = yes\n";
}
if (focus.available != "")
{
output << " available = {\n";
Expand Down
1 change: 1 addition & 0 deletions Vic2ToHoI4/Source/HOI4World/HoI4Focus.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class HoI4Focus
int xPos;
int yPos;
int cost;
bool availableIfCapitulated;
string available;
string cancelIfInvalid;
string continueIfInvalid;
Expand Down
Loading

0 comments on commit 2982be6

Please sign in to comment.