Battle Brothers
0 of 0

File information

Last updated

Original upload

Created by

Rule303

Uploaded by

ruletot

Virus scan

Safe to use

Tags for this mod

About this mod

Configure the campaign map when starting new campaigns. Change map size, number of settlements, factions, etc...

Permissions and credits
Mod introduces a map configuration page when starting a new campaign.

Options are:
Map Height
Map Width
Land Mass Ratio
Water Connectivity
Snowline,
Mountain Density,
Forest Density,
Swamp Density,
Number of Factions
Number of Settlements,
Option to start with all settlements Hidden
Debug option (allows you to see the entire map)

My goal was to be able to have more control over the map generation when I started this mod. I quickly realized that the current map generation algorithm very much wants to create the default kind of map we see in Battle Brothers. The constraints are very tight and don't lend well to values outside of defaults. In order to get the kind of control I'm looking for, I am going to need to rewrite the map generation algorithms to be more flexible with variance.

But, I've been told that what is here may still be useful for others, so I'm putting it up for other to do with as they please.

I have plans for this mod, but other bigger mod plans keep pushing this priority lower.

Bad news on the map size. Devs have told us that the map size can not solely be changed from with the scripts - which means it also needs to be changed in the .exe. What that means is maps bigger than 140x140 will have rendering issues when zoomed in. You can see the map zoomed out, but on the edges, if you zoom in you loose all the textures.

This mod will most likely conflict with a few other mods out there. Good news is you can uninstall this mod once the map has been generated. There is one small caveat. world_state.nut has a hardcoded 32 factions. So if you increase the settlement size or faction size from default you will run into problems interacting with some of the factions if you don't include the world_sate.nut file from this mod.

----
Modifies:
scripts/config/z_mod_factions.nut
scripts/config/z_world.nut
scripts/factions/faction_manager.nu
scripts/mapgen/templates/world/worldmap_generator.nut
scripts/states/main_menu_state.nut
scripts/states/world_state.nut
scripts/ui/screens/menu/modules/new_campaign_menu_module.nut
scripts/ui/screens/tooltip/tooltip_events.nut
ui/helper.js
ui/screens/menu/modules/campaign_menu/new_campaign_menu_module.css
ui/screens/menu/modules/campaign_menu/new_campaign_menu_module.js
---