• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Sound "XML file" mod for Trains

dlawrence1950

Charter Member
I ran into a little situation when playing my MAW addon for CFS3. The deal was that there were certain addon Locomotives by Desert Rats that would not produce any train sound when flying close to them.

In the CFS3 stock version of the "XML Sound File' they had listed the three different Locomotives under the "AI" section of the sound file as 'a_locomotive' 'b_locomotive' and 'g_locomotive' which would generate the neccessary sound for each of these train engines., during any part of the game that a train would showup.

However: when I would be playing MAW certain nationality trains would not produce any locomotive sound when they showup. So I did a little investication and discovered that in the original sound file for MAW only had the same three original locomotives listed under the 'AI section' as either as 'a, b and g_locomotive'. So when a Locomotive listed as 'dr_g_locomotive_afr, dr_g_locomotive_na, dr_aus_locomotive' or any other country added into the game by the Desert Rats under their name. No sound would be produced for that paticular country locomotive.

So first thing I tried, was to list each and all of the DR addon locomotives with each of their names into the sound xml file. Which took alot of time and effort to test. Some worked some didn't.

Then I decided to try something that I hope that would cover them all without having to do each one seperately.

It did, I modified the sound XML file to cover all different countries train locomotives by adding this line to the file
under the AI section of the file.

<train>
<sound file="xlocomotive01.wav" MinDistance="250" MaxDistance="3500" Atten="4"/>
</train>

Then deleting all of the other ones that related to any other countries locomotive.

So far it has worked without any flaws or problems not only in the CFS3 stock version but also with my MAW addon.

If you know how to edit the game's 'XML' sound file with notepad then you can use any 'WAV' file that you like for the sound of a locomotive in your CFS3 game rather it be stock, modified or an addon version.

I hope a few fellow members will try this mod to verify my claim and then report back to let me know if it worked for you also.
 
I hadn't noticed no sounds from the extra trains. I've got a mission I built using the ITA locomotive, are you saying this loco doesn't have sound?
 
Reply to Vogelscheuche!

Yes as far as I can tell any other country locomotive that is not listed in the 'Sound XML file' will not produce any locomotive wav sound.

I went back and tested my theory again by reinstalling the three original CFS3 country locomotives 'A, B, and G' then uninstalled my mod, then made sure by having the all of three original countries locomotives of CFS3 not be able to spawn.

Then when I went on a Rail Traffic quick combat mission none of the trains that showed up would produced any locomotive engine sound even when I got within 20 meters of them.

Unless they are listed seperatedly in the games Sound File they will not make a sound what so ever only when they are blown up..

If any fellow member can prove me wrong about this then let me know.
 
Sound Advice

I have tested this process with success. You are a genius.

I flew a qc and a mission after the edit and lo' and behold it worked perfectly.

To simplify what you are conveying I have created these two screen shots.

The first shows in a red box what you are suggesting to be changed in the sounds.xml file.

The second shows in a green box what the edit should look like when done.

View attachment 10494View attachment 10495 "This bodes well for the Allies" -Thank You!
 
Back
Top