Mafia: Definitive Edition Guide

Increased draw distance and traffic density for Mafia: Definitive Edition

Increased draw distance and traffic density

Overview

One of the first things I noticed after roaming around the city for a while was how small the amount of pedestrians and cars on the street was and how awful the draw distance is, causing all sorts of pop-in issues.Well It seems this can be fixed by editing an XML file on the game directory and increasing the spawn rate and distance values.

Instructions

  • First, locate the game folder directory (typically at: Program Files (x86)SteamsteamappscommonMafia Definitive Edition
  • Find the “edit” folder on that directory, open it, and then proceed to open the “config” folder (Mafia Definitive Editioneditconfig)
  • Find the file “game_constants.xml” on that folder, right click on it and select “edit”.

The lines we need to find are under the <group name=”Traffic”> section, as seen on the picture below.

As we can see there’s all sorts of options to customize but we only need to edit these lines:

<group name=”Traffic”> <constant name=”MaxHumanElementsLow”>20</constant> <constant name=”MaxCarElementsLow”>20</constant> <constant name=”MaxParkedCarElementsLow”>20</constant> <constant name=”MaxTranslocatedCarElementsLow”>20</constant> <constant name=”MaxTranslocatedBoatElementsLow”>20</constant> <constant name=”MaxBoatElementsLow”>3</constant> <constant name=”MaxTrainElementsLow”>2</constant> <constant name=”MaxHumanElements”>150</constant> <constant name=”MaxCarElements”>40</constant> <constant name=”MaxParkedCarElements”>50</constant> <constant name=”MaxTranslocatedCarElements”>50</constant> <constant name=”MaxTranslocatedBoatElements”>20</constant> <constant name=”MaxBoatElements”>10</constant> <constant name=”MaxTrainElements”>5</constant> <constant name=”HumanSpawnRange” type=”float”>70</constant> <constant name=”HumanSpawnCreateOffset” type=”float”>50</constant> <constant name=”HumanSpawnRemoveOffset” type=”float”>60</constant> <constant name=”HumanSpawnZDistance” type=”float”>30</constant> <constant name=”VehicleSpawnRange” type=”float”>110</constant> <constant name=”VehicleSpawnCreateOffset” type=”float”>80</constant> <!– 50m was too small, some huge crossroads prevented from spawn car at the desired direction –> <constant name=”VehicleSpawnRemoveOffset” type=”float”>110</constant>

I don’t know what are the hardcoded limits on those values, I started to increase them by 10 to see if it made any difference. I’d say I’m happy with the results.

This are the values I’m currently using:

<constant name=”MaxHumanElementsLow”>40</constant> <constant name=”MaxCarElementsLow”>30</constant> <constant name=”MaxParkedCarElementsLow”>30</constant> <constant name=”MaxTranslocatedCarElementsLow”>30</constant> <constant name=”MaxTranslocatedBoatElementsLow”>30</constant> <constant name=”MaxBoatElementsLow”>5</constant> <constant name=”MaxTrainElementsLow”>4</constant> <constant name=”MaxHumanElements”>180</constant> <constant name=”MaxCarElements”>70</constant> <constant name=”MaxParkedCarElements”>80</constant> <constant name=”MaxTranslocatedCarElements”>50</constant> <constant name=”MaxTranslocatedBoatElements”>30</constant> <constant name=”MaxBoatElements”>10</constant> <constant name=”MaxTrainElements”>10</constant> <constant name=”HumanSpawnRange” type=”float”>100</constant> <constant name=”HumanSpawnCreateOffset” type=”float”>70</constant> <constant name=”HumanSpawnRemoveOffset” type=”float”>80</constant> <constant name=”HumanSpawnZDistance” type=”float”>60</constant> <constant name=”VehicleSpawnRange” type=”float”>150</constant> <constant name=”VehicleSpawnCreateOffset” type=”float”>100</constant> <!– 50m was too small, some huge crossroads prevented from spawn car at the desired direction –> <constant name=”VehicleSpawnRemoveOffset” type=”float”>150</constant>

Feel free to play around with the values and adjust them to your liking. I’m still trying different variables but as of now, those seem to be good enough to make the world a bit more alive.

SteamSolo.com