Transport Fever 2

Transport Fever 2

时刻表
Gregory365  [开发者] 2022 年 8 月 19 日 上午 7:10
Fork: Timetables 1.3
For comments, suggestions and issues with the Timetables 1.3 [github.com] fork of this mod
最后由 Gregory365 编辑于; 2023 年 3 月 11 日 上午 4:30
< >
正在显示第 1 - 13 条,共 13 条留言
Gregory365  [开发者] 2022 年 8 月 19 日 上午 7:14 
To fix trains being stuck in a station after removing this mod.
Open the console (press `) and copy & paste:

api.engine.forEachEntityWithComponent(function (entity) api.cmd.sendCommand(api.cmd.make.setVehicleManualDeparture(entity, false)) end, 70)
最后由 Gregory365 编辑于; 2023 年 1 月 15 日 下午 3:18
Vuyfield 2022 年 8 月 24 日 上午 9:09 
For some reason, trains depart flawlessly for a small period, but then they become stuck in the station even after using the console thing.
Gregory365  [开发者] 2022 年 8 月 24 日 下午 12:52 
引用自 Vuyfield
For some reason, trains depart flawlessly for a small period, but then they become stuck in the station even after using the console thing.

Is this with the mod installed or removed?

If the trains are still stuck in the station after removing the mod, and you've typed in the above console command, then the issue isn't with the mod.
Vuyfield 2022 年 8 月 25 日 上午 7:26 
引用自 Gregory365
引用自 Vuyfield
For some reason, trains depart flawlessly for a small period, but then they become stuck in the station even after using the console thing.

Is this with the mod installed or removed?

If the trains are still stuck in the station after removing the mod, and you've typed in the above console command, then the issue isn't with the mod.

It's when your mod is installed that this happens
最后由 Vuyfield 编辑于; 2022 年 8 月 25 日 下午 2:02
Gregory365  [开发者] 2022 年 8 月 26 日 上午 5:40 
Ok, The above command is for resolving stuck trains when the mod is removed, not when it is installed.

If trains are staying in the station with the mod installed, then I would assume the timetable hasn't been setup correctly.

If you think the timetable is correct, can you give some more details? Include the arrival, expected departure, and actual depart of the train. As well as the arrival and departure times in the timetable for that trains line.
Vuyfield 2022 年 8 月 27 日 下午 7:10 
引用自 Gregory365
Ok, The above command is for resolving stuck trains when the mod is removed, not when it is installed.

If trains are staying in the station with the mod installed, then I would assume the timetable hasn't been set up correctly.

If you think the timetable is correct, can you give some more details? Include the arrival, expected departure, and actual depart of the train. As well as the arrival and departure times in the timetable for that train line.

So, the frequency of my trains is 6 minutes which means that each arrival is an interval of 0, 6, 12, etc. The departure is 30 seconds after arriving. ( A train arrives at 6 and then departs at 6:30.)

The issue is that the trains are not departing at all even when it is 6:30 or any other departures indicated. I don't know if it's because I replaced the original mod with yours or something like that.
Username_dot_com 2022 年 9 月 7 日 上午 11:48 
Is this mod something I can add to an existing save? I'm assuming yes, but I figured I'd make sure.
Gregory365  [开发者] 2022 年 9 月 7 日 下午 1:03 
引用自 Username_dot_com
Is this mod something I can add to an existing save? I'm assuming yes, but I figured I'd make sure.

Yes.
First, create a backup of the current save game.
Then download this mod and put it in your mod folder.
When you go to load the save game, disable the official timetables mod (if you have it) and enable this one.
Mackintosh 2022 年 11 月 18 日 上午 7:40 
Was the solution to trains getting stuck ever found?

Occasionally a train will get stuck and there's nothing you can do other than sell it and hope it doesn't happen again. If it does, The only solution seems to be to trash the whole timetable and try again. Probably a bug in the code somewhere, but I'm no coder. I've only seen this happen twice in over 40 hours on the save I'm currently playing. Once it resolved on its own after I sold the train, the other time I had to redo the timetable from scratch.
Gregory365  [开发者] 2022 年 11 月 18 日 下午 2:06 
引用自 Mackintosh
Was the solution to trains getting stuck ever found?

Occasionally a train will get stuck and there's nothing you can do other than sell it and hope it doesn't happen again. If it does, The only solution seems to be to trash the whole timetable and try again. Probably a bug in the code somewhere, but I'm no coder. I've only seen this happen twice in over 40 hours on the save I'm currently playing. Once it resolved on its own after I sold the train, the other time I had to redo the timetable from scratch.

No, it has never been solved as I have never been able to reproduce the bug with the information that's been given.

I did have a scan though the code that was responsible for calculating the time vehicles depart but couldn't see anything wrong with it. This code also has tests to verify it, and they are passing. The issue happens in very particular conditions that I am currently unaware of.

If you have a save file with a stuck vehicle then that might help in finding the cause.
Mackintosh 2022 年 11 月 19 日 下午 12:31 
I'm afraid I never play vanilla, and the save I'm having this issue on features 1024 mods, so I doubt a save file will do you any good. I'll see if I can get around to do some testing on vanilla - but the bug is so rare, I don't think I can stomach running a 40 hour game without mods :)
Mackintosh 2023 年 1 月 27 日 上午 8:10 
Bit of a necro post here, but I think I finally figured out what was causing the trains to get stuck - it's the Dynamic Arrivals Board mod. How - I wouldn't have a clue, but since I removed it, I haven't had a single train get stuck.
Gregory365  [开发者] 2023 年 1 月 28 日 上午 6:30 
引用自 Mackintosh
Bit of a necro post here, but I think I finally figured out what was causing the trains to get stuck - it's the Dynamic Arrivals Board mod. How - I wouldn't have a clue, but since I removed it, I haven't had a single train get stuck.

That's definitely a possibility as I believe the Dynamic Arrivals Board does read the timetable, but I would say its unlikely. I have been re-writing portions of this mod that most likely will solve this bug even though I don't know the specific cause. It will 'clean up' vehicles that are stopped that shouldn't be.
< >
正在显示第 1 - 13 条,共 13 条留言
每页显示数: 1530 50