Transport Fever 2

Transport Fever 2

Departure Board
59 Comments
gameblogger Jun 24 @ 8:32am 
Any chance of integrating this with the Timetable mod to show scheduled and expected arrival time?
Master Trams Jun 14, 2024 @ 7:01am 
Is there a way to make this GUI window show only departures, or only arrivals, and for it to differentiate between?
NIGELBPOOL Apr 10, 2023 @ 12:13pm 
for some reason the mod is not showing any services does this mean i need to upgrade something/
FunGaming44 Mar 7, 2023 @ 12:00am 
Hope you can update it for the new March 2023 update which is currently in beta but releases in 2 days
jm764 Jan 20, 2023 @ 2:55am 
It seem's the latest TpF2 Beta version breaks this mod, so disable it for those who want to test their old saves until this is updated.
kryfield  [author] Aug 12, 2022 @ 5:07am 
No. This "Departure Board" is a moveable GUI text window on the screen. So the information for the selected station is visible wherever the camrea is looking.

There are other mods for a 3D model of a Departure Board attached to a platform or station:

Dynamic Departures / Arrivals Displays
https://steamcommunity.com/sharedfiles/filedetails/?id=2749557458

Dynamic Arrivals Board
https://steamcommunity.com/sharedfiles/filedetails/?id=2735568495
Viktor79 May 21, 2022 @ 7:26am 
Yes thank you
kryfield  [author] May 20, 2022 @ 12:55am 
v1.3 - Update for May 10 2022 version of Transport Fever 2.

1. When a vehicle is diverted to an alternate platform/terminal, show the new terminal number with a exclamation mark.

2. Fix crash due to API change: "util.CameraController:focus()" now needs an additional bool parameter.

khustbubel : Does this fix your problem?
Viktor79 May 10, 2022 @ 8:59am 
Mod stopped working, throws out when choosing a station
maxipaxi Apr 29, 2022 @ 5:48am 
Bei mir Stürtzt Das Spiel immer Ab
kryfield  [author] Feb 4, 2022 @ 6:16am 
inboxweb.net : Do you have any clues? Near the end of the latest crash_dump file (in userdata\<your steam ID>\1066780\local\crash_dump\ ) is there:

"Error message: error:"

which gives a program line number, error message, and a "stack traceback" ?

Do you mean that it works OK for one station, but then crashes when you change to another station?
kryfield  [author] Feb 4, 2022 @ 6:15am 
ETH: I don't know much about common-api. Can it do this? How exactly would it help?

Is it not simpler to make and edit the Line Data file using a text editor? Have you tried this, but have problems?

Is common-api still supported? I've read that it caused some problems.
inboxweb.net Feb 3, 2022 @ 7:26pm 
yep- My game crash when i change station:steambored::steambored::steamthumbsdown:
inboxweb.net Feb 3, 2022 @ 6:55pm 
When i change station my game freeze! Why?
Miikka Feb 3, 2022 @ 6:16am 
Would you consider to support common-api interface for enhanced destinations? Added you on steam, maybe we can write about that more easily.
kryfield  [author] Jan 23, 2022 @ 2:15am 
Version 1.2
Change the width of the Display Window by typing a numeric value and then ENTER in the new "Display Width" option in the Control Window.

The previous method of resizing the Display Window by dragging its edge caused problems for some users, with the window continually growing wider or narrower.
Kiyoshi Jan 22, 2022 @ 9:58am 
Same issue, i've got the new version and the window width still increases
kryfield  [author] Jan 22, 2022 @ 4:04am 
Here is a new version which I hope will fix the problem with the display window width continually changing.

Perhaps after the width is set using displayWindow:setSize(), then displayWindow:getContentRect() gives a different width value.
I've added a new variable (widthAdjust) to account for any difference.

You can see whether 'widthAdjust' has a non-zero value (whenever you select a station) by un-commenting the print statement at line 617 of res/config/game_script/DepartureBoardGui.lua. I've not seen the problem here and 'widthAdjust' is always zero. Perhaps it depends on the screen resolution?

