Changing a Default Horn

Post your problems and installation issues here!

Changing a Default Horn

Unread postby Noel » Fri May 04, 2012 4:32 pm

Hey guys.
I am trying to figure out how to change the horn on a locomotive. It is on a different loco that I have installed. I have been searching the forums and the web and got nothing.
Please help. !*don-know!*
Noel
 
Posts: 1276
Joined: Sat Apr 21, 2012 10:02 am
Location: Planet Earth

Re: Changing a Default Horn

Unread postby NDORFN » Fri May 04, 2012 5:39 pm

There's a thread here somewhere, I'm sure of it. Do you have RWTools?
NDORFN
 
Posts: 1231
Joined: Mon Nov 28, 2011 8:12 pm
Location: Matamata, New Zealand

Re: Changing a Default Horn

Unread postby robbit » Fri May 04, 2012 5:42 pm

robbit
 
Posts: 839
Joined: Fri Jul 15, 2011 11:29 am
Location: Maine

Re: Changing a Default Horn

Unread postby Noel » Fri May 04, 2012 9:30 pm

I'm not downloading a custom horn, I'm trying to get it off of one engine and onto another. Sorry if that was unclear.
Noel
 
Posts: 1276
Joined: Sat Apr 21, 2012 10:02 am
Location: Planet Earth

Re: Changing a Default Horn

Unread postby NDORFN » Fri May 04, 2012 10:03 pm

You'll need to edit the engine.bin Have you got RWTools?
NDORFN
 
Posts: 1231
Joined: Mon Nov 28, 2011 8:12 pm
Location: Matamata, New Zealand

Re: Changing a Default Horn

Unread postby Noel » Sat May 05, 2012 7:08 am

I just got i. I'm ready.
Noel
 
Posts: 1276
Joined: Sat Apr 21, 2012 10:02 am
Location: Planet Earth

Re: Changing a Default Horn

Unread postby NDORFN » Sat May 05, 2012 7:40 pm

Ok I don't know how to put the script in this window to show you (a few people here do though maybe they could help) so I'll just describe it. Work through this step by step because you'll fall asleep if you try to read it in one hit...

Open RWTools and click 'Files' then 'Open Trainsimulator 2012 File' and find the engine.bin file which will be called the name of the loco .bin. For example the default black SD40-2 engine bin file is called sd40_2_black.bin.

You will find engine bin files by following the path

Assets - name of Provider - name of Product - Railvehicles - Diesel - name of loco - possbily a sub category - Engine and it'll be there next to the GeoPcDx file (which is the shape file). So to open the engine file of the default black SD40-2 you'd go...

Assets - Kuju - RailSimulatorUS - Railvehicles - Diesel - SD40-2 - Black - Engine - And there it is... sd40_2_black.bin

