8000 GitHub - codiren/hoi4-map-generator-fast-mapper: A program used to generate hoi4 map mods
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

codiren/hoi4-map-generator-fast-mapper

Repository files navigation

To download: Navigate to "Releases" on the right, and click on .7z file

showcase/guide video - https://youtu.be/edFPnLBjc3E

  • Platform: Windows only

Usage Instructions:

  1. Change settings inside of config.ini.
  2. Open run.bat.
  3. If the console displays "SUCCESS, took x.xxx seconds," the program has worked.
  4. If the console repeatedly shows "starting," try increasing optimizationFactor or setting it to 100000 in config.ini.
    • Increasing this setting will slow down the program but may reduce crashes.

Testing the Mod:

  1. Open HOI4 and add "Generated Map Mod" to your current playset.
  2. Play the game.
  3. If the game crashes, follow "Usage Instructions".

Post-Execution:

  • If successful, a folder named src should appear. This folder is your mod folder. If the mod is not showing up in the launcher then change hoi4ModsLocation or follow these steps in the launcher:
  1. All installed mods > upload mod > create a mod
  2. After creation select the mod you have created in the list > "..." > show in folder
  3. Then copy all files from src folder and paste them in the folder that the launcher has showed you
  4. Go to the folder that the launcher directed you to.
  5. Move up one level in the directory.
  6. Look for a file with the same name as the one you entered in the launcher for the mod, ending with ".mod".
  7. Add the specified lines to this file.
  8. replace_path="history/states"
  9. replace_path="history/units"
  10. replace_path="map/strategicregions"

Editing the Map:

  1. Open image input.bmp.
  2. Choose any HOI4-supported resolution for your image (must be a multiple of 256):
    • Examples: 512x512, 768x512, 512x768, 768x768, ..., 5632x2048.
    • If choosing a large resolution, increase provinceSize (default is 6) to not go over HOI4 province limit(~23000).
  3. Draw the map(use pencil tool):
    • White color represents water.
    • Black color is filled in with nearby pixels.
    • Any other color represents a separate country.
  4. If your image has blurry border you can set removeFuzzyBorder to yes to remove it
  5. Export as 24 bit bmp image and name it input.bmp.
  6. Run the program to generate a new mod.

Example Mod:

Compilation flag if you want to compile source file yourself

g++ -std=c++2a -O3 -o C:\master.exe C:\master.cpp --static

About

A program used to generate hoi4 map mods

Resources

Stars

Watchers

Forks

Packages

No packages published
0