-
Posts
12 -
Joined
-
Last visited
Other groups
SimRail
Reputation
9 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
[EN] The first real version of the framework is now released and can be downloaded from GitHub (https://github.com/aptolil/ScenarioFramework). It is also published as an attachment here. The scenario is almost the same as before. Only small changes has been made, like a brake check has been added and one can select weather at scenario start. There is also a Polish version of the scenario and of the ReadMe file which describes how to use the framework. This is a small framework I have developed with the intention to make it simpler for any one to make their own scenarios in Simrail. (https://wiki.simrail.eu/). For a description of how to use the framework se the scenario readme file in `Scenarios/Scenario_1/ReadMe/en/README.md`. The scenario readme files can be viewed within Simrail but code examples seams to be formated incorrectly so it is better to open the file directly in an editor. [PL] Pierwsza, prawdziwa wersja frameworka jest już dostępna i można ją pobrać z GitHuba (https://github.com/aptolil/ScenarioFramework). Jest ona również opublikowana jako załącznik tutaj. Scenariusz jest prawie taki sam jak poprzednio. Wprowadzono jedynie drobne zmiany, takie jak dodanie kontroli hamulców i możliwość wyboru pogody na początku scenariusza. Dostępna jest również polska wersja scenariusza oraz plik ReadMe, który opisuje, jak korzystać z frameworka. To niewielki framework, który opracowałem z myślą o ułatwieniu każdemu tworzenia własnych scenariuszy w Simrail. (https://wiki.simrail.eu/). Opis korzystania z frameworka można znaleźć w pliku readme scenariuszy w `Scenarios/Scenario_1/ReadMe/pl/README.md`. Pliki readme scenariuszy można przeglądać w Simrail, ale przykłady kodu wydają się być niepoprawnie sformatowane, dlatego lepiej otworzyć plik bezpośrednio w edytorze. ScenarioFramework-0.1.0.zip
-
[EN] Thank you for the description of the Polish signaling system. As you already have noticed I have very little experience of it. 😉 I will post an update of the framework here with some new functionality, for instance the ability to select date, time and weather, select cargo types for the random train sets and the possibility to do brake checks and leak checks. There will also be a Polish version of the readme and lang files then. After that I will create a longer and more realistic scenario and post it in another thread. Thanks again for all your help. [PL] Dziękuję za opis polskiego systemu sygnalizacji. Jak już zauważyłeś, mam z nim bardzo małe doświadczenie. 😉 Opublikuję tutaj aktualizację frameworka z kilkoma nowymi funkcjami, na przykład możliwością wyboru daty, godziny i pogody, wyboru rodzaju ładunku dla losowych składów pociągów oraz możliwością przeprowadzania kontroli hamulców i szczelności. Będzie też polska wersja plików readme i językowych. Potem stworzę dłuższy i bardziej realistyczny scenariusz i opublikuję go w innym wątku. Jeszcze raz dziękuję za wszelką pomoc.
-
Thank you. I thought it had be clear what everything is used for if anyone should be able to use it and make their own scenarios. Regarding a Polish version. I can't read or speak a single word of Polish but if Google Translate is alright it would not be impossible for me to add it.
-
Hi everyone. I want to share my first ever made Simrail scenario. It is a short scenario, requiring the Cargo DLC, and it's main purpose is to show an example of how to use the scenario framework I have made. This is a short example scenario where you will be shunting in odd places and bot trains will come and go in a perhaps unrealistic way. The purpose of this scenario is not to be realistic. It is more an example of how one can use the Framework to create a scenario in a simplified way. This scenario starts in Lazy where you will be shunting to your carriages. As a first action, call the dispatcher who will create a route for you to the carriages. Call the dispatcher once more when you have coupled the locomotive to the carriages and you are ready to departure. From Lazy you will be driving to Dąbrowa Górnicza Ząbkowice where you will add a couple of more carriages to the once you already have. Call the dispatcher again when arriving at the red light at Dąbrowa Górnicza Ząbkowice. When at the station, make sure to stop at an appropriate distance from the shunting signals so that you new carriages and locomotive can fit and not extend past the signal. The new carriages can be seen to the right and there are usually three och four carriages. Call the dispatcher when you have decoupled from your old carriages and the again when you have coupled the new carriages to the old once and you are ready to departure. At Będzin you will park your carriages at a side track. Decouple the carriages from your locomotive and call the dispatcher, telling him/her that you are ready to drive to your final destination, Sosnowiec Glówny, where you will park the locomotive. To finish the scenario you have to park the locomotive 50 meters or less from the signal. Turn off the locomotive and exit through the door. In a couple of places you might not get a go signal and no response from the dispatcher. If this happens to you, try to drive slowly closer to the signal. It should the give you a go signal. You will find more information of how to use the framework in the scenario readme file. Any comments and/or suggestions of improvements are appreciated. Simrail-ny.zip
-
I have a scenario where I can choice start position from a drop down menu. If I spawn the player inside a train it works fine since the train position is defined by signal name with FindSignal("signal name"). But if i spawn the player outside I want to set, or teleport, player to a specific coordinate. I have tried the command SetPlayerPosition without success. One thing I don't understand is that SetPlayerPosition only takes parameters X and Y but the developer tool (F8) displays Camera Position with three values and I can't find a X and Y coordinate for player position. Has anyone used SetPlayerPosition command with success? If so how do you know what coordinates to use?
-
Calling lua function each 10 seconds
lars.oj.lindner replied to lars.oj.lindner's topic in General Discussion [Singleplayer]
I have tried that before with no success but when placing the function in EarlyScenarioStart it worked. Thankyou. -
How does the virtual dispatcher work?
lars.oj.lindner replied to lars.oj.lindner's topic in General Discussion [Singleplayer]
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. -
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
-
Stuck at signal LB_Tm305
lars.oj.lindner replied to lars.oj.lindner's topic in General Discussion [Singleplayer]
-
Stuck at signal LB_Tm305
lars.oj.lindner replied to lars.oj.lindner's topic in General Discussion [Singleplayer]
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. -
lars.oj.lindner changed their profile photo
-
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?