Please tell me if this fixes the problem. If not, I'll need to add an option to specify the Display Window width numerically, rather then by dragging the side of the Display Window.
mkbeast5 Jan 19, 2022 @ 3:10pm 
I have tried the options you gave me. The first option "options.displayWindowWidth" didn't work. It immediately is infinitely wide (as before), but keeps the height when you adjust it. The other option obviously works i have set the number to 650 and if the names are not to long it works well. Thanks for the help!
mkbeast5 Jan 18, 2022 @ 9:55am 
I use windows 10, no MacOS. I will try to change the code in a few days and will come back to you if it worked. Thanks!
kryfield  [author] Jan 18, 2022 @ 4:53am 
merijn: OK. Tell me, and if the change to options.displayWindowWidth works, then I'll update the mod.

What OS do you use? Both RustyBucket and doug who reported this problem have profiles which include "Transport Fever 2 Mac/Vulkan Beta" group. Does this suggest that it occurs only on MacOS?
mkbeast5 Jan 18, 2022 @ 4:36am 
I'm experiencing the same issue where the departure board keeps getting wider. i will try to change the code as you have said, but just to let you know.
kryfield  [author] Jan 17, 2022 @ 1:54am 
Someone had a similar problem (doug, 25.Dec.2021) where the window grew wider. I've not seen it here (Windows10) and I don't see how it can happen. What operating system do you use?

The Departure Board display window is re-sized whenever the text changes, in order to adjust the height to the number of lines of text. It reads the current width and uses this when it sets the new size. So the width should stay the same.

This is at line 566 in \res\scripts\departure_board.lua
If anyone sees something wrong here, please tell me.

Try changing 'rect.w' in line 566 from:
displayWindow:setSize(api.gui.util.Size.new(rect.w, WINDOW_HEIGHT + nTextLines*17))
to:
displayWindow:setSize(api.gui.util.Size.new(options.displayWindowWidth, WINDOW_HEIGHT + nTextLines*17))

Does that make a difference? If not you could change it to:
displayWindow:setSize(api.gui.util.Size.new(450, WINDOW_HEIGHT + nTextLines*17))

which should fix the display window with at 450 (or whatever number you use).
RustyBucket Jan 16, 2022 @ 12:47pm 
I'm experiencing a weird issue where the departure board steadily decreases in width, thus making it quite unusable after about 10 departures, is this just my game being whack or could there be some weirdness in the code?
kryfield  [author] Jan 9, 2022 @ 7:45am 
If the Mod is enabled, it shows a button, ("Depart") on the taskbar at the bottom of the TF2 screen. Click on this "Depart" button to open the Departure Board Control Window, from which you can select a Station and other options. More information is in \docs\info in the Mod.

Wenn die Mod aktiviert ist, zeigt sie eine Schaltfläche ("Abfahrt") in der Taskleiste am unteren Rand des TF2-Bildschirms an. Klicken Sie auf diese Schaltfläche "Abfahrt", um das Kontrollfenster der Abfahrtstafel zu öffnen, in dem Sie eine Station und andere Optionen auswählen können. Weitere Informationen finden Sie in \docs\info in der Mod.
Tommy Jan 9, 2022 @ 6:13am 
ich suche das Menu auch obwohl ich es aboniert habe
gavt1976 Jan 9, 2022 @ 6:05am 
Yep same here i am having the same problem. Can you tell me which menu it shows it please.
trinithos Jan 9, 2022 @ 2:44am 
I activated but nothing happened. In which menu it shows?
pegramkevin23 Dec 29, 2021 @ 9:06pm 
No. The game was frozen from the start after loading. I can not click on anything. I can't do anything if they game is frozen, then crashes. By the way, yes there wasn't anything between Error Message, and File name. It is blank. Nothing there. What I showed you in one of my last comments, is exactly what the error message was showing on my screen.

Exception type: Lua exception

This error is usually caused by modding. Some game resources contain incorrect data.

Details:

Error message:

File name: D:/SteamLibrary/steamapps/workshop/content/1066780/2692112427/res/config/game_script/DepartureBoardGui.lua

Key: game/res/gameScript/DepartureBoardGui.lua_guiUpdate

Minidump: C:/ Program File (x86)/Steam/userdata/170578554/1066780/local/crash_dump/b9787831-bbf8-4c86-946f-039155cbc98b.dmp

Mod: "Departure Board" (*2692112427, 1) (consider removing this mod and contacting the mod author)

This is how error message was shown on my screen after the game had crashed.
kryfield  [author] Dec 29, 2021 @ 9:45am 
pegramkevin23: Does the game run OK for a while until you click on the "Depart" button at the bottom of the screen?

