There is a problem with the Added Realism for Vehicles mod ("REA", version 1.4.2.0) and Hof Bergman "pushable" pieces of equipment, namely wheelbarrows, transport barrows, milk shuttle and portable mixer wagon. All of those vehicles are influenced by the REA mod and since they're not conventional vehicles their behavior is buggy, they topple over, jump around, etc., often resulting in the player character disappearing under the ground.
The problem can be solved by setting two additional conditions in two places in the REA mod LUA script and adding few parameters to those vehicles' XML scripts.
First let's edit the REA mod. Open file: "FS19_REA/REA.lua" and find two lines:
292 - exclude vehicles of certain types from adding the REA functionality
before:
after:
if vehicle ~= nil and not string.find(vehicle.typeName, "pushable") and not string.find(vehicle.typeName, "milkShuttle") then
537 - disable recalculating of the new center of mass for Y axis.
before:
after:
if NewCenterY > cy then
if not string.find(vehicle.typeName, "pushable") and not string.find(vehicle.typeName, "milkShuttle") then
component.UpdateYValue = true;
end;
end;
That's it for the REA mod. Zip it and that's it.
Now for the XML files of the vehicles. I'll show what to do on the wheelbarrow example.
Open file "FS19_lsfmFarmEquipmentPack/wheelBarrow.xml" and find the "<wheels>" and "<wheelConfigurations>" nodes, somewhere around line 40. Within that node you'll find a "<wheelConfiguration>" node containing definitions for wheels. Hof Bergmann wheelbarrow has 3, believe or not, that's how the mod is built. What needs to be done is to add supportsWheelSink="false" parameter to the "<physics>" node of each wheel.
before:
<wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
<wheels autoRotateBackSpeed="10.0" speedDependentRotateBack="false">
<wheel hasParticles="true" hasTireTracks="true">
<physics rotSpeed="1" restLoad="0.6" repr="wheelMiddle" showSteeringAngle="false" radius="0.23" width="0.1" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="3" frictionScale="2.5" mass="0.01"/>
<tire maxDeformation="0" tireTrackAtlasIndex="4" isCareWheel="true"/>
<outerRim filename="wheels/wheelBarrowWheel.i3d" node="0|0" />
</wheel>
<wheel hasParticles="false" hasTireTracks="false">
<physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelLeft" showSteeringAngle="false" radius="0.23" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="3" frictionScale="2.5" mass="0.01"/>
<tire maxDeformation="0" tireTrackAtlasIndex="4" isCareWheel="true"/>
</wheel>
<wheel hasParticles="false" hasTireTracks="false">
<physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelRight" showSteeringAngle="false" radius="0.23" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="3" frictionScale="2.5" mass="0.01"/>
<tire maxDeformation="0" tireTrackAtlasIndex="4" isCareWheel="true"/>
</wheel>
</wheels>
</wheelConfiguration>
Alles anzeigen
after:
<wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
<wheels autoRotateBackSpeed="10.0" speedDependentRotateBack="false">
<wheel hasParticles="true" hasTireTracks="true">
<physics supportsWheelSink="false" rotSpeed="1" restLoad="0.6" repr="wheelMiddle" showSteeringAngle="false" radius="0.23" width="0.1" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="3" frictionScale="2.5" mass="0.01"/>
<tire maxDeformation="0" tireTrackAtlasIndex="4" isCareWheel="true"/>
<outerRim filename="wheels/wheelBarrowWheel.i3d" node="0|0" />
</wheel>
<wheel hasParticles="false" hasTireTracks="false">
<physics supportsWheelSink="false" tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelLeft" showSteeringAngle="false" radius="0.23" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="3" frictionScale="2.5" mass="0.01"/>
<tire maxDeformation="0" tireTrackAtlasIndex="4" isCareWheel="true"/>
</wheel>
<wheel hasParticles="false" hasTireTracks="false">
<physics supportsWheelSink="false" tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.6" repr="wheelRight" showSteeringAngle="false" radius="0.23" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.09" spring="20" damper="3" frictionScale="2.5" mass="0.01"/>
<tire maxDeformation="0" tireTrackAtlasIndex="4" isCareWheel="true"/>
</wheel>
</wheels>
</wheelConfiguration>
Alles anzeigen
This will tell the REA mod not to apply the "sinking" logic to those wheels. This needs to be repeated for other XML files (for transport barrow, milk shuttle and portable mixer wagon). Milk shuttle and mixer wagon are part of the Hof Bergmann mod. You'll find them in the "FS19_HofBergmann/vehicles/farmEquipment" folder.
This should allow you to drive all those pushable vehicles on all surfaces without any bugs.
Please verify and let me know in the comments below.
DISCLAIMER:
Added Realism for Vehicles mod has been created by 900Hasse, and he holds all the rights to it, so be mindful of that, if you think of redistributing the mod. I also am not a part of the team responsible for the Hof Bergmann map.