block_state() not working correctly

Bug #1711344 reported by raster on 2017-08-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Undecided
Unassigned

Bug Description

The sigscr block_state function doesn't return BLOCK_JN_OBSTRUCTED value or returns it incorrectly.

r.roeterdink (r-roeterdink) wrote :

Please provide more details - situation, actual returned state etc.

raster (raster6569) wrote :

Function block_state() doesn't return a value block_jn_obstructed when next junction is switched on ex. ahead once we stand on the sidetrack. It makes junction ripped.

In MSTS this worked properly.

r.roeterdink (r-roeterdink) wrote :

If the switch ahead is set against the train and it is 'locked' by another train (path for other train is cleared over the switch or the train is occupying this switch), the state BLOCK_JN_OBSTRUCTED is returned as it should.
Are you changine the setting of the switch manually?
In what mode are you running (explorer, activity, timetable?)

I play in the explorer mode, but in MSTS this also worked.

I need this function for working derailer object - if switch is not
set to our direction, the derailer derails our train. In fact, this is
only visual effect, but it is.

And yes, I change the setting of the switch manually, because on many
siddings we have manual - operated swithes.

2017-10-16 18:14 GMT+02:00, r.roeterdink <email address hidden>:
> If the switch ahead is set against the train and it is 'locked' by another
> train (path for other train is cleared over the switch or the train is
> occupying this switch), the state BLOCK_JN_OBSTRUCTED is returned as it
> should.
> Are you changine the setting of the switch manually?
> In what mode are you running (explorer, activity, timetable?)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1711344
>
> Title:
> block_state() not working correctly
>
> Status in Open Rails:
> New
>
> Bug description:
> The sigscr block_state function doesn't return BLOCK_JN_OBSTRUCTED
> value or returns it incorrectly.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/or/+bug/1711344/+subscriptions
>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers