Community Forum

Hydraulic sounds not working

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created16.05.2021 21:48

Patton_M47 16.05.2021 21:48
Why are my Hydraulic sounds not working

<movingTool node="0>0|15|1" isEasyControlTarget="false" playSound="true">
<controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0" iconName="CRANE_ARM1_ROTATE_Y"/>
<rotation rotSpeed="20" rotAcceleration="100" rotMax="3600" rotMin="-3600" rotationAxis="2"/>
<movingTool node="0>0|15|1|0" isEasyControlTarget="false" playSound="true">
<controls axis="AXIS_CRANE_ARM" invertAxis="true" mouseSpeedFactor="0.5" iconName="GRABBER_ROTATE_Y"/>
<rotation rotSpeed="20" rotAcceleration="100" rotMax="20" rotMin="-20" startRot="0" rotationAxis="1"/>
<hydraulic template="sounds/Gunelevation.wav" linkNode="0>0|15|1|0"/>
<hydraulic template="sounds/Turretrotation.wav" linkNode="0>0|15|1"/>

Bilbo Beutlin (BBeutlin) 17.05.2021 01:54
Because for <hydraulic template=.. you need a sound TEMPLATE (xml), not a single soundfile.

Patton_M47 17.05.2021 02:07
thanks that explains it

Patton_M47 17.05.2021 16:44
is this right
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<template name="TURRET_ROTATION" file="sounds/Turretrotation.wav" innerRadius="5.0" outerRadius="80.0" fadeOut="0.08">
<volume indoor="0.20" outdoor="0.45" />
<pitch indoor="1.0" outdoor="1.0" />
<lowpassGain indoor="0.50" outdoor="1.00" />

Bilbo Beutlin (BBeutlin) 17.05.2021 18:28
no no no

You can either use a template
<hydraulic template="EXAMPLE" file="sounds/mySound.ogg" ... />
with a valid template name from $data/sounds/soundTemplates.xml

or without template
<hydraulic file="sounds/mySound.ogg" ... >
<volume ... />
<pitch ... />

btw: you should do more own research than posting here every trivial question.

Patton_M47 17.05.2021 18:34

Patton_M47 17.05.2021 20:22
okay it doesnt like it for some reason
<hydraulic file="sounds/Turretrotation.wav" linkNode="0>0|15|1|0"/>
<volume "1" />
<pitch "1" />
Did I do it right?

Bilbo Beutlin (BBeutlin) 18.05.2021 14:04
No. That's no XML.
You have posted just above how it should look.

Patton_M47 18.05.2021 14:16
sooo what do I need to do (Just so you know thats a section from the XML

Bilbo Beutlin (BBeutlin) 18.05.2021 14:30
What you need to do is researching, learning and begin to think. Else better forget modding.
I've posted the scheme above. You cannot always expect a code snippet ready for copy+paste.

For the very last time:

<hydraulic file="sounds/mySound.ogg" innerRadius="5.0" outerRadius="80.0" fadeOut="0.08 linkNode=".." >
<volume indoor="0.20" outdoor="0.45" />
<pitch indoor="1.0" outdoor="1.0" />

Edit values or add tags like <lowpassGain> after your needs.

Patton_M47 18.05.2021 15:47
ok where should I do more research? and where should I place this in my XML

Patton_M47 18.05.2021 20:24
Bill I was looking at another machines XML and I think we are talking about to different things you are talking about the 3pt on a tractor Im talking about the hydraulics on a loader or something

Bilbo Beutlin (BBeutlin) 18.05.2021 21:18
It works the same way since the sounds are always loaded by the same function "g_soundManager:loadSampleFromXML()".

For reference see LUADOC Cylindered:onLoad()

Patton_M47 18.05.2021 21:59
can you give me a visual example I need to see it

Bilbo Beutlin (BBeutlin) 18.05.2021 22:08
OMG - that's what I've meant: you are not able to learn from existing stuff. Be it from default game vehicles or the hundreds of mods you surely have.

Look into default vehicles xml like frontloader, cranes, tree harvester ... all what has moving arms. They all use hydraulic sound.

Patton_M47 19.05.2021 01:58
and they all use templates and I have been looking through my mods and have yet to find one with custom cylinder sounds

Bilbo Beutlin (BBeutlin) 19.05.2021 06:56
It's hopeless. Forget it!
A bit further up I explained you in the scheme how it looks with and how it looks without template.

Ivan Ivanov (Vanjuha) 01.07.2021 00:54
BBeutlin don't be so negative. Share your experience with the modding community, no matter advanced or a beginner. This post helped me figure out a mistake I've been making. ;) Your examples are very good and even if some ppl can't understand, others will find this information helpfull. Sharing is caring :*

Here is a full example of used code that is tested and works. So 100% correct. Just replace what needs to be replaced in your case and ur done.

<hydraulic file="sounds/hydrulic_mix.ogg" linkNode="forwarder875_back_component2">
<volume indoor="1.20" outdoor="1.45" />
<pitch indoor="1.0" outdoor="1.0" />
<lowpassGain indoor="0.50" outdoor="1.00" />

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