Cities: Skylines

Cities: Skylines

Express Bus Services
 This topic has been pinned, so it's probably important
Vectorial1024  [developer] 24 Oct, 2020 @ 11:49pm
Troubleshooting and Frequently-Asked Questions
Here I list some frequently-asked questions and my answers for them.

Note: If you cannot find a solution to the problem you found in this page, chances are that the problem is not well-understood enough that there is no definite solution/answer available. Go check the Known Issues in that case.

Help! Buses do not depart when I use this mod together with IPT2!
This is IPT2's problem. For those using Transport Line Manager (TLM) you will notice things are working just fine.

IPT2 has a configurable option named "unbunching aggressiveness". To quote from their Workshop description:

Note: if you feel that unbunching doesn't work as expected, go to mods options and check aggression setting. 52 equals to vanilla aggression. Other than allowing to enable/disable unbunching and setting aggression setting, this mod doesn't deal with unbunching. If you have issues with unbunching, ask Colossal Order how to fix them.

From my past experience of using IPT2, setting unbunching aggressiveness to 3 is a good value for buses to properly unbunch and not stay at bus stops for too long.

Technical information:

This mod does not modify any unbunching logic, but rather "disconnects" them from the game when certain conditions are met. The exact behavior of unbunching depends on the mod(s) that you use (if any).

Will this mod include (insert transport type)?
You may refer to the GitHub readme here for more information: https://github.com/Vectorial1024/ExpressBusServices

HarmonyLib.HarmonyException OR other strange-looking error that suddenly appeared
It means Harmony failed to patch a file, or, this mod failed to properly detect Harmony, and so things behaved very unexpectedly. Frustratingly, it does not appear for everyone. Some may have this error, while some may have totally no problem.

2021 Feb 16 update:

To alleviate this problem, this mod leverages the CitiesHarmony mod to obtain the well-accepted version of Harmony of the Community. Still, this mod DOES NOT auto-subscribe to CitiesHarmony out of security concerns.

However, CitiesHarmony may sometimes release updates which are not backwards-compatible. I trust the guys at CitiesHarmony are trying their best to bugfix CH, since the complexity of CH to provide compatibility to older versions of the HarmonyLib is not trivial. Still, in such cases, until I react to those updates and provide an update on this side when time allows, you are strongly suggested to head to CitiesHarmony's support threads for more information and possible fixes. Note that, depending on the actual technical details of the CH updates involved, it is possible that the only option is to wait it out.

"IPT2..." type cannot be found
This error means that this mod failed to detect IPT2, possibly due to load order problems. While, hopefully, this kind of error will not happen anymore, still, just in case, I provide some proposed fixes to fix the loading order by hand (Cities Skylines does not provide any official way of resolving load order).

PC28K's Proposed Fix

I slightly modify their proposed fix to make it clearer.

