problem with xml

Got problems with Locomotion? Find assistance here!

Moderator: Locomotion Moderators

Post Reply
User avatar
norfolksouthern16
Engineer
Engineer
Posts: 119
Joined: 08 Mar 2020 00:27

problem with xml

Post by norfolksouthern16 »

im trying to make a sound file, I think everything is right, but I keep getting this error
Attachments
Capturee.PNG
Capturee.PNG (14.83 KiB) Viewed 1357 times
Nathan K5HL Hornsound - viewtopic.php?t=89919
Nathan K5LA Hornsoound - viewtopic.php?t=89925
Nathan P5 Hornsound viewtopic.php?t=91318
Leslie RS3L Hornsound - viewtopic.php?t=89940
User avatar
Walter1940
Tycoon
Tycoon
Posts: 983
Joined: 19 Mar 2007 01:30
Location: Munich, Germany
Contact:

Re: problem with xml

Post by Walter1940 »

You have a basic mistake in the XML. A sound has no cargo [0]. Could it be that you have changed the XML of a vehicle?
http://www.walter1940.de
Vehicles for Locomotion

Tutorials in english
- From MSTS to Locomotion ---> http://www.walter1940.de/tutorial/msts2loco/
- Wally ---> http://www.walter1940.de/tutorial/wally/
- xml-modding ---> http://www.walter1940.de/tutorial/xml-modding/
User avatar
norfolksouthern16
Engineer
Engineer
Posts: 119
Joined: 08 Mar 2020 00:27

Re: problem with xml

Post by norfolksouthern16 »

the error that I keep getting is from a new xml file that I made last night. I never changed the .xml file of anything.
Nathan K5HL Hornsound - viewtopic.php?t=89919
Nathan K5LA Hornsoound - viewtopic.php?t=89925
Nathan P5 Hornsound viewtopic.php?t=91318
Leslie RS3L Hornsound - viewtopic.php?t=89940
User avatar
Walter1940
Tycoon
Tycoon
Posts: 983
Joined: 19 Mar 2007 01:30
Location: Munich, Germany
Contact:

Re: problem with xml

Post by Walter1940 »

But it's simple. Take any existing sound and disassemble it into XML and Wave file. You can delete the wave file.
In the XML you change the name of the Wave file at the top of which it should access. Name at Glei. So XML and Wave. Usually a lot has to be coordinated with the values. If you are lucky, everything fits the first time. Then pull the XML over the LocoTool again and you have a snd___.dat file.
But don't be disappointed if it doesn't work the first time. I often need 1 - 2 hours to find the right values.
http://www.walter1940.de
Vehicles for Locomotion

Tutorials in english
- From MSTS to Locomotion ---> http://www.walter1940.de/tutorial/msts2loco/
- Wally ---> http://www.walter1940.de/tutorial/wally/
- xml-modding ---> http://www.walter1940.de/tutorial/xml-modding/
User avatar
norfolksouthern16
Engineer
Engineer
Posts: 119
Joined: 08 Mar 2020 00:27

Re: problem with xml

Post by norfolksouthern16 »

ok it worked and the sound plays correctly
Nathan K5HL Hornsound - viewtopic.php?t=89919
Nathan K5LA Hornsoound - viewtopic.php?t=89925
Nathan P5 Hornsound viewtopic.php?t=91318
Leslie RS3L Hornsound - viewtopic.php?t=89940
Post Reply

Return to “Locomotion Problems, FAQs and Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests