Transport Fever 2

Transport Fever 2

Priority signals for tracks
51 条留言
lollus  [作者] 4 月 25 日 上午 3:59 
I don't understand, sorry.
joshwiz23 4 月 3 日 上午 8:46 
I like the passin segment. I thought thats what ordinary signals are supposed to do? but when i tried with ordinary signmals the game just ignores and the signla is green then 2 trains get stuck on the one way track. even right in front of this station when the train is stopped there or on its way to the station. elsewhere it can work so idk the issue.
What is the difference with priority signals i dont get it? thx
lollus  [作者] 1 月 10 日 上午 6:51 
You decide which tracks get priority and which do not, the signals do not look at train speed. I use "fast train" as short for "train transiting along a track with priority signals".
Old Knotty 2024 年 12 月 19 日 上午 6:46 
This looks interesting, thank you for developing the mod. Before I try it out, what constitutes a faster or a slower train? For freight trains, I usually try to make them all have close to the same weight and power. This helps them fit behind one another in each block between signals, making the most of busy tracks. How, then, would the priority signal decide which train to let through first?
Brummbær 2024 年 11 月 2 日 上午 8:53 
This is probably the one feature I was missing in game right from the beginning. It's frustrating, when your highspeed trains stop, because a slow cargo train just got to it's signal a bit faster. Would be even better if we could designate trains as priority, but this mod solves the problem almost as well. Good job =)
Jean-Luc Picard 2024 年 10 月 9 日 上午 5:57 
I tried again yesterday with the old version of Transport Fever 2 (pre autumn patch) and it seems to work just fine. I would be very grateful if you can take a look again and update to the current version, I guess the new autumn version with three way switches broke your script!
lollus  [作者] 2024 年 10 月 7 日 上午 4:08 
Stations end the route calculations, ie priority a signal before a station will not affect what happens after the station.
Jean-Luc Picard 2024 年 10 月 6 日 上午 9:33 
Does the routing stop at stations completely are does it consider passing tracks for faster lines built into the station?
lollus  [作者] 2024 年 7 月 10 日 上午 8:18 
You may have a concurrent mod, or an error in the layout. If it worked before, it is weird that it fails now, after no changes whatsoever.
You may have a new mod that hogs gameScript.update(), maybe the minimap?
† Young Gun Tenne † 2024 年 7 月 9 日 上午 3:42 
Ergänzen sollte ich noch, dass die untergeordneten Fahrten mitten auf der Weiche stehen bleiben, sie fahren dann nicht mal komplett vorbei
† Young Gun Tenne † 2024 年 7 月 9 日 上午 3:41 
Aktuell fahren die Züge an den "normalen Signalen" einfach in den Fahrtweg der Prioritäts Fahrt und blockieren so den Zug. Muss dann die untergeordneten Fahrten erst zurück fahren lassen. So ist das blöd. Ich habe vor einigen Wochen die Strecke noch ohne Probleme betrieben, es sind keine Mods oder etwas neues dazu gekommen. Was kann ich tun?
Canadian_67 2024 年 1 月 10 日 下午 3:47 
Finally!
gohkenytp 2024 年 1 月 7 日 下午 4:47 
Would've been fun if there were also Priority signs for motor vehicles
lollus  [作者] 2023 年 11 月 16 日 上午 3:19 
You can use invisible priority signals and decorate them with functionless signals from your mod.
MaxCheng95 2023 年 11 月 15 日 上午 4:43 
Hi there! Is there any future plans to have varients of signal models from other mods or how can one create a priority signal with other signal modals?
lollus  [作者] 2023 年 9 月 9 日 上午 7:45 
This is more or less how it works.
meki98 2023 年 9 月 8 日 下午 6:19 
is it possible to have master and slave signals ?
basically the master controls the mainline
and the slave signals wait for the green from the master before giving green to the sidings
Benjamin Crewz 2023 年 8 月 19 日 上午 8:23 
Would be a perfect mod if there was a togglable option for all train signals instead of another signal. :O
lollus  [作者] 2023 年 6 月 26 日 上午 1:29 
Was hast du gemacht? Was passiert? Was denkst du, dass stattdessen passieren sollte?
mallard4468 2023 年 6 月 25 日 上午 6:04 
Kann es sein, dass sich Züge selbstständig auf "Angehalten" stellen, wenn sie an Prioritätssignalabschnitten angehalten werden?
Aegyssus 2023 年 6 月 23 日 上午 11:07 
YES
I knew I was missing something and just now found your mod !!!
Awesome
lollus  [作者] 2023 年 5 月 12 日 上午 6:48 
Du hast wahrscheinlich eine andere Mod, die Scheisse baut; oder du hast nicht die letzte Version von dieser Mod. Auf jedem Fall, mit Fehlermeldungen ohne vernünftige Problembeschreibungen kann ich nichts anfangen.
Segrob 2023 年 5 月 12 日 上午 4:18 
wenn ich die signal leiste öfne stürst mir transport fiver ab!
lollus  [作者] 2023 年 5 月 11 日 上午 3:00 
No I cannot, the game does a lot of magic with signals. However, you can use the invisible version and plop down an asset that looks like a signal, so you have form and function.
tsilaicosneknurd 2023 年 5 月 11 日 上午 12:31 
I like that mod a lot.
But could it be possible to just add a checkbox to existing signals, that makes it a priority signal? that way favorised/national variants could be used.
lollus  [作者] 2023 年 4 月 12 日 上午 7:43 
I might add an invisible version. In the meantime, let me know if this thing works well and if it slows down the game.
stein 2023 年 4 月 11 日 上午 11:53 
Invisible version would be perfect!
sgyxu 2023 年 4 月 11 日 上午 9:10 
Hi, this mod is a brilliant work, but I wish if you could update a invisible version of priority signal to fit with other style of signal instead of vanilla. That's will be perfect mod, many thanks.
melectro 2023 年 4 月 4 日 下午 7:52 
I placed the signal at the problematic section and here is the result: It is working without any lagging! :steamthumbsup:

