lars.oj.lindner Posted 15 hours ago Posted 15 hours ago Hi I'm making a new single player scenario where I'm starting with some shunting movements. But when finished shunting at signal LB_Tm305 I can't move any further than to the end of the station platform, where there is no signal. From signal LB_Tm305, LUA Developer tool gives me some routing options. For example LB_Tm305 -> LB_M4kps (Maneuver) or LC_S4 -> LC_Tkps (Train). If I select route LB_Tm305 -> LB_M4kps signal LB_Tm305 turns white and I can drive past it but I can't go any further than to the end of the station plaform. If I select route LC_S4 -> LC_Tkps signal LB_Tm305 keeps the blue light on and will not let me pass. What am I missing here? Has this some thing to do with changing train state from Maneuvering to driving and if so, how can I do that? How can I set a route from signal LB_Tm305 to main signal LC_S4?
jeroezie Posted 10 hours ago Posted 10 hours ago You are trying to set signals in an odd area. Tracks 4 and 6 from Lazy LC to Lazy LB are only fitted with an interlocking for eunning trains from Lazy LC towards LB and not the other way around. However, Lazy LC does have normaal signals fitted for an train travveling aginst the interlocking direction. Those are the probaly the LC_S4 routes showing up in het dev menu. It migt be that setting up a shunting route does not work, they are not (yet) implemented everywhere. Keep in mind, that the half circle white shunt limit sings cound as a signal at danger for any shunting movement. To my knoledge, it is not possible to let an shunting movement oass a shibt limit sing. If any other signal (train and shunt) you can use the AllowPassingStopSignal(signalName, check_func) function to let the player pass it, after setting all infrastructure yourself.
lewnemejski Posted 5 hours ago Posted 5 hours ago LC_S4 -> LC_Tkps is not a route from LB_Tm305. Game developer menu will always show you more routes because it detects signals past the one you are standing at. Only possible shunting routes from LB_Tm305. Third one lead to dead end track behind signalbox. Other ones end here: Both tracks have W5 sign which is station shunting limit. Currently no option to go pass those signs. However you can change train state to driving using this code: PlayerTrainset.SetState(DynamicState.dsAccCoast, TrainsetState.tsTrain, false) Remember to change "PlayerTrainset" to your trainset reference.
lars.oj.lindner Posted 4 hours ago Author Posted 4 hours ago Thank you both for your answers. I might be shunting in an odd area but there are so many tracks without power lines and tracks with power lines available for shunting are so limited. I have very little knowledge about interlocking directions but that is something I have to learn more about. I wasn't aware of the W5 sign, but then it makes sense that I can't drive past the station platform :-) To shunt from LB_Tm305 and then switch train state to driving is just what I want to do so I will try to use the SetState method, perhaps called from a track trigger at the station platform, to make a smoth transfer from Maneuvering to Driving state. I will report back on that. Once again thank you.
Recommended Posts