Page 1 of 1

Bell Trigger?

Unread postPosted: Tue Sep 29, 2015 4:36 pm
by tplowman91
Where are all the trigger codes located to set something like "DoesHornTriggerBell" etc?

I can't seem to find it, I've looked in many different files.

Re: Bell Trigger?

Unread postPosted: Wed Sep 30, 2015 12:05 am
by Scott
To make the horn trigger the bell it involves writing an engine script. I don't know much else about writing an engine script to help you more with that.

Re: Bell Trigger?

Unread postPosted: Wed Sep 30, 2015 6:57 am
by bnsfsubdivision
Scott wrote:To make the horn trigger the bell it involves writing an engine script. I don't know much else about writing an engine script to help you more with that.

Nope. Just a change in the mapper.

Re: Bell Trigger?

Unread postPosted: Wed Sep 30, 2015 4:17 pm
by tplowman91
bnsfsubdivision wrote:
Scott wrote:To make the horn trigger the bell it involves writing an engine script. I don't know much else about writing an engine script to help you more with that.

Nope. Just a change in the mapper.



Can you make it trigger Horn and Bell? Because I looked at the Empire builder P42 mapper for example, and space bar only triggers Horn... not bell, but the bell still does trigger with the horn.

Re: Bell Trigger?

Unread postPosted: Wed Sep 30, 2015 4:35 pm
by Scott
What do you mean by mapper?

Re: Bell Trigger?

Unread postPosted: Wed Sep 30, 2015 7:27 pm
by jalsina
InputMapper folder located with the folders of the particular diesel (RailVehicles)

Re: Bell Trigger?

Unread postPosted: Thu Oct 01, 2015 5:53 am
by bnsfsubdivision
Scott wrote:What do you mean by mapper?

A mapper is used to tell the game what control to change virtually when you physically hit a certain button on your keyboard. For instance: If you press the "B" key, then it tells the game to play the Bell but it's possible to edit the mapper and assign any control to any key.
tplowman91 wrote:
bnsfsubdivision wrote:
Scott wrote:To make the horn trigger the bell it involves writing an engine script. I don't know much else about writing an engine script to help you more with that.

Nope. Just a change in the mapper.



Can you make it trigger Horn and Bell? Because I looked at the Empire builder P42 mapper for example, and space bar only triggers Horn... not bell, but the bell still does trigger with the horn.

If that's the case, then it's indeed scripted but you still can make it work for any other engine/dlc.

Re: Bell Trigger?

Unread postPosted: Sun Jun 26, 2016 1:29 pm
by Acela2034
I was just looking through the mapper file for the PennCoal ES44 (Norfolk Southern) and I saw the keyboard assignments for each key, but nothing about the bell activating when the horn is sounded (and I know that the PennCoal ES44 and Dash 9 bells are activated when the horn is sounded). Is there somewhere else to look for it? (I'm hoping to modify all of my locomotives that don't have auto bell activation in game but have it in real life. It seems a lot more difficult than I anticipated !*hp*! )

Re: Bell Trigger?

Unread postPosted: Mon Jun 27, 2016 1:48 am
by bnsfsubdivision
Acela2034 wrote:I was just looking through the mapper file for the PennCoal ES44 (Norfolk Southern) and I saw the keyboard assignments for each key, but nothing about the bell activating when the horn is sounded (and I know that the PennCoal ES44 and Dash 9 bells are activated when the horn is sounded). Is there somewhere else to look for it? (I'm hoping to modify all of my locomotives that don't have auto bell activation in game but have it in real life. It seems a lot more difficult than I anticipated !*hp*! )

The bell on both loco's is activated through a script, but again, if you like to add it to any other engine, simply create a new mapper file for it and reference it in the engine.bin file.

Re: Bell Trigger?

Unread postPosted: Sun Jul 10, 2016 4:55 pm
by Acela2034
Sorry if this sounds like a hair-pulling question, but to create a new mapper file, should I create a new .bin file and keep some of the lines of code such as what I pasted below?

<?xml version="1.0" encoding="utf-8"?>
<cBlueprintLoader xmlns:d="http://www.kuju.com/TnT/2003/Delta" d:version="1.0">
<Blueprint>
<cInputMapperBlueprint>
<RemapperName d:type="cDeltaString">ES44mapper</RemapperName>
<Map>

Re: Bell Trigger?

Unread postPosted: Sun Jul 10, 2016 5:06 pm
by bnsfsubdivision
Acela2034 wrote:Sorry if this sounds like a hair-pulling question, but to create a new mapper file, should I create a new .bin file and keep some of the lines of code such as what I pasted below?

<?xml version="1.0" encoding="utf-8"?>
<cBlueprintLoader xmlns:d="http://www.kuju.com/TnT/2003/Delta" d:version="1.0">
<Blueprint>
<cInputMapperBlueprint>
<RemapperName d:type="cDeltaString">ES44mapper</RemapperName>
<Map>

You can use any existing mapper file and simply add a new control or create your own new mapper file but in this case to activate the bell it's not necessary.