Soundscript in map not working in TS2010

Retro00064

New member
I have a soundscript container in my map's config.txt file to have the "ctry_day_1.wav" and "night_loop.wav" (cricket) ambient sound effects play on my route during the day and night respectively. This worked fine in TRS2004, but I can not seem to get it to work in Surveyor in TS2010.

Does anyone around here know why it is not working and how to get it to work?

Below is the soundscript container that is in my map's config.txt file. Is there something wrong with it that could cause it to not work?

Code:
soundscript
{
  morning
  {
    ambient                             1
    value-range                         1,0.1
    volume                              1
 
    sound
    {
      0                                 "ctry_day_1.wav"
    }
  }
 
  night
  {
    ambient                             1
    value-range                         0,0.9
    volume                              1
 
    sound
    {
      0                                 "night_loop.wav"
    }
  }
}

Thanks!

--Retro.
 
Last edited:
Yes Bob, that is the original format for the map soundscript, but if I use that format, CM shows the map as faulty with these errors:

Error: The tag 'ctry_day_1.wav' in container 'sound' is empty.
Error: The tag 'night_loop.wav' in container 'sound' is empty.

The TrainzDev Wiki says here that the recommended format for this is to list the files numerically, as I have done in the soundscript in my original post. Using that recommended format removes the errors but the sounds do not play in Surveyor.

Also, I saved my map last night, and now I checked its config.txt file and found that Trainz had removed the sounscript container entirely! :eek: The plot thickens.

Regards,

Retro.
 
If you find the sound script file, run it through a program called "audacity". Google it to get the free download. If the amplitude is "0" you probably won't hear it. Audacity allows you to increase or decrease the amplitude, test the results and save it. Just about anything you would want to do with a sound file.

tomurban
 
Tomurban:

Thanks for the suggestion. I will have to try that and see what happens. I can hear the cricket sound (night_loop.wav) when playing it with IrfanView, and it is the same sound that was working fine in TRS2004, but maybe TS2010 is just playing it at too low a volume. The fact that TS2010 is removing the soundscript container entirely from the map's config.txt file when I save the map in Surveyor is interesting, though. :eek:

Regards,

Retro.
 
I have only just now gotten around to installing the Audacity and trying out Tom's suggestion. :p

I opened the sound files in the latest beta version of Audacity and amplified them using the default values. This indeed made them louder. The modified ctry_day_1.wav file seemed to be corrupt, but that was okay as the cricket sound (night_loop.wav), the modified version of which did not seem to be corrupt, would likely be what would be noticeable in Trainz. Alas, I still can not hear the sound effects in the map in Surveyor. :(

I am now going to send a ticket to the Helpdesk about this.

Regards,

Retro.
 
I still have not received a reply to my Helpdesk ticket. :( Perhaps I should not have originally set the priority of the ticket to "Medium", although I have changed it to "High" since then after a while of waiting.

Any help with this problem would be much appreciated!

Regards,

Retro.
 
Back
Top