Jump to content

lars.oj.lindner

Member
  • Posts

    7
  • Joined

  • Last visited

Everything posted by lars.oj.lindner

  1. I have tried that before with no success but when placing the function in EarlyScenarioStart it worked. Thankyou.
  2. I have a lua function that I want to call each 10 seconds but I don’t now how to in simrail. the closet thing I hav come across is the PerformUpdate function but that does not fel right since it is called each frame. is there another way to accomplice this?
  3. In my case it seems to be a question of timing. From my previous log one can se that the overlaping routes have been set at the exact samt time. If I set one of them a couple of seconds after the other I obviously still get an error for one of them but when the route is clear and I try again with the failed route, it works. So it looks like the virtual dispatcher can be stuck in an unresolvable lock when calling VDSetRoute multiple times at the same time. I don't know if calling VDSetRoute a couple of seconds after one another is the correct solution or how many seconds is enough, but for me it's working right now and for now I'm happy with that.
  4. Hi, I´m creating av single player scenario where a bot train is driving from signal LB_R1 to LB_G2kps at the same time as the player train should move from LB_R3 to LB_H308. One of the routes will obviousle not be set since these route are overlaping. But I´m not able to set the failing route even after a while when the bot train is gone and the route should be clear. It looks like some thing with the virtual dispatcher has been locked. When using the developer menu (F8) there is no route from signal LB_R3 after that the bot train has left. The log file for the actions above can be seen below. I don't understand all of it, for instance what does "[SRK] Lazy - found route LB_R3 -> LB_H308 Shunting in reservation - fixing" mean? Does anyone have a clue of what is going on with the Virtual Dispatcher? Why can't I set the route LB_R3 -> LB_H308? [2025-12-09 20:27:39]: [SRK] Łazy - Route setting command: LB_R3 -> LB_H308 Shunting - initialization [2025-12-09 20:27:39]: [SRK] Łazy - Route setting command: LB_R1 -> LB_G2kps Substitute Signal - initialization [2025-12-09 20:27:39]: [SRK] Łazy l1_lb_iz1080 - Route reservation. False [2025-12-09 20:27:39]: [SRK] Łazy l1_lb_Iz1058 - Route reservation. False [2025-12-09 20:27:39]: [SRK] Łazy l1_lb_Iz1057 - Route reservation. False [2025-12-09 20:27:39]: [SRK] Łazy l1_lb_iz1056 - Mileage reservation. False [2025-12-09 20:27:39]: [SRK] Łazy - Unable to reserve a route for one of the elements [2025-12-09 20:27:39]: [SRK] Łazy - Cancelled creation of route LB_R3 -> LB_H308 Maneuverable [2025-12-09 20:27:39]: [SRK] Łazy - Route setting command: LB_R3 -> LB_H308 Maneuverable False [2025-12-09 20:27:39]: Error received for order 1 [2025-12-09 20:27:39]: Error for route LB_R3 -> LB_H308 [2025-12-09 20:27:48]: [SRK] Łazy - Command to set the route: LB_R1 -> LB_G2kps Subsidiary Signal True [2025-12-09 20:27:48]: [SRK] Łazy - Command to set the route: Subsidiary Signal Confirm LB_R1 -> LB_G2kps True [2025-12-09 20:27:48]: VD order 2 accepted. [2025-12-09 20:28:24]: Retrying order 1 [2025-12-09 20:28:24]: New order 3 From LB_R3 to LB_H308 type 1 [2025-12-09 20:28:24]: [SRK] Łazy - found route LB_R3 -> LB_H308 Shunting in reservation - fixing [2025-12-09 20:28:24]: Error received for order 3 [2025-12-09 20:28:24]: Error for route LB_R3 -> LB_H308 [2025-12-09 20:29:09]: Retrying order 3 [2025-12-09 20:29:09]: New order 4 From LB_R3 to LB_H308 type 1 [2025-12-09 20:29:09]: [SRK] Łazy - found route LB_R3 -> LB_H308 Shunting in reservation - fixing
  5. A track trigger like the one below fixed my problem. 😄
  6. 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.
  7. 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?
×
×
  • Create New...

Important Information

Terms of Use Privacy Policy