diff --git a/TLM/TLM/CustomPathManager.cs b/TLM/TLM/CustomPathManager.cs index 2ec4a2cd..437eb016 100644 --- a/TLM/TLM/CustomPathManager.cs +++ b/TLM/TLM/CustomPathManager.cs @@ -19,11 +19,11 @@ public class CustomPathManager : PathManager //On waking up, replace the stock pathfinders with the custom one protected new virtual void Awake() { - Debug.Log("Waking up CustomPathManager."); + //Debug.Log("Waking up CustomPathManager."); var stockPathFinds = GetComponents(); var numOfStockPathFinds = stockPathFinds.Length; - Debug.Log("Creating " + numOfStockPathFinds + " custom PathFind objects."); + //Debug.Log("Creating " + numOfStockPathFinds + " custom PathFind objects."); _replacementPathFinds = new CustomPathFind[numOfStockPathFinds]; for (var i = 0; i < numOfStockPathFinds; i++) { @@ -31,10 +31,10 @@ public class CustomPathManager : PathManager Destroy(stockPathFinds[i]); } - Debug.Log("Setting _replacementPathFinds"); + //Debug.Log("Setting _replacementPathFinds"); var fieldInfo = typeof(PathManager).GetField("m_pathfinds", BindingFlags.NonPublic | BindingFlags.Instance); - Debug.Log("Setting m_pathfinds to custom collection"); + //Debug.Log("Setting m_pathfinds to custom collection"); fieldInfo?.SetValue(this, _replacementPathFinds); } diff --git a/TLM/TLM/Properties/AssemblyInfo.cs b/TLM/TLM/Properties/AssemblyInfo.cs index 27c1e236..26fdaa34 100644 --- a/TLM/TLM/Properties/AssemblyInfo.cs +++ b/TLM/TLM/Properties/AssemblyInfo.cs @@ -32,5 +32,4 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.*")] diff --git a/TLM/TLM/SerializableDataExtension.cs b/TLM/TLM/SerializableDataExtension.cs index 948ddf3c..866a17fd 100644 --- a/TLM/TLM/SerializableDataExtension.cs +++ b/TLM/TLM/SerializableDataExtension.cs @@ -33,7 +33,7 @@ public void OnReleased() { } - public static void GenerateUniqueId() + private static void GenerateUniqueId() { UniqueId = (uint)Random.Range(1000000f, 2000000f); @@ -216,22 +216,24 @@ private static void OnLoadDataTimed(object source, ElapsedEventArgs e) public void OnSaveData() { - - FastList data = new FastList(); + Debug.Log("Saving Mod Data."); + var data = new FastList(); GenerateUniqueId(); - byte[] uniqueIdBytes = BitConverter.GetBytes(UniqueId); - foreach (byte uniqueIdByte in uniqueIdBytes) + Debug.Log("UniqueID: " + UniqueId); + var uniqueIdBytes = BitConverter.GetBytes(UniqueId); + + foreach (var uniqueIdByte in uniqueIdBytes) { data.Add(uniqueIdByte); } - byte[] dataToSave = data.ToArray(); + var dataToSave = data.ToArray(); SerializableData.SaveData(DataId, dataToSave); var filepath = Path.Combine(Application.dataPath, "trafficManagerSave_" + UniqueId + ".xml"); - + Debug.Log("Save Location: " + filepath); var configuration = new Configuration(); for (var i = 0; i < 32768; i++) diff --git a/TLM/TLM/ThreadingExtension.cs b/TLM/TLM/ThreadingExtension.cs index cc57d09d..a1e8923a 100644 --- a/TLM/TLM/ThreadingExtension.cs +++ b/TLM/TLM/ThreadingExtension.cs @@ -12,29 +12,29 @@ public override void OnUpdate(float realTimeDelta, float simulationTimeDelta) { base.OnUpdate(realTimeDelta, simulationTimeDelta); - Debug.Log("Checking for NULL LoadingExtension Instance"); + //Debug.Log("Checking for NULL LoadingExtension Instance"); if (LoadingExtension.Instance == null) { return; } - Debug.Log("Getting ToolMode"); + //Debug.Log("Getting ToolMode"); if (LoadingExtension.Instance.ToolMode != TrafficManagerMode.None && ToolsModifierControl.toolController.CurrentTool != LoadingExtension.Instance.TrafficLightTool) { - Debug.Log("Closing UI"); + //Debug.Log("Closing UI"); LoadingExtension.Instance.UI.Close(); } - Debug.Log("Checking if TrafficLightTool is Visible"); + //Debug.Log("Checking if TrafficLightTool is Visible"); if (ToolsModifierControl.toolController.CurrentTool != LoadingExtension.Instance.TrafficLightTool && LoadingExtension.Instance.UI.IsVisible()) { - Debug.Log("Closing UI"); + //Debug.Log("Closing UI"); LoadingExtension.Instance.UI.Close(); } - Debug.Log("If !DetourInited"); + //Debug.Log("If !DetourInited"); if (!LoadingExtension.Instance.DetourInited) { Debug.Log("Redirecting Car AI Calculate Segment Calls");