Battle Brothers
0 of 0

File information

Last updated

Original upload

Created by

JerekKruger

Uploaded by

JerekKruger

Virus scan

Safe to use

Tags for this mod

About this mod

Modifies world_state.cnut to loop over randomly generated seeds and write various map features for them to the game's log.

Permissions and credits
I created this mod so that I could collect data about map seeds. The aim was to collect enough data to make an informed choice of search parameters for a second mod designed to search for potentially good seeds, but I realised that the data produced by this mod already provided a rich source of seeds, and that the second mod probably wasn't necessary.

Currently this mod records the following 63 data in the Battle Brothers log:
  • Seed: the map seed.
  • Diameter, Radius and Size: three measures of how spread out the settlements on a map are (smaller numbers indicate a lower spread).
  • Sea Diamater, Sea Radius and Sea Size: same as the above, but only looking at settlements containing a Harbor. These measure how spread out the naval connections on the map are with larger numbers indicating a wider spread.
  • Famed Items in Camps: this counts the exact number of famed items that are present in enemy camps upon map creation. This is a constant of the seed, i.e. if you use the same seed twice there'll be the same number of famed items (in fact there'll be the exact same famed items in the exact same camps).
  • Plains - Shore: these thirteen entries count exactly how many of the 19400 map tiles are of each different terrain type.
  • Blast Furnace - Workshop: these 32 entries count the number of each attached location found on the map.
  • Barber - Fletcher: these 10 entries count the number of each building type found within settlements on the map.

Instructions for use

  • Download mod_map_data.zip from this page. Don't unzip it.
  • Temporarily remove all mods you currently have installed to avoid compatibility issues (I'd recommend simply moving them to another location whilst you run this tool).
  • Place mod_map_data.zip in your Battle Brothers data folder (C:\Program Files (x86)\Steam\SteamApps\common\Battle Brothers\data on my PC).
  • Launch Battle Brothers and start a new campaign. The settings you choose don't matter, however don't change the seed from whatever the game pre-generates for you.
  • Leave the game for as little or as long as you want. When I run this script, the game will usually crash to desktop after about 5.5 hours, but this may vary depending on your hardware. If you'd rather not wait that long you can always force quit the game (on Windows 7 I do Ctrl+Alt+Del, open Windows Task Manager, go to Processes, find BattleBrothers.exe *32 and select End Process, but any method that forces the game to properly close should work).
  • Now navigate to your Battle Brothers log file (C:\Users\[USER]\Documents\Battle Brothers\log.html for me, where [USER] is the current Windows user).
  • Copy the log to some other location. Important: do not relaunch Battle Brothers until you have done this, otherwise the contents of the log will be overwritten and all your PC's hard work will be lost.
  • Optional: feel free to open the log and take a look. Try searching for the term "seed": the number of instances found is equal to the total number of seeds you've collected data for, and you can go to each one to manually examine the data (it should consist of 63 red lines in the log).
  • Send the log to jerekkruger at gmail dot com (obviously translate this into a real email address) with the subject "BBLOG" (minus the quotes). By using this subject I can set up a filter that puts these emails in a different folder, making it less likely that they'll be lost amongst all the other emails I get on this address.

Note: I've tried to make these instructions as clear as possible, but as always it's difficult to think of everything. If you need clarification, or have an idea on how to improve these instructions, let me know and I'll do my best to improve them.

Output

The eventual plan is to have a website front end for the data that will allow filtering and sorting, but that may take a while. In the mean time I'll host the data in a Google spreadsheet here, and will try to update this as often as frequently as I can.

Number of Seeds:

28/06/2019: 13427
24/06/2019: 8192
23/06/2019: 6365