"No. There isn't anything between Error Message, and File name." OK, That makes the problem difficult to find.
youpi2971 Dec 29, 2021 @ 5:31am 
cool
pegramkevin23 Dec 29, 2021 @ 1:34am 
No. There isn't anything between Error Message, and File name. What I showed you is exactly how it popped up and how it was shown on my screen.

After the game was 100% loaded up.....it ended up frozen when I was trying to click on "Departure". Nothing was moving. Trains, cars, pedestrians, planes, etc. Nothing was moving til the game crashed and disappeared off my screen. That is when the error message I told you about pops up exactly how I showed you in my last comment.
kryfield  [author] Dec 28, 2021 @ 7:31pm 
pegramkevin23: Is there any text between the words "Error message:" and "File name:"?
That is the information which I need.

"Then the game seemed frozen". When does this occur? As soon as the game map appears? Or not until you click on the "Depart" button on the taskbar at the bottom of the screen? Or later when you change options or select a station in the Departure Board Control Window?

Does the error still occur is you set the Graphics Settings to "Low" before you load the game? (That should use less memory).

Does the error occur if you make a new game, without any mods, then save it, and then load it with just the Departure Board mod? Perhaps it is a combination with some other mod which causes this problem to appear. I want to find and fix this problem, but I need clues.
pegramkevin23 Dec 28, 2021 @ 5:41pm 
You lost me with the "version" topic, because I don't see any other mod with the same name anywhere in the workshop. This is the only one that pops up.
pegramkevin23 Dec 28, 2021 @ 5:35pm 
Well I don't know what you mean by version, because all I did was add this mod to a saved game as I've been saying already. Which is the only version I have subscribed to for the game. Then the game seemed frozen, because I could not click on anything at all. Then short after that..the game crashes and shows the following error message which pops up on my screen.....

Exception type: Lua exception

This error is usually caused by modding. Some game resources contain incorrect data.

Details:

Error message:

File name: D:/SteamLibrary/steamapps/workshop/content/1066780/2692112427/res/config/game_script/DepartureBoardGui.lua

Key: game/res/gameScript/DepartureBoardGui.lua_guiUpdate

Minidump: C:/ Program File (x86)/Steam/userdata/170578554/1066780/local/crash_dump/b9787831-bbf8-4c86-946f-039155cbc98b.dmp

Mod: "Departure Board" (*2692112427, 1) (consider removing this mod and contacting the mod author)

As I said before, the error message says to remove the mod, and contact the author.
Nicht Verbunden Dec 28, 2021 @ 3:19pm 
@kryfield Der Pin ist automatisch gesetzt. Wenn ich auf der Map umher spaziere dann verschwindet die Bahnhofstafel trotz des Pins und dann lässt es sich auch nicht mehr aufrufen. Auch wenn ich ein anderen Bahnhof auswähle mit dem 2. Fenster (Departure Board) . Ich verwende Windows 10. Ich werde die Mod morgen noch mal frisch installieren.
kryfield  [author] Dec 28, 2021 @ 9:22am 
pegramkevin23 : Still no clues.
There should be a "_stdout.txt" file in your folder
C:/ Program File (x86)/Steam/userdata/170578554/1066780/local/crash_dump/

At the end of this "_stdout.txt" file, there is usually information such as "stack traceback" which gives a line number, such as "/res/scripts/departure_board.lua(562)" or "/res/config/game_script/DepartureBoardGui.lua(757)". What are these line numbers?

Does the game fail to start, or does the game start and show the map, and then crash when you open the mod by clicking "Depart" on the TF2 taskbar? Or later when you click something else?

Nicht Verbunden : Meinten Sie "klicken, um eine Station auf der Karte auszuwählen" oder "wählen Sie eine Station aus dem Menü der Abfahrtstafel"?
kryfield  [author] Dec 28, 2021 @ 5:18am 
Nicht Verbunden: "If I select the train station or another train station, the window with the departures disappears."