1. Subscribe to the v2 Harmony (already listed as a Steam dependency)
2. Wait for Steam to download the v2 Harmony
3. Copy the v2 Harmony to the "local mod folder" (See https://skylines.paradoxwikis.com/User_path) (paste it to Addons/Mods/)
4. Unsubscribe from the Workshop version of the v2 Harmony, and completely rely on the local Harmony copy

It should probably work because it is hypothesized that mods in the "local folders" have a earlier load order.

Vectorial1024's Proposed Fix

This is best done in the in-game mod manager for convenience.

1. Unsubscribe from this mod
2. Unsubscribe from the v2 Harmony dependency
3. Unsubscribe from IPT2
4. Restart the game
5. Subscribe to the v2 Harmony dependency again
6. Subscribe to IPT2 again
7. Subscribe to this mod again
8. Restart the game

This should probably work because it is observed that newly added mods are loaded last, and by doing this, we can help place the v2 Harmony (and also IPT2) in the correct load order position.
Last edited by Vectorial1024; 16 Feb, 2021 @ 4:01am
< >
Showing 1-8 of 8 comments
M.S.Referee 25 Nov, 2020 @ 9:42pm 
After you add supported IPT2, If you don't use IPT2 and only use Transport Line Manager, when you start a game or loading a save, you will got error window jump out and tall you about IPT2 Bus AI problem. And yes you don't have IPT2 mod and sure got this 'Problem'.

So, maybe you can add the check that if you don't use IPT2 mod, code running A fuction without IPT2, rather than running B fuction with IPT2.
Vectorial1024  [developer] 27 Nov, 2020 @ 8:30pm 
Originally posted by M.S.Referee:
After you add supported IPT2, If you don't use IPT2 and only use Transport Line Manager, when you start a game or loading a save, you will got error window jump out and tall you about IPT2 Bus AI problem. And yes you don't have IPT2 mod and sure got this 'Problem'.

So, maybe you can add the check that if you don't use IPT2 mod, code running A fuction without IPT2, rather than running B fuction with IPT2.

Yes this is exactly what I am doing right now with this mod, I check if IPT2 exists, and apply their patches accordingly, but unfortunately, I can't seem to reproduce this error.

Perhaps you may unsubscribe and resubscribe, see if it works.
Vectorial1024  [developer] 27 Nov, 2020 @ 11:51pm 
Originally posted by M.S.Referee:
After you add supported IPT2, If you don't use IPT2 and only use Transport Line Manager, when you start a game or loading a save, you will got error window jump out and tall you about IPT2 Bus AI problem. And yes you don't have IPT2 mod and sure got this 'Problem'.

So, maybe you can add the check that if you don't use IPT2 mod, code running A fuction without IPT2, rather than running B fuction with IPT2.
Update: I fixed a bug regarding this mod being used together with IPT2, see if it works.

The fixed bug previously only occurred when using this mod together with IPT2, but because I dont use both of them together (I only use TLM), it was hard for me to notice that bug.
M.S.Referee 17 Jan, 2021 @ 7:59pm 
原來你是香港人,那就好多了,用中文來說明。
我之前發現的問題是,你添加了支援IPT2,也就是從 1.01 版開始, 如果你只用 TLM,沒有用IPT2,進遊戲後就會遇到那個有關於IPT2 Bus AI的錯誤窗口。

所以,我是想,你能不能像1.0這個第一版一樣,做一個給TLM用的版本?你的1.0第一版進遊戲後一切正常和TLM一同使用。因為我和你一樣,用的是TLM + RealTime,因為TLM比IPT2有更多的功能,所以我早就放棄使用IPT2了。
Last edited by M.S.Referee; 17 Jan, 2021 @ 8:00pm
Vectorial1024  [developer] 18 Jan, 2021 @ 8:50am 
啊 :D 之前感覺總是尷尬的, 現在算是更清楚了

整件事其實很奇怪, 自從我做完IPT2版本又確定它沒事後, 我就把它收起不用, IPT2如是, 也把EBS-IPT2搬走了, 也是沒問題, 照用可也

技術上是TLM的設計並無牽涉任何關於飛站的事, 所以真的不會衝突, 公家版就是"TLM版", 一樣的, 相通的

不過呢, 可以先檢查一下, 這裡最新版是1.0.6.0, 你可以去本機Steam folder\steamapps\workshop\content\255710\2262054175 看看 (這是Steam Workshop item在本機放file的位置), 我在Windows看那個ExpressBusServices.dll是v1.0.6.0的
M.S.Referee 21 Jan, 2021 @ 5:08am 
昨天測試了 1.0.6,現在不會出現錯誤提示了,一切感覺很好。
war4sure 5 Sep, 2022 @ 12:48am 
Hi I got this problem. It happens whenever I remove some stops or deleting a bus line

Simulation error: Object reference not set to an instance of an object
at ExpressBusServices.Patch_PublicTransportExtraSkip.ExtraSkippingLogic (VehicleAI,uint16,Vehicle&) <0x009ef>
at (wrapper dynamic-method) VehicleAI.VehicleAI.ArrivingToDestination_Patch2 (VehicleAI,uint16,Vehicle&) <0x00059>
at (wrapper delegate-invoke) TrafficManager.Patch._VehicleAI.Connection.ArrivingToDestinationDelegate.invoke_void__this___VehicleAI_uint16_Vehicle& (VehicleAI,uint16,Vehicle&) <0x0009c>
at TrafficManager.Patch._VehicleAI.UpdatePathTargetPositionsPatch.Prefix (VehicleAI,uint16,Vehicle&,UnityEngine.Vector3,int&,int,single,single) <0x03d80>
at (wrapper dynamic-method) VehicleAI.VehicleAI.UpdatePathTargetPositions_Patch1 (VehicleAI,uint16,Vehicle&,UnityEngine.Vector3,int&,int,single,single) <0x001e6>
at (wrapper dynamic-method) CarAI.CarAI.SimulationStep_Patch0 (CarAI,uint16,Vehicle&,Vehicle/Frame&,uint16,Vehicle&,int) <0x009a2>
at TrolleybusAI.SimulationStep (uint16,Vehicle&,Vehicle/Frame&,uint16,Vehicle&,int) <0x0012b>
at (wrapper dynamic-method) VehicleAI.VehicleAI.SimulationStep_Patch1 (VehicleAI,uint16,Vehicle&,uint16,Vehicle&,int) <0x00598>
at TrafficManager.Patch._VehicleAI._CarAI.SimulationStepPatch.Prefix (CarAI,uint16,Vehicle&,UnityEngine.Vector3) <0x006a5>
at (wrapper dynamic-method) CarAI.CarAI.SimulationStep_Patch1 (CarAI,uint16,Vehicle&,UnityEngine.Vector3) <0x00057>
at (wrapper dynamic-method) VehicleManager.VehicleManager.SimulationStepImpl_Patch0 (VehicleManager,int) <0x00511>
at SimulationManagerBase`2.SimulationStep (int) <0x0004c>
at VehicleManager.ISimulationManager.SimulationStep (int) <0x00024>
at SimulationManager.SimulationStep () <0x00693>
at SimulationManager.SimulationThread () <0x0018a>

Any idea why this happens?
Vectorial1024  [developer] 6 Sep, 2022 @ 6:51am 
Originally posted by war4sure:
Hi I got this problem. It happens whenever I remove some stops or deleting a bus line

...

Any idea why this happens?

I guess try to remove and reinstall the mod? Or there are hidden incompatibilities that I am not aware of.

But still, when I was testing this mod a while ago, there are no problems with deleting bus lines.
< >
Showing 1-8 of 8 comments
Per page: 1530 50