Transport Fever 2

Transport Fever 2

316 个评价
Enhanced Line Designators
4
13
   
奖励
收藏
已收藏
取消收藏
Misc: Script Mod
文件大小
发表于
更新日期
3.082 MB
2021 年 6 月 26 日 上午 6:18
2023 年 8 月 13 日 上午 3:49
17 项改动说明 ( 查看 )

订阅以下载
Enhanced Line Designators

描述
With this mod you can decide for each line individually which line designator shall be displayed at the destination signs of the vehicles. Additionally the destination signs will always show the first stop of the line (or - if you also use CommonAPI2 from transportfever.net - the configurable line destination).
Simply write your desired designator in brackets in the line name. For example: The line name 'Metrobus (M16) Central Station - Airport' gets visible as 'M16' on the vehicles. If you don't have brackets in your line name, no designator will show up, only the first stop.
This way you can keep a well structured line menu and also show your passengers a wider variety of line designators (alphanumeric instead of numbers only).
The mod affects both vanilla and mod vehicles of any type and can be activated or removed from your savegame at any time. Anyway it should appear *in the loading order after vehicle mods*! Information displays inside the vehicle, which show the next stop, will not be modified (as long as the script recognizes this properly).

If you never thought about more realistic line designators you probably don't need this mod - but if you did, have fun :)

In case you don't want the modifications on a certain vehicle, add the name of it's .mdl to the 'blacklist' in the mod.lua of this mod.

Update 1.9: Now any character exept '(' and ')' should be supported in the line designators and designators are now shown more reliable on almost all vehicles, including the Bombardier Talent2 / Talent3 by MaikC and BVG F92 by ERXC.
For vehicle modders: By default all labels with NEXT_STOP and LINE_NAME will be modified if they are located outside of the vehicle (calculated by using the boundingInfo with a small margin). If you don't want a certain label to be modified, simply add 'dontModify = true' to this label.
热门讨论 查看全部(1)
0
2022 年 2 月 15 日 上午 7:21
One or more pairs of brackets
lollus
149 条留言
lennardo_97  [作者] 11 月 30 日 上午 5:32 
@Mr. Suka_Blyat
Considering the old Trolley-Bus with the list of multiple destinations, I'm afraid the only ways to deal with that is currently to put either the bus on the exception list or put "dontModify=true" onto each label for the intermediate stops on this board.
I currently have no way to deal with this time of destination board the the mod script.

However, I will at least think about to come up with something like a "dontSplit" option. This would prevent the NEXT_STOP labels from being split into number and destination, but would still allow to use the automatics for the LINE_DESTINATION functionallity of CAPI2. Thanks for the idea.
lennardo_97  [作者] 11 月 30 日 上午 5:25 
@Mr. Suka_Blyat
At the top of the mdl file:

local destLabel = "NEXT_STOP"
if (commonapi ~= nil and commonapi.supports and commonapi.supports("LINE_DESTINATION")) then
destLabel = "LINE_DESTINATION"
end

At the respective label:
type = destLabel,
dontModify = true,
lennardo_97  [作者] 11 月 30 日 上午 5:23 
@Mr. Suka_Blyat thanks for the video, it really helps to understand.

First of all, about the bus with duplicated number label:
The mod script tries to identify first if two adjacent labels (one for the number, one for the destination) already exist before it decides to split the destination label in two parts (it works this way i.e. on the side of the vanilla eCitaro).
However, it has some difficulties to identify adjacent number labels, when the label orientation (values 1 to 12 in the transf) has significant differences or when the two labels are associated to different mesh nodes (childId). It will also not detect adjacent labels when the label origins have a distance of more than twice the width of the destination label.
So you currently have the following options (next comment):
Mr. Suka_Blyat 11 月 9 日 上午 6:31 
There is also a problem when a vehicle uses multiple lables as an "old style" destination board (refer to the video previously mentioned) and it becomes even more of a mess. Don't really know what to do with this one, in a perfect-world scenario it would be cool to have an editor for every label on the vehicle individually.
Mr. Suka_Blyat 11 月 9 日 上午 6:30 
Hey, so I found some probably unintentional shenanigans and it's quite annoying

Some vehichles use both "LINE_NAME" and "NEXT_STOP" at the same time. This mod basically turns any "LINE_NAME" label into a line number label that is put into the line name in the brackets (i.e. "10"), and "NEXT_STOP", which is either pre-defined by mod or set manually by the user via CAPI2 into destination AND line number. The thing is - some vehicles sometimes use both these labels on one surface, due to some shenanigans with how vanilla destination boards work, which essentially duplicates line numbers on the board (reference video if it's not clear what I mean)

It would be nice to have an function like "dontModify" to prevent the line number from being put on "NEXT_STOP" label or any other by that matter.
lennardo_97  [作者] 2024 年 11 月 16 日 上午 1:59 
You're welcome.
The two line feature is currently only available for the Mercedes Citaro C2 and another Mercedes Bus that came with a two line display on the basic model.
The top row shows the first whole word in front of the brackets in the line name in the top line.
The bottom line shows the line destination (first stop or what you put into the destination field when CommonAPI2 is active).
If your line name has no whole word in front of the brackets, the first line will be empty.
harry kane 2024 年 11 月 15 日 下午 1:34 
Thank you so much, just one last thing.
Theres absolutely no problem with this, but I noticed that in some buses, shows 2 lines instead of 1, Any way to change that?
Look at the fourth picture on this mod display, you can see that the top says Metrobus, while in the bottom it says something different.
How do I do that?
lennardo_97  [作者] 2024 年 11 月 15 日 上午 5:16 
@harry kane
Yes, now I understand. It is possible if you use the CommonAPI2 mod additionally, as this adds a free text field for each stop in the line manager that is shown on the vehicle. Note that you have to keep it up to date manually anytime the game gets an update. Information and download link can be found here: https://www.transportfever.net/thread/13025-commonapi2-neue-versionen-und-wichtige-informationen/?postID=426266#post426266
harry kane 2024 年 11 月 13 日 下午 1:13 
Lets say my bus is going from station A to station B, the bus panel, which is the destination display, will show the number of the line and the first station of the line (Station A)
And what im trying to do, is for it to show Station A - Station B.
More specific, lets say my bus first station is Gava terminal, and the last one is Arizona Terminal, the bus display will show the line number and the first station on the line (Gava Terminal), but in my case I want it to display Gava - Arizona.
Hope this time its clear.
lennardo_97  [作者] 2024 年 11 月 9 日 上午 10:54 
@harry kane
I think I still don't really get what you mean.
So let's say you have the bus line number 1 going to Marely Terminal, so what I would expect to see on the bus display is "1 Marely Terminal". For that case you would select Marely Terminal as the first stop and name your line "bus line (1)".
What do you like to have different from this example?