Hey it's me again, I made a working per beams sound concept that can output a sound under a stress/deform condition, constantly loop and change pitch/volume based on deform value, or constantly loop and change pitch/volume based on stress value This is how the JBeam looks for a stress/deform trigger: Code: ["susp1","susp2",{"soundType":"StressDeformTrigger","soundName":"SuspensionSound","minDeform":0.4,"minStress":1100,"maxStress":5000,"maxDeform":2}], This is how the JBeam works for a stress/deform constant (minPitch,minVolume,pitchScale,volumeScale,constantValueFactor are all optional!): Code: ["susp1","susp2",{"soundType":"DeformConstant","soundName":"EngineTestSound","minPitch":0,"minVolume":0,"pitchScale":0.7,"volumeScale":0.4}], ["susp3","susp4",{"soundType":"StressConstant","soundName":"EngineTestSound","minPitch":0,"minVolume":0,"pitchScale":0.7,"volumeScale":0.4}], I've attached the sounds.lua file which will let these work, if you do try this then please backup your sounds.lua!
Demonstration video : Added to front suspension only and quickly tuned - - - Updated - - - Updated sounds.lua for stress/deform constant type sounds.
I like this idea! I think it would give a much better sound representation than what is currently in game! Nice work!
Why there is no more people interested in this ? This is so awesome ! It would be cool to have sound packs for each vehicle for people who do not understand jbeam very well... Hope it'll be integrated into the game !
I was thinking along the lines of have the ability to set different sounds to different beams in the truck files. I know there is a setting in the Jbeam of trucks that allows you to set the spring and damping of all the beams or for different sections of beams... Back in Rigs of Rods this used to be referred to as the Set Beam Defaults section. I don't know what that section is called in Jbeam now, but I know something similar still exists. If this per beam sound feature was added into the game, you could technically set up beams as different material types and then set up sounds for those beam in the same line of code. Then, say if we were simulating a window, those beams broke they would have a glass shattering noise. Or if the beams were simulating wood then the more they deform, the more creaking and popping you would hear up until they finally broke, at which point you would hear a loud crunch............ and so on and so forth for many different kinds of materials. Or you could technically simulate squeaky suspension by just giving each shock its own sound file and just setting the sound to be played on a change in length (could get annoying though so might not want to do that one but you get the idea) I know it pretty much already dose most if not all of this but I just think its such a cool idea! I think your little creation is genius and should really be pursued!
Beam properties on BeamNG are set like this: Code: {"beamDeform":140000,"beamStrength":1000}, {"beamSpring":101000,"beamDamp":100}, I think its better than Rigs of Rods because it has an actual description
Ahh yes... on that from what you wrote I would have to agree... That's a lot better then just a bunch of numbers in a string... Anyways, you obviously get what I am on about XD
The devs said something about something about them doing some research on a new audio system. I hope they can incorporate something like this.
The implications this has is amazing! imagine tuned crash sounds from body beam collision or breakgroups! this is actually pretty epic. Did you use lua code to create this?