Transport Fever 2

Transport Fever 2

Timetables 1.3
Gregory365  [dezvoltator] 19 mart. 2023 la 3:19
Vehicles sometimes wait too long
There are some reports that vehicles wait past their allocated departure time. This discussion is to post further details so I can replicate and find the cause.
Editat ultima dată de Gregory365; 19 mart. 2023 la 3:24
< >
Se afișează 1-13 din 13 comentarii
sland2000 19 mart. 2023 la 12:09 
So I'm still having a problem with stationery trains although not on all timetabled lines. If I unclick the timetable they do move. However if I click the max waiting time option (for greater than the layover time) I can get all timetables to work. Still a great mod.
lars25 19 mart. 2023 la 12:34 
Wenn ich den Zügen eine manuelle Taktung (zum Beispiel 5 alle 5 Min) gebe, funktioniert alles. Wenn ich jetzt allerdings einen manuellen Fahrplan mit exakten Abfahrtszeiten einstelle, bleibt der Zug auf ewig stehen...
Gregory365  [dezvoltator] 20 mart. 2023 la 9:30 
Postat inițial de lars25:
Wenn ich den Zügen eine manuelle Taktung (zum Beispiel 5 alle 5 Min) gebe, funktioniert alles. Wenn ich jetzt allerdings einen manuellen Fahrplan mit exakten Abfahrtszeiten einstelle, bleibt der Zug auf ewig stehen...

I have updated the mod, reply if you are still getting this issue.
lonnevik 20 mart. 2023 la 14:11 
I still have that issue. I have gathered too few observations at this point but it may be connected to arriving after the set arrival time. I also experience the problem with two subsequent vehicles using the same slot, as in the former version of the mod.
Gregory365  [dezvoltator] 20 mart. 2023 la 14:16 
Postat inițial de lonnevik:
I also experience the problem with two subsequent vehicles using the same slot

Yeah, I suspected this issue might emerge. I'll add it to the log. I can reproduce this issue fine.



With the other vehicles waiting too long issues, see if you can recreate with a tiny map and no other mods and upload the save file. Or, provide the timetable and arrival time.
lonnevik 21 mart. 2023 la 3:02 
@Gregory365 Sure, I'd like to help. I'll create a small map as you suggest.
lonnevik 21 mart. 2023 la 6:06 
I made a small map to test the mod out. The issues didn't occur.

In my large map where the problems persist, the station where trains are stuck all have one minute scheduled waiting time. A train arrived 22:05 (scheduled 22:00) with departure time 23:00. Then nothing happened.

On the train using the same slot as the train ahead, the passenger are taken as hostage. No one is allowed to exit at the stations, and they are frightened! They just make a short stop. Some passenger may get on, and then they just drive.
Gregory365  [dezvoltator] 21 mart. 2023 la 7:33 
Postat inițial de lonnevik:
I made a small map to test the mod out. The issues didn't occur.

In my large map where the problems persist, the station where trains are stuck all have one minute scheduled waiting time. A train arrived 22:05 (scheduled 22:00) with departure time 23:00. Then nothing happened.

On the train using the same slot as the train ahead, the passenger are taken as hostage. No one is allowed to exit at the stations, and they are frightened! They just make a short stop. Some passenger may get on, and then they just drive.

Hmm. I don't think holding passengers hostage is a good business model!
You could try adding a minimum wait time to the stations for now, I don't know what is causing that at the moment.

