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

Vic2ToHoI4-0.2C

Compare
Choose a tag to compare
@Idhrendur Idhrendur released this 23 Sep 16:53
· 794 commits to master since this release

It's been a long time coming, but the next update is here. This release has a few different areas of focus from a few different people.

My big focus has been on ideologies. Making sure that when you drop some, everything gets cleaned up properly. And as a result, that everything is there for the new ideologies in the first place. But now you have ministers, focus tree branches, possible revolutions, the works. As well, there was a bug where sometimes governments would turn neutral when they shouldn't have. That's been fixed. And there should be much improved lcoalisations for events of all kinds now.

@Hamiller78 has continued working on the war creator and on focus trees. A great many bugs have been fixed, and localisations are again improved.

@RaduM84 did overhauled tech conversion and military conversion. Teachs should make more sense and you should get bonuses for the doctrine techs. Militaries should convert somewhat more sensibly, and the groundwork has been laid for even better improvements in the future.

@derHochmeister has done a ton with the data files yet again. More flags, more names, better portrait mappings, better country mappings. And he did an update on province mappings. I merged everything from the Americas so far, so the Americas should be much better (be sure to let us know of any corrections).

I did some serious work on cleaning up the code. Not only is this something I put on my resume (so I don't want the code to be too embarassing), but that tends to make future development faster, as well as eliminating a host of minor and/or weird glitches.

For those inclined, I also added a debug mode to the converter. Add the line 'debug = yes' to the configuration file, and every Vic2 province will generate a victory point in HoI4. This should allow for better double-checking of province mappings.

How you can help
First, we can use more portraits. It would help a great deal if you could create new portraits and update cultureGroupToGraphics.txt to point at them correctly. As the name implies, culture groups are mapped to sets of portraits (also, ideologies). I'd like to stick with HoI4's existing art style if possible. However, if you add a truly large number of portraits, I'll not object to you changing the overall style. Bears and Equine portraits are an exception. Feel free to not match the existing style with them, as they're already just in there for fun.

We can use help with female names, callsigns, and company names. Some might be able to be pulled from HoI4. They go in names.txt.

Province mappings are always an issue. Some of @derHochmeister's are in, and there are some more improvements from @derHochmeister that still need integration. If you want to integrate them and make more improvements, that would be very helpful. Or double-check the work in the Americas.

For the more math or programming types, I can use some assistance with naval base placement. The converter generates a list of border points between provinces, but they aren’t in proper order. I tried fixing that for this release, but was stymied by several provinces in the northern Baltic, with their inlets and bays and fjords. I have the beginnings of an algorithm, but I'm a little stuck on understanding the necessary math. If you'd care to explain it to me or implement it, let me know.

If you know C++ or would like to learn, we can always use more people programming. I’m focused on country internals right now, but you could work on whatever part strikes your fancy, or I could give specific direction. Either way, that’s the biggest aspect of working on the converter.

If you can test, that would be helpful. Catching bugs and oddities earlier means they get fixed earlier. I try to release test versions of the converter on the forum for testing, so running those and looking things over is helpful. And if you have professional experience in testing, well, I'm sure we could be doing things far better. Tell me how!

We can always use help figuring out how things work, and how we can do them better. If you know how to mod HoI4, we can use your help figuring it out. As well, there's always more room for flavor events, decisions, and the like.

We can always handle more discussion on how things are converted over on the development thread. As well, I try to document implemented items over on the project wiki. And your encouragement helps more than you know.

Changelog

  • Correct domain country names in localisation files
  • Update manually-set HoI4 version in configuration
  • Fix some problems with identifying state capitals
  • Resolve issue #318 (Handle importing more than one localisation files of each category)
  • Don't spam 'missing' names
  • No longer double-post about missing localisations
  • Add a debug mode that adds VPs for every V2 province.
  • Update supported version number
  • Fixes to build on linux
  • Update configuration files for test saves
  • Don't crash when the a country's capital can't be set
  • Puppets of fascists now set up correctly

Dynamic ideologies

  • Output ideology file instead of copying a fixed version
  • Only include ministers for major ideologies
  • Simplify last commit
  • Remove some events
  • Add political NFs for the new ideologies, and limit focuses for non-major ideologies
  • Add the mutual exclusions to the new focuses
  • Limit ideological ideas when dropping ideologies
  • Fix some governments getting turned neutral even when not dropping ideologies
  • Better handling of ideologies when not dropping ideologies
  • Handle scripted triggers when dropping ideologies
  • Generate ideological minister revolution events
  • Add democratic advisor coup event chain
  • Fix some ideological advisors being left out
  • Add the rest of the political events
  • Fix political event bugs exposed when ideologies not dropped.
  • Fix some issues exposed when dropping ideologies.
  • Fix war justifications when dropping ideologies
  • Fix on_actions bugs when droping ideologies
  • Enforce alphabetical order of ideological advisors
  • Make a scrollbar in the politics display for extra ideologies
  • Add localisation for minister revolution events
  • Add localisations for the remaining converted political events
  • Political event bugfixes
  • Add missing localisations for events
  • Resolve a crash when converting worlds with only democratic and neutral ideologies

War Creator and Focus Trees

  • Remove support for old version focus trees
  • Fix errors in generic focus tree.
  • Quick focus tree fixes
  • Refactored fascist tree creation into FocusTree class. Fixed some bugs on the way (especially the untested Sudeten branch), also for the communist GW branch.
  • Unified Communist and Fascist GP war focus branch creation.
  • Sets icons and some completion rewards for absolutist and radical generic branches.
  • Implemented effects for radical and absolutist generic focuses.
  • Fixed error after merge and deleted duplicate ideas.
  • Added texts for new generic focuses in localization. CopyFocusLocaliosations now also copies the focus description texts.
  • Disable Sudenten focuses until they can be bugfixed
  • All generated news events now only fire when intended

Tech and Military

  • Revised tech_mapping.txt
  • New "tech_mapping.txt" section "bonus_map"
  • Fix compile error when reading tech mappings
  • New unit_mapping.txt structure
  • Revised unit_mapping.txt
  • Generate military from mapping
  • Output division templates in OOB files (prevents a crash on unpause)
  • Clarify that capitals are typically capital states
  • Armies now placed in actual capital
  • Instead of crashing on unknown unit types, log them and continue
  • Add unit mappings for PDM units

Data files

  • Make data files match the latest of HoI4's
  • Add derHochmeister's updated country mappings
  • Add a portrait mapping fix
  • Add some names for (Australian) Aborigine
  • Merge derHochmeister' new mappings for Alaska with the existing ones
  • Add derHochmeister's new names
  • Add African-American names
  • Merge derHochmeister' new mappings for West Virginia with the existing ones
  • Fix idea errors in _event.txt
  • Add afro_antillean names
  • Add derHochmeister's province mappings for HPM
  • Merge derHochmeister' new mappings for Virginia with the existing ones
  • Another fix to 00_traits.txt
  • Add new flags up through letter B
  • Merge most province mappings in the USA
  • Province mapping fix from forums
  • Update province mappings for rest of USA
  • Update the readme with a contributor who forgot themselves
  • Improve province mappings in Canada
  • Improve province mappings in Mexico, Central America, and Caribbean
  • Improve province mappings in northern South America
  • Update province mappings in the rest of South America
  • Add new flags that start with C
  • Remove flags that will never be used
  • Update FAQ with question about Vic2 randomly generated worlds

Code cleanup

  • Small code simplification in V2Localisations
  • Use a smart pointer for Objects to improve memory use
  • Name the attributes file with the correct name
  • Resolve issue #253: Refactor HoI4Localisation::CreateCountryLocalisations()
  • Quick fix for V2Rgo.h
  • Improved const-correctness of pointers
  • Verified const-correctness of function returns
  • Remove HoI4Alignment
  • Improve constiness for HoI4World
  • Consts for mappers!
  • Initializer lists for V2World
  • Initializers for mappers
  • Initializers for HoI4World
  • Initializers for configuration
  • Copy consturctors and assignment operators for all top-level classses
  • Add copy constuctors and assignment operators for mappers
  • Add copy and assignment operators to V2World
  • Fix up mapper assignment operators
  • Add copy constructors and assignment operators to HoI4World
  • Slight cleanup