(I hope this doesn't come across condescendingly. I don't know what level of experience you have in this so I'll just assume you have none and be very simple and thorough)

Open up sd40_2_black.bin and you'll see that it's basically just a script (or whatever it's proper term is) that tells the game where all the various files for the loco are and in some cases how to use them. Scroll down a little and you'll see the second and third parts are telling it where to find the files for couplers. It looks like this...

<Provider d:type="cDeltaString">Kuju</Provider>
<Product d:type="cDeltaString">RailSimulatorUS</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">RailVehicles\Couplings\Buckeye\Type-E\buckeye_type_e_coupling.xml

See where it says Kuju and below it RailsimulatorUS? It's pretty self explanitory... It states who the provider is and what the product is called, then specifically what the file is and where it's found within the product folder. Pretty simple huh?

So to change horn sounds, or change alot of different things, you just have to change these fields to point to what you want to change to. So for the horn, the easiest way I've found is open the engine.bin file of the loco you want to change, open a second example of RWTools and open the engine.bin file of the loco you want to steal your new horn and scroll down to where the horn part is. (Let's say you want to put the horn from the Horseshoe Curve F7 into the default Black SD40-2) It will look like this...

<Provider d:type="cDeltaString">RSC</Provider>
<Product d:type="cDeltaString">HorseshoeCurve</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">Audio\RailVehicles\Diesel\F7\Cab\F7 Horn Sound.xml

By now you've probably figured it out. All you do is change "KUJU" to "RSC for the provider and change "RailSimulatorUS" to "HorseshoeCurve" and copy the "Audio\RailVehicles\Diesel\F7\Cab\F7 Horn Sound.xml" part over the top of "RailVehicles\Couplings\Buckeye\Type-E\buckeye_type_e_coupling.xml" Then click 'Files' and 'Save TrainSimulator 2012 File'. Done.

Most horns and/or sounds are transferable. I've only come across one loco that couldn't handle engine sounds from another engine but horns always work. If you stuff something up, take a look where the original engine.bin file is and you'll see the RWTools automatically makes a backup every time you edit a file so you can just restore one.

I hope this works for you. Actually I hope it just makes sense. I got hammered drunk last night and am so hungover I can barely remember how to think let alone type *!embar*!
NDORFN
 
Posts: 1231
Joined: Mon Nov 28, 2011 8:12 pm
Location: Matamata, New Zealand

Re: Changing a Default Horn

Unread postby Hawk » Sat May 05, 2012 7:57 pm

NDORFN wrote:Ok I don't know how to put the script in this window to show you (a few people here do though maybe they could help) so I'll just describe it.

I think what you're looking for is the Code BBCode.

code.jpg
You do not have the required permissions to view the files attached to this post.
Hawk
 

Re: Changing a Default Horn

Unread postby Noel » Sat May 05, 2012 10:23 pm

When I try to open the sd40_2_black.bin or any other bin file, it has an error saying
Code: Select all
Error: #75 The specified Path/file cannot be accessed or is invalid
Module: frmEditor
Procedure: Text1_Change
Noel
 
Posts: 1276
Joined: Sat Apr 21, 2012 10:02 am
Location: Planet Earth

Re: Changing a Default Horn

Unread postby NDORFN » Sat May 05, 2012 10:45 pm

Must be an issue with RWTools. Have you updated your installation of it?
NDORFN
 
Posts: 1231
Joined: Mon Nov 28, 2011 8:12 pm
Location: Matamata, New Zealand

Re: Changing a Default Horn

Unread postby NDORFN » Sun May 06, 2012 5:24 am

Apparently also you need to specify Trainsimulator20120 path in RWTools before you use it. I doubt it will make a difference but it's worth a crack. Open RWTools and chose 'Options' then 'TrainSimulator 2012 Path' and in the main folder of Railworks there's an .exe file called RailWorksProc2. Can someone correct me if I'm wrong here? !*don-know!*
NDORFN
 
Posts: 1231
Joined: Mon Nov 28, 2011 8:12 pm
Location: Matamata, New Zealand

Re: Changing a Default Horn

Unread postby Machinist » Sun May 06, 2012 8:30 am

The feature to specify the TS2012 Path is just to RW_Tools go straight to (user folder)\Steam\steamapps\commom\railworks, so you'll save clicks and time, nothing else. You can open and edit any bin/xml/proxy anywhere on computer.
First time you use RW_Tools usually is needed to let all files unprotected for edition, so go to: Option | Mark all RW files Read/Write, and see if this works.
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Changing a Default Horn

Unread postby Noel » Mon May 07, 2012 6:25 am

I try to do that and I get another error. And I had already patched it before all of this:
Code: Select all
Error: #75 Path/File Access Error
Module: frmEdit
Procedure: mnuReadWrite_click
Noel
 
Posts: 1276
Joined: Sat Apr 21, 2012 10:02 am
Location: Planet Earth

Re: Changing a Default Horn

Unread postby NDORFN » Mon May 07, 2012 4:27 pm

I think you should email RWTools. They're quick to respond. Last time I had a prob he got back to me about 2 hours later.
NDORFN
 
Posts: 1231
Joined: Mon Nov 28, 2011 8:12 pm
Location: Matamata, New Zealand

Re: Changing a Default Horn

Unread postby Noel » Tue May 08, 2012 7:10 pm

I got it fixed after redoing the patch again. Now I am going to do this.
Noel
 
Posts: 1276
Joined: Sat Apr 21, 2012 10:02 am
Location: Planet Earth


Return to Problems and Peculiarities

Who is online

Users browsing this forum: No registered users and 1 guest