Could you upload just the sav.lua file for the large map (only the timetable.gui section if you don't want to post the whole thing)?
lonnevik 21 mart. 2023 la 11:30 
@Gregory365 here we go:

["timetable_gui.lua"] = {
timetable = {
[28089] = {
frequency = 344.10004502577,
hasTimetable = false,
stations = {
{
conditions = {
None = { },
type = "None",
},
inboundTime = 0,
stationID = 59173,
},
},
},
[48104] = {
frequency = 132.11851345454,
hasTimetable = true,
stations = {
{
conditions = {
None = { },
debounce = { 2, 0, },
type = "debounce",
},
inboundTime = 0,
stationID = 81282,
},
{
conditions = {
None = { },
type = "None",
},
inboundTime = 0,
stationID = 79473,
},
[4] = {
conditions = {
None = { },
debounce = { 2, 0, },
type = "debounce",
},
inboundTime = 0,
stationID = 79440,
},
[5] = {
conditions = {
None = { },
type = "None",
},
inboundTime = 0,
stationID = 48805,
},
[6] = {
conditions = {
None = { },
debounce = { 2, 0, },
type = "debounce",
},
inboundTime = 0,
stationID = 79440,
},
[7] = {
conditions = {
None = { },
type = "None",
},
inboundTime = 0,
stationID = 48577,
},
},
},
[61269] = {
frequency = 876.12083297593,
hasTimetable = true,
stations = {
{
conditions = {
ArrDep = {
{ 9, 0, 12, 0, },
{ 21, 0, 24, 0, },
{ 33, 0, 36, 0, },
{ 45, 0, 48, 0, },
{ 57, 0, 0, 0, },
},
type = "ArrDep",
},
stationID = 67052,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 0, 0, 7, 0, },
{ 14, 0, 19, 0, },
{ 26, 0, 31, 0, },
{ 38, 0, 43, 0, },
{ 50, 0, 54, 0, },
},
type = "ArrDep",
},
stationID = 59896,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 10, 0, 11, 0, },
{ 22, 0, 23, 0, },
{ 34, 0, 35, 0, },
{ 46, 0, 47, 0, },
{ 58, 0, 59, 0, },
},
type = "ArrDep",
},
stationID = 59459,
vehiclesWaiting = {
[52642] = { 58, 0, 59, 0, },
[69010] = { 46, 0, 47, 0, },
},
},
{
conditions = {
ArrDep = {
{ 3, 0, 4, 0, },
{ 15, 0, 16, 0, },
{ 27, 0, 28, 0, },
{ 39, 0, 40, 0, },
{ 51, 0, 52, 0, },
},
type = "ArrDep",
},
stationID = 52870,
vehiclesWaiting = {
[52642] = { 27, 0, 28, 0, },
[66876] = { 39, 0, 40, 0, },
[69010] = { 3, 0, 4, 0, },
},
},
{
conditions = {
ArrDep = {
{ 0, 0, 58, 0, },
{ 9, 0, 10, 0, },
{ 21, 0, 22, 0, },
{ 33, 0, 34, 0, },
{ 45, 0, 46, 0, },
},
type = "ArrDep",
},
stationID = 57811,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 1, 0, 1, 0, },
{ 13, 0, 12, 0, },
{ 25, 0, 25, 0, },
{ 37, 0, 37, 0, },
{ 48, 0, 49, 0, },
},
type = "ArrDep",
},
stationID = 59173,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 5, 0, 7, 0, },
{ 17, 0, 18, 0, },
{ 29, 0, 31, 0, },
{ 41, 0, 43, 0, },
{ 53, 0, 55, 0, },
},
type = "ArrDep",
},
stationID = 29713,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 11, 0, 12, 0, },
{ 23, 0, 23, 0, },
{ 35, 0, 35, 0, },
{ 47, 0, 47, 0, },
{ 59, 0, 59, 0, },
},
type = "ArrDep",
},
stationID = 59173,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 6, 0, 3, 0, },
{ 14, 0, 15, 0, },
{ 26, 0, 26, 0, },
{ 38, 0, 39, 0, },
{ 50, 0, 51, 0, },
},
type = "ArrDep",
},
stationID = 57811,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 8, 0, 9, 0, },
{ 20, 0, 21, 0, },
{ 32, 0, 33, 0, },
{ 44, 0, 45, 0, },
{ 56, 0, 57, 0, },
},
type = "ArrDep",
},
stationID = 52870,
vehiclesWaiting = {
[69230] = { 44, 0, 45, 0, },
},
},
{
conditions = {
ArrDep = {
{ 1, 0, 2, 0, },
{ 13, 0, 14, 0, },
{ 24, 0, 26, 0, },
{ 37, 0, 38, 0, },
{ 49, 0, 50, 0, },
},
type = "ArrDep",
},
stationID = 59459,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 5, 0, 6, 0, },
{ 16, 0, 18, 0, },
{ 29, 0, 30, 0, },
{ 41, 0, 41, 0, },
{ 53, 0, 54, 0, },
},
type = "ArrDep",
},
stationID = 59896,
vehiclesWaiting = { },
},
},
},
[85198] = {
frequency = 2004.0002370291,
hasTimetable = true,
minWaitEnabled = false,
stations = {
{
conditions = {
ArrDep = {
{ 0, 0, 1, 0, },
{ 12, 0, 13, 0, },
{ 24, 0, 25, 0, },
{ 36, 0, 37, 0, },
{ 48, 0, 49, 0, },
},
type = "ArrDep",
},
stationID = 91211,
vehiclesWaiting = { },
},
{
conditions = {
ArrDep = {
{ 0, 0, 11, 0, },
{ 22, 0, 23, 0, },
{ 33, 0, 35, 0, },
{ 47, 0, 48, 0, },
{ 58, 0, 59, 0, },
},
type = "ArrDep",
},
stationID = 92646,
vehiclesWaiting = { },
},
},
},
},
},
["wkrts_wkss_client.lua"] = { },
WernerK 25 iul. 2023 la 8:51 
It's a little ago that I reported a similar issue. It may be fixed now, but the question is - really? I suppose the arrival times have still an influence on the departure time. If e.g. a vehicle arrives too late it has to wait for the next cycle. But if you reload a savegame the mod can't find out when the vehicle has arrived. vehiclesWaiting only saves the scheduled arrival time but not the real arrival time of this vehicle. So the algorithm cannot work if a savegame is reloaded - right?
Gregory365  [dezvoltator] 25 iul. 2023 la 12:20 
The mod doesn't save the arrival time of the vehicles, but the base game does. This allows the mod to read the games internal arrival time values for each vehicle. Saving and loading should no longer affect when a vehicles departs.

The calculations for determining departure time for each vehicle are quite robust and have many tests, but may not account for every single scenario.
WernerK 25 iul. 2023 la 12:47 
If the base game does there should be an entry in the sav.lua. I don't find this. Otherwise a cannot imagine how it should work. How do you read the infomation? I think it's only possible by the load function of the game script reading the state variable. I tried out V 1.3 again after in V 1.2 plus station fix the same issue appeared. But it's still there in V 1.3.

The issua mainly appears if you have a long waiting time and a short headway interval.
Gregory365  [dezvoltator] 25 iul. 2023 la 13:00 
The base game stores its information in the .sav rather than the sav.lua. All mods have to use the sav.lua.

Ctrl+F for "doorsTime" on API Reference[transportfever2.com]
< >
Se afișează 1-13 din 13 comentarii
Per pagină: 1530 50