route coding help

View previous topic View next topic Go down

route coding help

Post by mrknowitall on Tue Aug 23, 2011 6:33 pm

ive seen many a route with notifications coming up in the cabs of trains, is there a way of explaining this to me ? like the form of coding, and where abouts in the coding you tell the notification to come up ?
avatar
mrknowitall

Posts : 711
Join date : 2011-07-09
Age : 25

http://www.bve-terminus.org/pioneertrains/

Back to top Go down

Re: route coding help

Post by theflyingoreo on Tue Aug 23, 2011 6:41 pm

That must be the marker command.

Example

Code:
116628.marker cityrail_northern\Signs\Rhodes.png;25,

The numeric value means how many metres before or after it will be displayed.

E.g when the train reaches metre mark 116628, the graphic will show. When the train travels 25 metres and reaches 116653, the graphic will vanish.

theflyingoreo

Posts : 96
Join date : 2011-07-09
Location : Sydney Australia

http://www.facebook.com/sydneybve

Back to top Go down

Re: route coding help

Post by mrknowitall on Tue Aug 23, 2011 7:43 pm

and how do you posistion where it will be shown when in the cab?

I.E so moving it to a part of the cab which there is a screen ?
avatar
mrknowitall

Posts : 711
Join date : 2011-07-09
Age : 25

http://www.bve-terminus.org/pioneertrains/

Back to top Go down

Re: route coding help

Post by kwijiboenator on Tue Aug 23, 2011 8:24 pm

In RBF's description you'll see a number before the '.marker' command; this is the location on the route in metres - 0 being the start of the route.

Out of interest, what are you working on?
avatar
kwijiboenator

Posts : 170
Join date : 2011-07-14

Back to top Go down

Re: route coding help

Post by mrknowitall on Tue Aug 23, 2011 8:31 pm

me ? nothing, its actually all to do with a cab, but to get the screen to have the right notifications up on a set screen on a route thats all, because at high speeds normal signalling systems are removed completely and left with a marker of where it would be, with the "command" being in the cab to the set marker Wink
avatar
mrknowitall

Posts : 711
Join date : 2011-07-09
Age : 25

http://www.bve-terminus.org/pioneertrains/

Back to top Go down

Re: route coding help

Post by wheeltapper on Tue Aug 23, 2011 11:11 pm

Have a look at the original Ballyfeckin to Ballinamo route code for an example of how the .marker was used to show speed limit and staion stopping status on the screen in the cab. The message appears in that place on the screen as default.

wheeltapper

Posts : 72
Join date : 2011-07-12

Back to top Go down

Re: route coding help

Post by mrknowitall on Tue Aug 23, 2011 11:18 pm

but could it be moved?
avatar
mrknowitall

Posts : 711
Join date : 2011-07-09
Age : 25

http://www.bve-terminus.org/pioneertrains/

Back to top Go down

Re: route coding help

Post by velaro on Tue Aug 23, 2011 11:48 pm

It will appear at whatever track position you place it. For instance, if you put

1000, .marker 30.bmp; 200,

in the route file, the image will appear in the cab when the train reaches track position 800 and disappear again at 1000.
avatar
velaro

Posts : 23
Join date : 2011-08-02
Age : 41
Location : Reutlingen, Germany

Back to top Go down

Re: route coding help

Post by mrknowitall on Wed Aug 24, 2011 12:19 am

yes, but maybe i did not illustrate the purpose of my idea.

so lets say the markers placed in thr route, and then the image (for a computer screen) is then up in the "cab", could the image, thats in a default of top right of the cab, can this be moved to the screen posistion in the said cab?
avatar
mrknowitall

Posts : 711
Join date : 2011-07-09
Age : 25

http://www.bve-terminus.org/pioneertrains/

Back to top Go down

Re: route coding help

Post by velaro on Wed Aug 24, 2011 12:45 am

Oh, I see. Well, the image is always displayed in the upper right hand corner. I suppose you could make it bigger (though I am not sure what the feasible maximum is) and make parts of the right or top transparent (color RGB 64,64,64). But it always appears at a certain place in the window, not a specific place in the cab.
avatar
velaro

Posts : 23
Join date : 2011-08-02
Age : 41
Location : Reutlingen, Germany

Back to top Go down

Re: route coding help

Post by kwijiboenator on Wed Aug 24, 2011 3:00 am

I've already placed markers along High Speed 2 - as there are no landmarks or ATC on it yet - but even with them, it's good to know when to slow down.

Most high speed routes on BVE do this - with the exception being the JR East Tokaido Shinkansen, which has announcements - although if you're using the 0 Series Shinkansen, it will slow down according to the signaling used on the route.

If you're developing a train, I'd let the route developers worry about this issue - because it's really determined by the route, and there isn't really another way around it in terms of putting visuals onboard a train - outside of ATC signaling.

It might be worth you downloading some of the high speed trains already out there, and give the JR Central Tokaido Shinkansen a try, along with an E2 or E4 series, AGV - or any other ATC enabled high speed train, to get a better idea.

You'll not only need google translate, but you'll also need to check out the commands for ATC - I believe there is a guide on both Michelle's site, and on Anthony Bowden's Rail Sim Routes.

ATC really is wonderful to use - it slows down the train automatically - but keep an eye on the all of the lights towards the bottom right - when some of them start flashing, press the space bar as quickly as you can! If it does become activated and starts stopping your train, you can reset the system with CTRL + S.
avatar
kwijiboenator

Posts : 170
Join date : 2011-07-14

Back to top Go down

Re: route coding help

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum