COMMUNITY FORUM

Change pedestrians sound

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created02.07.2017 12:40


Alex Mihai (Unknown) 02.07.2017 12:40
I want to change the voices of the pedestrians walking on the streets. What I did was changing the location of the `pedestrianSystem.xml` file to my local file inside the mod (`maps/pedestrianSystem.xml`), which looks like this:

<?xml version="1.0" encoding="utf-8" standalone="no" ?>

<pedestrianSystem>
<pedestrians>
<pedestrian filename="../../dataS2/character/pedestrians/man01.i3d" walkClipIndex="19" walkClipSpeed="1.45" walk2ClipIndex="6" walk2ClipSpeed="1.4" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="1" />
<pedestrian filename="../../dataS2/character/pedestrians/man02.i3d" walkClipIndex="19" walkClipSpeed="1.45" walk2ClipIndex="6" walk2ClipSpeed="1.4" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="1" />
<pedestrian filename="../../dataS2/character/pedestrians/man03.i3d" walkClipIndex="19" walkClipSpeed="1.45" walk2ClipIndex="6" walk2ClipSpeed="1.4" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="1" />
<pedestrian filename="../../dataS2/character/pedestrians/man04.i3d" walkClipIndex="19" walkClipSpeed="1.45" walk2ClipIndex="6" walk2ClipSpeed="1.4" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="1" />
<pedestrian filename="../../dataS2/character/pedestrians/man05.i3d" walkClipIndex="19" walkClipSpeed="1.45" walk2ClipIndex="6" walk2ClipSpeed="1.4" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="1" />
<pedestrian filename="../../dataS2/character/pedestrians/man06.i3d" walkClipIndex="19" walkClipSpeed="1.45" walk2ClipIndex="6" walk2ClipSpeed="1.4" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="1" />
<pedestrian filename="../../dataS2/character/pedestrians/woman01.i3d" walkClipIndex="6" walkClipSpeed="1.4" walk2ClipIndex="19" walk2ClipSpeed="1.45" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="2" />
<pedestrian filename="../../dataS2/character/pedestrians/woman02.i3d" walkClipIndex="6" walkClipSpeed="1.4" walk2ClipIndex="19" walk2ClipSpeed="1.45" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="2" />
<pedestrian filename="../../dataS2/character/pedestrians/woman04.i3d" walkClipIndex="6" walkClipSpeed="1.4" walk2ClipIndex="19" walk2ClipSpeed="1.45" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="2" />
<pedestrian filename="../../dataS2/character/pedestrians/woman05.i3d" walkClipIndex="6" walkClipSpeed="1.4" walk2ClipIndex="19" walk2ClipSpeed="1.45" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="2" />
<pedestrian filename="../../dataS2/character/pedestrians/woman06.i3d" walkClipIndex="6" walkClipSpeed="1.4" walk2ClipIndex="19" walk2ClipSpeed="1.45" walk3ClipIndex="22" walk3ClipSpeed="1.025" headAimPath="0|0|0|0" soundGroup="2" />
</pedestrians>
<sounds>
<sound filename="../character/pedestrians/testMale.wav" volume="1" group="1" />
<sound filename="../../dataS2/character/pedestrians/helloFemale.wav" volume="1" group="2" />
<sound filename="../../dataS2/character/pedestrians/helloMale.wav" volume="1" group="1" />
<sound filename="../../dataS2/character/pedestrians/hiDearFemale.wav" volume="1" group="2" />
<sound filename="../../dataS2/character/pedestrians/hiMale.wav" volume="1" group="1" />
<sound filename="../../dataS2/character/pedestrians/hiFemale.wav" volume="1" group="2" />
<sound filename="../../dataS2/character/pedestrians/howdyPartnerMale.wav" volume="1" group="1" />
<sound filename="../../dataS2/character/pedestrians/sighFemale.wav" volume="1" group="2" />
<sound filename="../../dataS2/character/pedestrians/mumbleMale.wav" volume="1" group="1" />
<sound filename="../../dataS2/character/pedestrians/sneezeFemale.wav" volume="1" group="2" />
<sound filename="../../dataS2/character/pedestrians/whistleSmallMale.wav" volume="1" group="1" />
<sound filename="../../dataS2/character/pedestrians/yeehaMale.wav" volume="1" group="1" />
</sounds>
</pedestrianSystem>


The problem lies in specifying the correct path for the models and sounds inside the `dataS2` file. I don't know how to do it and the files locations are relative to the mod location, instead of the game directory, like `$data`. I tried using `$dataS2` but no success

N0tr3ady (n0tr3adY) 02.07.2017 12:51
You should try to change the "../../dataS2" to "$dataS2". I'm not really sure it's working,but give it a try. That points to original pedestrian sounds.
Or give the path for your custom .wav related to your xml file's location.




Rob Van Den Berg (thudge) 02.07.2017 22:22
What worked for me is setting up the pedestrian models like

<pedestrian filename="../dataS2/character/pedestrians/man01.i3d" ...... >

and the ingame sounds like

<sound filename="../dataS2/character/pedestrians/yeehaMale.wav" ... >

So in short, one folder level higher than your setup mentioned above.

Rob



Larry Horse (Larry) 05.07.2017 00:13
What could possibly compel to that?

Alex Mihai (Unknown) 05.07.2017 16:02
Unfortunately, $dataS2 is still treated as a folder relative to the mod's path, instead of being taken from the game folder, like $data. I wonder if there's any other possibility to specify that a certain file should be located in the game's folder


Note: Log in to post. Create a new account here.