Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

View Stats:
Trade bound settlements - Where is stored the info ?
Hello,

I wanted to get a general overview of the resources per settlement and to which Town they were trade bounded. It's quite easy to open the XML Settlements and find for each settlement what they produce. But i'm struggling a bit more with which Town they are trade bound to.

I understand that this is not a fixed value, but rather something calculated (The nearest friendly town). I had hope with the 'settlement_distance_cache.bin' but it's not really readable as is.

Is there any way to access this data ? Some command to input In Game to fetch this data ? Or is this a lost cause ?

Thanks !
< >
Showing 1-5 of 5 comments
Kiiroten Jul 19, 2024 @ 12:59pm 
In Modules\SandBox\ModuleData\settlements.xml
Search for line bound="NAME"
With NAME = ID of castles or towns.
Search ID NAME for actual castles or towns.
It's fixed value.
Originally posted by Kiiroten:
In Modules\SandBox\ModuleData\settlements.xml
Search for line bound="NAME"
With NAME = ID of castles or towns.
Search ID NAME for actual castles or towns.
It's fixed value.
But it's only giving me what Town/Castle it's bound to, but not the trade bound. Or have I not understood this correctly ?
Kiiroten Jul 19, 2024 @ 1:27pm 
How settlements work
The way the game adds settlements is by combining two XML based files: One to define what type of settlement it is (hideout, village, city, castle etc.), who owns it and other relevant parameters such as prosperity, production, which town a village belongs to etc. This definition happens in the base game under Modules/SandBox/ModuleData/settlements.xml Beside this file is a distance cache Modules/SandBox/ModuleSata/Settlements_distance_cache.bin, which can be generated in code.

This definition does not however define the actual visuals of the settlement. This is done inside Modules/SandBox/SceneObj/Main_map/scene.xscene file.

https://docs.bannerlordmodding.com/_tutorials/new_settlements.html

Unless you can open this file, you can't look into codes about that data.
MrMinMax Jul 19, 2024 @ 2:07pm 
There was a jpeg floating around with bound settlements links. But it only works for the start of the game.

As castles change hands, bound villagers start walking to the nearest friendly town.

Found it https://forums.taleworlds.com/index.php?threads/the-traders-map-of-calradia.450191/
AfLIcTeD Jul 19, 2024 @ 5:27pm 
It's only castle villages that change. They will usually trade with the nearest friendly town. Unsure if that includes neutral factions.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jul 19, 2024 @ 12:25pm
Posts: 5