wiggersjoelt wrote: ↑Thu Jan 11, 2024 1:13 am
Okay, I've been fighting with trying to change the sound on this blower and I'm just not having any luck. I will tell you the steps I performed so you get an idea of how I tried to change the sound on this blower. I downloaded a video from Youtube of a forage blower running and then I extracted the audio from it. Then I converted it to an ogg file and saved it as silageblower.ogg. Then I copied the file "silageblower.ogg" into the root folder of the "FS22_JohnDeere65" mod folder. Now I'm struggling to figure out how to reference this sound file from within the "Deere65.xml" file. As you pointed out "DirectCedar," the original "Deere65.xml" references a template called "augerBelt" for the sound. What does it mean by "template?" How do I direct the xml file to the silageblower.ogg file? Do I need to make some sort of template first or edit a template somewhere? Here is the line of code that I'm talking about "<dischargeStateSound template="augerBelt" pitchScale="0.65" volumeScale="1.1" fadeIn="0.5" fadeOut="2.7" />" Do I need to change the word template to filename instead?
Any help would be so much appreciated?
Thanks,
Joel W
First question - do you know that in order to edit a mod, you must unzip the mod, make the changes to the folders or files, and then rezip the mod back to its original filename, and replace the original mod with the edited mod? You cannot make changes to a mod without unzipping it, and you cannot use it in its edited form without re-zipping it. Just making sure about this.
I *think* what you need to do is (Unfortunately I have not done this on 22, but I have done it on 17 and 19, and the code looks very similar to me):
-make a backup copy of the unedited mod somewhere for safekeeping
-unzip the mod to a temp folder on your desktop, or wherever
-add a folder called sounds to the top level of the unzipped mod files. Create it at the same level where you see the .xml file that will be edited.
-put your new sound file in that newly-created folder - assume the new sound file is called silageblower.ogg as you have indicated.
-open the .xml in notepad
-find the line of code you describe above: "<dischargeStateSound template="augerBelt" pitchScale="0.65" volumeScale="1.1" fadeIn="0.5" fadeOut="2.7" />"
-edit this line to call the new sound file from your new folder. Use the format of the example code I pasted above from a different mod where I did what you are trying to do. This will specify the new path to this sound's location. I believe your edited code should read:
"<dischargeStateSound file="sounds/silageblower.ogg" pitchScale="0.65" volumeScale="1.1" fadeIn="0.5" fadeOut="2.7" />"
-save the edited xml in notepad and close it
-re-zip all the mod files in the same order and structure that they were in the original mod, using the same filename as the original mod
-put the edited mod in your mods folder. File Explorer should ask you if you want to replace the existing file, because it will have the identical name.
-start the game and test it
-you might need to edit the pitch, volume, fadeIn, or fadeOut values to make it sound how you like, since you're working with a brand new sound that hasn't been configured yet to fit nicely in the game
Best of luck.