Thank you!
lollus  [作者] 2023 年 4 月 4 日 上午 3:57 
I posted a couple of small updates for this and for the automatic displays: install them first.
If the lag is solved, OK.

Otherwise, read on and help me guess.
lollus  [作者] 2023 年 4 月 4 日 上午 1:34 
Go to the second intersection (the lagging one).
Go to the priority signal.
Following the white arrow (open the rail construction menu to bring it up), find the first place where two or more tracks cross.
From the cross, follow every stretch of track and make sure there is a signal (or a station) close by, just outside the intersection; it does not matter if it points towards the cross or the other way, or if it has priority, as long as there is one. If you find other crosses or switches in the process, follow all branches linked to them and make sure there is a signal (or a station) on each.
-> Does it still lag?

-> In any case, can you remake this layout without any other mods and post the savegame on swisstransfer or wetransfer? Chances are, the mod cannot resolve the intersection quickly enough and it needs a bit more slicing, and a (small) savegame will help me repro the lag.
melectro 2023 年 4 月 3 日 下午 7:12 
Adding info

Today I tested the mod by placing the first and only signal on a different section. Here it works without any lagging:
https://steamuserimages-a.akamaihd.net/ugc/2030601140709593083/2E36BCBA23D97AA319843CDE6375753A72601AA2/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false

but at the intersection where it is really needed it doesn't. Lagging occur directly when signal is placed shown in the image. When the signal is removed the game is running as normal.
https://steamuserimages-a.akamaihd.net/ugc/2030601140709593274/276D43F0C7762EA1D08F96E52DE04256A0C44B22/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false

I hope I can help you find the cause because your mod idea is really good!
lollus  [作者] 2023 年 4 月 3 日 上午 5:00 
I don't use that toxic forum, but thanks.
melectro 2023 年 4 月 2 日 下午 7:21 
Timetable, yes
advanced statistics, yes
Common API, yes
Natural Environment Professional yes
rail and track industry mod, yes
active mods 213
road waypoints about 55
railrod signals about 350
If you like to investigate details: I have sent the log file and the ".sav.lua " .file to you in the tpf.net forum
lollus  [作者] 2023 年 4 月 2 日 下午 4:24 
What mods have you got that perform operations at every tick? Timetables? Advanced something? Digital displays? How many track signals, track waypoints, road waypoints and streetside stations have you got, in total?
melectro 2023 年 4 月 1 日 下午 8:02 
Really nice idea! I can also confirm the lagging and changing the numCoroutineResumesPerTick to 1 makes it better, but it doesn't solve the lagging.

I would also benefit from an api that can set both railway and street signals to red. The ultimate solution would be that even ships could be stopped with signals.
lollus  [作者] 2023 年 3 月 30 日 下午 3:16 
I just released an experimental version with coroutines. They might work faster on weaker processors or very packed games.
If it's still too slow, set numCoroutineResumesPerTick to 3 or 2 or 1 and see if it gets better.
Marco aus Berlin 2023 年 3 月 30 日 上午 8:46 
I was waiting for such a mod for a long time, but after placing the first priority signal, my game started to lag extremely - up to 5 seconds every 10 seconds or so. I still had 40 to 60 fps, but the game was not playable anymore.

I tried it several times with priority signals at different locations on the map, but my game started to lag instantly every time.
lollus  [作者] 2023 年 3 月 29 日 上午 8:36 
If you want to make priority signals look different, you can try and make a mod for this mod as I explained below to themeatballhero.
Elje0ett 2023 年 3 月 29 日 上午 7:55 
But is there some way of having a priority signal but its also a signal from a mod or would you have to make this into a script mod then?
themeatballhero 2023 年 3 月 29 日 上午 5:59 
yes, thats what i figured, just wasn't sure how tied to the mdl the mod was (havent been able to take a look at the code)

ModelCitizen may be interested in this!
lollus  [作者] 2023 年 3 月 29 日 上午 5:31 
I believe you can write a "mod to a mod" that overwrites the /railroad/lollo_priority_signals/*.mdl files, and load it after this.
themeatballhero 2023 年 3 月 29 日 上午 5:15 
very cool. how easy is it to replace the mdl for another mesh, to add more signals to this?
coenvijge 2023 年 3 月 29 日 上午 3:36 
Thanks for this GREAT mod. At least my mainline get's what it's entitled to: Priority over the branches and industrial sidings! (Could well be that this mod wil be one of the most used mods).

____________:loco::carriage::carriage::carriage::carriage::chooo::steamthumbsup::steamthumbsup::steamthumbsup:____________
Adam.. 2023 年 3 月 29 日 上午 2:26 
THANKYOU
EoF 2023 年 3 月 28 日 上午 11:43 
This way I wonder if it would conflict with the timetable mod. Definitely would be very helpful if this came out pre-timetable
mongolteiko 2023 年 3 月 28 日 上午 11:25 
That last picture looks like they both got green and passed the signal....crash! lol
lollus  [作者] 2023 年 3 月 28 日 上午 5:15 
@Blast yes it does, hopefully
@EoF no, I crudely stop the trains. An API to turn signals red would help, but there isn't one for now.
Blast Hardcheese 2023 年 3 月 28 日 上午 2:27 
This looks like it will work perfectly for two lines on separate tracks merging into one track where there is need for priority of one of the lines.
EoF 2023 年 3 月 28 日 上午 1:19 
How does this function? Does the game allow signal/block programming now?