Has anybody built a level crossing?

General discussion about Rail Simulator that doesn't really fit in to any specific category. A good place to start if you're not sure what category it should fit in to as well.

Moderator: Moderators

Locked
User avatar
Reppo
Established Forum Member
Posts: 308
Joined: Sun Oct 14, 2007 5:38 pm
Location: Santiago de Chile

Has anybody built a level crossing?

Post by Reppo »

Has anybody built a level crossing wich works when train pass?

If your answer is yes....How?

Thanks in advance. :wink:
Image
The man who doesn't follow his vocation betrays himself and condemns himself to unhappiness.
bgabika80
Getting the hang of things now
Posts: 11
Joined: Thu Oct 25, 2007 10:36 am

Re: Has anybody built a level crossing?

Post by bgabika80 »

My friends are building a semi-working Hungarian style level crossing. Why is semi-working?

Because the flashing lights are working when the train is approaching but the road traffic isn't stopping or rather the vehicles are disappearing when the road section is over near the level crossing.

We have define the flashing lights as two state signal with four links. Eighter state is white coloured flashing light and the other state is two flashing red light which is flashing separately when the train is approach.

The "signal" has four links. Two "approach" links and two "clear" links. The "approach" links are placing about 100-200 ( or optional ) metres from the level crossing. The "clear" links to be placing about 10 metres from crossing. These links are defined "one way" so when the train is arriving and passing on the "approach link" this is activating the red lights on the crossing signal. When the train is leaving the crossing and passing on the "clear" link this is deactivating the red lights and switching to white. When the train is passing the other "approach" link which have about 200 metres to crossing this is not re-activating the red lights because this is activating only when the train is approach the opposite direction.
User avatar
OliverNo11
Established Forum Member
Posts: 346
Joined: Fri Feb 08, 2008 11:34 pm
Location: Hpme...

Re: Has anybody built a level crossing?

Post by OliverNo11 »

Well you could make a signal, with the crossing gates acting as the blades. I'm not very knowledgeable in things like this but it works in theory.

Good luck
Ian
What the engines are doing:
on the line:All engines with No. 8 pulling the new express
in the shed:None
Oldpufferspotter
Well Established Forum Member
Posts: 887
Joined: Sun Oct 21, 2007 5:08 pm

Re: Has anybody built a level crossing?

Post by Oldpufferspotter »

Hi,
It is my experience that there is no working level crossing available in Rail Sim at the moment as a ready made object.
RSAdam did include it in his list on another thread, as one of those things asked for but which is 'already possible' in Rail Sim. As with the 'wait at' instruction that I myself enquired about, it is only possible by coding it or altering existing code yourself.
I would like to have a working level crossing myself, either lifting barriers or gated, but I'm not into delving into actual computer code, and I wait in hope that someone with the ability to do so will have a go at producing one for us and making it available as a download from this site.
Good luck to bgabika80 above and his friends. Even if the road traffic doesn't stop I would use their efforts on a no traffic road just for the pleasure of going by it on a driver train. Their efforts are appreciated.
regards from an Old Chap.
User avatar
OliverNo11
Established Forum Member
Posts: 346
Joined: Fri Feb 08, 2008 11:34 pm
Location: Hpme...

Re: Has anybody built a level crossing?

Post by OliverNo11 »

well thats where my Idea is good if you use a semaphore Sig for example it has two aspects the light and the blade. Now if you make a signal in the shape of a level crossing as the train passes the blade on the signal drops so the lifting barrier falls and you can have the lights flash then as it passes another signal the barriers could return to a clear position to let cars go through. As I said before it works at least in theory.
What the engines are doing:
on the line:All engines with No. 8 pulling the new express
in the shed:None
mbtech22
Established Forum Member
Posts: 311
Joined: Fri Jun 07, 2002 12:00 am

Re: Has anybody built a level crossing?

Post by mbtech22 »

OliverNo11 wrote:Well you could make a signal, with the crossing gates acting as the blades. I'm not very knowledgeable in things like this but it works in theory.

Good luck
Ian
I would concur with your basic premise that it should be possible to build a working level crossing. I would suggest that this may be able to be achieved by using the current German signal scripts to activate the crossing, UK Semaphore scripts as a basis for controlling the animation, to which will need to be added a heavy dose of re-writing to get it all to sequence properly. However, the main issue will be getting the road traffic to stop when the gates are closed. For which "bounding boxes" or their RS equivalent may be the answer, if applied to the gates.
For this project to progress significantly, within the community, we would need to know much more on how the road traffic operates and could be controlled.

Mark Brinton
User avatar
AndiS
Very Active Forum Member
Posts: 6207
Joined: Fri Sep 23, 2005 4:43 pm
Location: Jester's cell in ivory tower
Contact:

Re: Has anybody built a level crossing?

Post by AndiS »

Having a signal with four links is a good idea to reopen the gates as soon as the train passed. I assumed using two, but with four, you are more flexible and the script logic is a bit easier.

Using the "prepare for train" message which currently only the German signals send would be an option for cases where you want the gate to close as soon as the train enters the block. This would fit manually operated gates.

Regarding the road traffic, my crystal ball shows dark blue. First thing to fix would be the bug which causes adjoining segments of roads to have independent traffic, i.e, case vanishing and appearing at the joints. Once the fixed that, they will have to take care of junctions, where cars will crash (or rather merge into each other), unless there is some extra logic. Said extra logic must make care on one side slow down, causing queuing to take place (i.e., the distance between some of the cars on that road section will decrease), which takes the complexity up another level. Yes, I know that other programmes very well deal with this, I just say, this is another unfinished end of the software and I am confident that they will fix track AI before road AI.

Before road AI is not completely fixed, the issue of road traffic at crossings cannot be settled.

Therefore, I assume that Adam's "working level crossings are already possible or fixed in Mk2 or similar" exclusively refers to implementing gates as signals, and nothing else.
Locked

Return to “[RS] General RS Discussion”