-
Notifications
You must be signed in to change notification settings - Fork 85
Description
currently we recalculate segment in NetManager.UpdateSegment.Postfix
:
https://github.com/kvakvs/TMPE/blob/8e4cf99639754e6d0d6d2ee479ade8137d849f9f/TLM/TLM/Patch/_NetManager/UpdateSegmentPatch.cs#L20
At this point NetNode
and NetSegment
data structures are not fully initialized (eg NetSegment.m_startLeft/RightSegment
or NetNode.m_segment*
). They are initialized in CalculateSegment()
so that's where we should call recalculate:
https://github.com/kvakvs/TMPE/blob/8e4cf99639754e6d0d6d2ee479ade8137d849f9f/TLM/TLM/Patch/_NetSegment/CalculateSegmentPatch.cs#L12
Another thing I noticed is that UpdateSegment()
is called too many times and is not the right place for recalculations. The log bellow shows how many times recalculate is called for a simple segment addition to a junction. As you can see its being called when segments are being released and being called again when new segment is added over and over again.
debug trace log
``` // start: m_startNode m_startDir m_startLeftSegment m_startRightSegment // end: m_endNode m_endDir m_endLeftSegment m_sendRightSegment start:26665 (0.9, 0.0, 0.4) 0 0 end:12888 (-0.9, 0.1, -0.4) 0 0 at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level) at CSUtil.Commons.Log.Warning(System.String s) at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode) at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0() at ThreadingWrapper.QueueSimulationThread(System.Action action) at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd) at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId) at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment) at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId) at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level) at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 ) at NetManager.UpdateSegment(UInt16 segment) at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList`1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList`1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint) at NetTool.CreateNodeImpl(Boolean switchDirection) at NetTool+c__Iterator0.MoveNext() at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute() at SimulationManager.SimulationStep() at SimulationManager.SimulationThread()Warning 857.8485099: CalcualteCorners for segment:13291 nodeId:12888info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:12888 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 857.8504655: CalcualteCorners for segment:13291 nodeId:26665info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:12888 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 857.8522570: CalcualteCorners for segment:13291 nodeId:12888info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:12888 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 857.8544732: CalcualteCorners for segment:16388 nodeId:12888info=Basic Road (NetInfo)
start:12888 (0.9, -0.1, 0.4) 0 0
end:1067 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 857.8562191: CalcualteCorners for segment:16388 nodeId:1067info=Basic Road (NetInfo)
start:12888 (0.9, -0.1, 0.4) 0 0
end:1067 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 857.8579325: CalcualteCorners for segment:16388 nodeId:12888info=Basic Road (NetInfo)
start:12888 (0.9, -0.1, 0.4) 0 0
end:1067 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 857.8595180: CalcualteCorners for segment:16388 nodeId:1067info=Basic Road (NetInfo)
start:12888 (0.9, -0.1, 0.4) 0 0
end:1067 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 857.8611160: CalcualteCorners for segment:901 nodeId:1067info=Basic Road (NetInfo)
start:1067 (0.9, 0.0, 0.4) 0 0
end:7063 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 857.8625906: CalcualteCorners for segment:901 nodeId:7063info=Basic Road (NetInfo)
start:1067 (0.9, 0.0, 0.4) 0 0
end:7063 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Debug 859.4350056: NetService.PublishSegmentChanges(16388) called.
Warning 859.4365217: CalcualteCorners for segment:13291 nodeId:26665info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:12888 (-0.9, 0.1, -0.4) 16388 16388
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.ReleaseSegmentNode(UInt16 segment, UInt16 ByRef segmentNode, Boolean keepNodes)
at NetManager.ReleaseSegmentImplementation(UInt16 segment, NetSegment ByRef data, Boolean keepNodes)
at NetManager.ReleaseSegment(UInt16 segment, Boolean keepNodes)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4415271: CalcualteCorners for segment:13291 nodeId:12888info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:12888 (-0.9, 0.1, -0.4) 16388 16388
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.ReleaseSegmentNode(UInt16 segment, UInt16 ByRef segmentNode, Boolean keepNodes)
at NetManager.ReleaseSegmentImplementation(UInt16 segment, NetSegment ByRef data, Boolean keepNodes)
at NetManager.ReleaseSegment(UInt16 segment, Boolean keepNodes)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4441377: CalcualteCorners for segment:901 nodeId:1067info=Basic Road (NetInfo)
start:1067 (0.9, 0.0, 0.4) 16388 16388
end:7063 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.ReleaseSegmentNode(UInt16 segment, UInt16 ByRef segmentNode, Boolean keepNodes)
at NetManager.ReleaseSegmentImplementation(UInt16 segment, NetSegment ByRef data, Boolean keepNodes)
at NetManager.ReleaseSegment(UInt16 segment, Boolean keepNodes)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4457060: CalcualteCorners for segment:901 nodeId:7063info=Basic Road (NetInfo)
start:1067 (0.9, 0.0, 0.4) 16388 16388
end:7063 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.ReleaseSegmentNode(UInt16 segment, UInt16 ByRef segmentNode, Boolean keepNodes)
at NetManager.ReleaseSegmentImplementation(UInt16 segment, NetSegment ByRef data, Boolean keepNodes)
at NetManager.ReleaseSegment(UInt16 segment, Boolean keepNodes)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Debug 859.4476830: NetService.PublishSegmentChanges(13291) called.
Warning 859.4491984: CalcualteCorners for segment:35480 nodeId:26665info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:13605 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.MoveMiddleNode(UInt16 ByRef node, Vector3 ByRef direction, Vector3 position)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4511761: CalcualteCorners for segment:35480 nodeId:13605info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:13605 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.MoveMiddleNode(UInt16 ByRef node, Vector3 ByRef direction, Vector3 position)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Debug 859.4533208: NetService.PublishSegmentChanges(901) called.
Debug 859.4544903: TrafficLightSimulationManager.RemoveNodeFromSimulation(12888, False, True) called.
Warning 859.4556925: CalcualteCorners for segment:4417 nodeId:914info=Basic Road (NetInfo)
start:914 (0.9, 0.0, 0.4) 0 0
end:7063 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.MoveMiddleNode(UInt16 ByRef node, Vector3 ByRef direction, Vector3 position)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4574005: CalcualteCorners for segment:4417 nodeId:7063info=Basic Road (NetInfo)
start:914 (0.9, 0.0, 0.4) 0 0
end:7063 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.MoveMiddleNode(UInt16 ByRef node, Vector3 ByRef direction, Vector3 position)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4591105: CalcualteCorners for segment:35480 nodeId:26665info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:13605 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4610687: CalcualteCorners for segment:35480 nodeId:13605info=Basic Road (NetInfo)
start:26665 (0.9, 0.0, 0.4) 0 0
end:13605 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4649780: CalcualteCorners for segment:12762 nodeId:13605info=Basic Road (NetInfo)
start:13605 (0.9, 0.0, 0.4) 0 0
end:4103 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4666965: CalcualteCorners for segment:12762 nodeId:4103info=Basic Road (NetInfo)
start:13605 (0.9, 0.0, 0.4) 0 0
end:4103 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4685310: CalcualteCorners for segment:4417 nodeId:914info=Basic Road (NetInfo)
start:914 (0.9, 0.0, 0.4) 0 0
end:7063 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4725363: CalcualteCorners for segment:4417 nodeId:7063info=Basic Road (NetInfo)
start:914 (0.9, 0.0, 0.4) 0 0
end:7063 (-0.9, 0.0, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4754663: CalcualteCorners for segment:12762 nodeId:13605info=Basic Road (NetInfo)
start:13605 (0.9, 0.0, 0.4) 0 0
end:4103 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4775868: CalcualteCorners for segment:12762 nodeId:4103info=Basic Road (NetInfo)
start:13605 (0.9, 0.0, 0.4) 0 0
end:4103 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4800977: CalcualteCorners for segment:25928 nodeId:914info=Basic Road (NetInfo)
start:914 (-0.9, 0.0, -0.4) 0 0
end:4103 (0.9, -0.1, 0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4819603: CalcualteCorners for segment:25928 nodeId:4103info=Basic Road (NetInfo)
start:914 (-0.9, 0.0, -0.4) 0 0
end:4103 (0.9, -0.1, 0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.SplitSegment(UInt16 segment, UInt16 ByRef node, Vector3 position)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4845670: CalcualteCorners for segment:12762 nodeId:13605info=Basic Road (NetInfo)
start:13605 (0.9, 0.0, 0.4) 0 0
end:4103 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4868507: CalcualteCorners for segment:12762 nodeId:4103info=Basic Road (NetInfo)
start:13605 (0.9, 0.0, 0.4) 0 0
end:4103 (-0.9, 0.1, -0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4883931: CalcualteCorners for segment:25928 nodeId:914info=Basic Road (NetInfo)
start:914 (-0.9, 0.0, -0.4) 0 0
end:4103 (0.9, -0.1, 0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4902012: CalcualteCorners for segment:25928 nodeId:4103info=Basic Road (NetInfo)
start:914 (-0.9, 0.0, -0.4) 0 0
end:4103 (0.9, -0.1, 0.4) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateNode(UInt16 node, UInt16 fromSegment, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4920446: CalcualteCorners for segment:30863 nodeId:4103info=Basic Road (NetInfo)
start:4103 (-0.4, 0.0, 0.9) 0 0
end:11302 (0.4, 0.0, -0.9) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
Warning 859.4946000: CalcualteCorners for segment:30863 nodeId:11302info=Basic Road (NetInfo)
start:4103 (-0.4, 0.0, 0.9) 0 0
end:11302 (0.4, 0.0, -0.9) 0 0
at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
at CSUtil.Commons.Log.Warning(System.String s)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.CalculateCorners(UInt16 segmentId, Boolean startNode)
at TrafficManager.Manager.Impl.ExtSegmentEndManager+<>c__DisplayClass20_0.b__0()
at ThreadingWrapper.QueueSimulationThread(System.Action action)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(ExtSegmentEnd ByRef segEnd)
at TrafficManager.Manager.Impl.ExtSegmentEndManager.Recalculate(UInt16 segmentId)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(ExtSegment ByRef extSegment)
at TrafficManager.Manager.Impl.ExtSegmentManager.Recalculate(UInt16 segmentId)
at TrafficManager.Patch._NetManager.UpdateSegmentPatch.Postfix(.NetManager __instance, UInt16 segment, UInt16 fromNode, Int32 level)
at NetManager.UpdateSegment_Patch1(System.Object , UInt16 , UInt16 , Int32 )
at NetManager.UpdateSegment(UInt16 segment)
at NetManager.CreateSegment(UInt16 ByRef segment, Randomizer ByRef randomizer, .NetInfo info, UInt16 startNode, UInt16 endNode, Vector3 startDirection, Vector3 endDirection, UInt32 buildIndex, UInt32 modifiedIndex, Boolean invert)
at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean testEnds, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef firstNode, UInt16 ByRef lastNode, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate) at NetTool.CreateNode(.NetInfo info, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint, .FastList
1 nodeBuffer, Int32 maxSegments, Boolean test, Boolean visualize, Boolean autoFix, Boolean needMoney, Boolean invert, Boolean switchDir, UInt16 relocateBuildingID, UInt16 ByRef node, UInt16 ByRef segment, Int32 ByRef cost, Int32 ByRef productionRate)
at NetTool.CreateNodeImpl(.NetInfo info, Boolean needMoney, Boolean switchDirection, ControlPoint startPoint, ControlPoint middlePoint, ControlPoint endPoint)
at NetTool.CreateNodeImpl(Boolean switchDirection)
at NetTool+c__Iterator0.MoveNext()
at AsyncTask`1[[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at SimulationManager.SimulationStep()
at SimulationManager.SimulationThread()
</details>
`CalculateSegment()` on the other hand is called a few simulation steps later but takes care to be called only when necessary.
Therefore I think we should move the code form `UpdateSegmentPatch` to `CalculateSegmentPatch`.