Dies geschieht hier nicht. Also, was ist der Unterschied? Welches Betriebssystem verwenden Sie (Windows, MacOS?). Ich verwende Windows10. Die Schaltfläche "Pin" sollte automatisch gesetzt werden, wenn das Abfahrtsanzeigefenster geöffnet wird. Geschieht dies? Wenn nicht, tritt das Problem auf, wenn Sie den "Pin" setzen?
Nicht Verbunden Dec 28, 2021 @ 4:23am 
An sich ist es ja eine tolle Mod. Allerdings verschwindet oft das Fenster mit den Abfahrten der Züge. Wenn ich dann wiederum den Bahnhof oder einen anderen Bahnhof anwähle erscheint das Fenster mit den Abfahrten auch nicht mehr. Wäre schön wenn man das gefixt bekommt.
pegramkevin23 Dec 27, 2021 @ 11:29pm 
Well I don't know what other version the of this mod is out there, because I only got this one, and it only say the following information which is the only thing I see on my end....

Name of the mod : Departure Board

Posted : Dec 24 @ 5:54am

Updated : Dec 25 @ 6:10am

I don't see anywhere it would say what version this mod is, so I don't know what you mean by current version. I also wanted to say that the game crashes after loading this mod, so I am guessing the information you are asking for might be the following

Minidump: C:/ Program File (x86)/Steam/userdata/170578554/1066780/local/crash_dump/b9787831-bbf8-4c86-946f-039155cbc98b.dmp

I guess that is what you are asking for, because I have no clue what other version of this mod is out there besides the one I have. I also tried to unsubscribe and subscribe back again to see if that helps, but I still experience crashes again after adding this mod back on.
kryfield  [author] Dec 27, 2021 @ 3:47am 
pegramkevin23: Unfortunately, I can't do anything without more information.

Firstly, are you sure you've got the current version of the mod? I've had no reports of crashes since the update on 25.Dec 14:10 UTC (see comments below). Steam should update it automatically when you're logged in online, but to make sure, unsubscribe the mod and then subscribe again.

Does the game fail to start, or does the game start and then crash when you open the mod by clicking "Depart" on the TF2 taskbar? Or later?

When a crash occurs, the game will write a crash_dump text file into Steam\userdata\<your userId>\1066780\local\crash_dump
Is there useful information at the end of this file such as a "stack traceback" or a line number or variable name in a DepartureBoard file? for example:

stack traceback:
... 2692112427/res/scripts/departure_board.lua(562): displayDepartures
res/scripts/departure_board.lua(611): DoDepartures
res/config/game_script/DepartureBoardGui.lua(935): ?
pegramkevin23 Dec 26, 2021 @ 5:21pm 
I said the error message says to remove this mod. It also says to contact the author.
kryfield  [author] Dec 25, 2021 @ 9:55am 
pegramkevin23: It should be OK to add to a saved game. It's only a script mod, it doesn''t change any resources. What exactly does the error message say? Does it give any clue such as a line number or variable name?
pegramkevin23 Dec 25, 2021 @ 9:39am 
I've added this mod to a saved game, but I'm getting an error message where it tells me to remove this mod. What is that about? Am I not suppose to use it on a saved game? Should I be using it on a new game? What's with the error message which is causing the game to crash?
doug Dec 25, 2021 @ 8:00am 
I can certainly resize the window manually, but that does not change its behaviour - it keeps growing to the right. I've thrown in a couple of debugPrint statements to see if I can see what is causing this behaviour.
kryfield  [author] Dec 25, 2021 @ 7:33am 
doug: I see the Display Window extended to the far right of the screen. Can you drag the window to the left and then drag the right edge to make it smaller? If not, you could edit the value of the displayWindowWidth option in the ["DepartureBoardGui.lua"] section of the local/save/<game name>sav.lua file before running the game. The default value is 450. Or delete the whole ["DepartureBoardGui.lua"] section and the mod will use defaults.
kryfield  [author] Dec 25, 2021 @ 7:15am 
doug: Do you mean the Departure Display Window gets wider when the game is running, without any cause? I can't see how that could happen.

You can drag the right edge to adjust the width and it will remember the width in the game savefile. The only places where the mod changes the size of its Display Window is on startup (where it sets it from options.displayWindowWidth, from the .save.lua) and when the text is updated, where it gets the current width (displayWindow:getContentRect()) and then sets the window size with that same width and a height which depends on the number of text lines. There are no other places where displayWindow:setSize is used. Check that the two .lua files, res/config/game_script/DepartureBoardGui.lua and res/scripts/departure_loard.lua have the same Date Modified time.
doug Dec 25, 2021 @ 6:45am 
How do I prevent the station departure board window from continually getting wider?