@co_avanya,
In:
PostVanAI.StartPathFind
There is the following bit of code:
if ((vehicleData.m_flags2 & Vehicle.Flags2.TransferToServicePoint) == 0)
{
if (vehicleData.m_transferType == 92)
{
return base.StartPathFind(vehicleID, ref vehicleData, startPos, endPos, startBothWays, endBothWays, undergroundTarget);
}
if ((vehicleData.m_flags & (Vehicle.Flags.TransferToSource | Vehicle.Flags.GoingBack)) != 0)
{
return base.StartPathFind(vehicleID, ref vehicleData, startPos, endPos, startBothWays, endBothWays, undergroundTarget);
}
}
This is incorrect as the "GoingBack" if statement needs to ALWAYS run to ensure that the post van uses the road network to get back to its service building. The current code means that a post van that delivers mail to a service point may then try to head back to its service building via a cargo station and get stuck in a loop.
Hope that helps
Sleepy