Open HuangFuSL opened 3 years ago
@HuangFuSL - also thanks for your approach to solve ! Do you found any side effects in the meantime ? We are looking into reviving this mod with some fixes, Chronofanz granted access to the GitHub repo here and we have full access on the workshop object as well.
I could think here to add a "Beta" section in the option panel to switch this on/off for users, which like to take some risks :)
Thanks to share experience made so far and again, thanks for contribution.
@CityGecko It seems that the mod is living in harmony with other mods, and I've observed no side effects up to now.
As reported in Steam Community, this mod is partly incompatible with Real Time by dymanoid. Using both mods will cause warehouse and other industrial buildings not sending vehicles even if their storage is full. I've inspected the mechanism of Enhanced District Services mod by investigating the source code and adding outputs to log files. I think the problem is as follows:
In
MatchOffersClosest()
method inTransferManagerMod.cs
, the expiry time of each offer is checked. If the offer is not expired, it's disabled. The related code is on line 276 ofTransferManagerMod.cs
:PurgeOldEvents()
method is defined inTransferHistory.cs
(line 100 to line 120):Here, the
expiry
is set to 30 days later to the current game time, it DOES work in the original game as the time unit of the game time is day. But with Real Time mod installed, speed of the time flow is decreased and the unit of the game time is minute. It can be verified by inspecting thetimestamp
variable by adding the following code:after the definition of the
timestamp
variable. The observed output is:A possible solution is change the
expiry
time:After applying the modification and re-compiling the mod, the warehouses and industrial building will start releasing vehicles normally. But the side-effect is to be investigated.