Mainly more hauling optimizations, utilizing linked storage groups

This also adds an experimental, usually slower, threaded gas grid mode and implements a workaround for the whole mod and game failing to start when opening prepatcher's mod manager with unfortunate timing
This commit is contained in:
bbradson
2024-02-01 19:57:50 +01:00
parent 20aebe4e83
commit 949bde76ce
27 changed files with 451 additions and 280 deletions
@@ -3,6 +3,7 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
using System.Diagnostics;
using Mono.Cecil;
using Mono.Cecil.Cil;
using Mono.Cecil.Rocks;
@@ -75,8 +76,7 @@ public abstract class FishPrepatch : FishPrepatchBase
}
catch (Exception e)
{
Log.Error($"Exception while applying transpiler for {GetType().FullName}\n{e}\n{
Environment.StackTrace /*StackTraceUtility.ExtractStackTrace()*/}");
Log.Error($"Exception while applying transpiler for {GetType().FullName}\n{e}\n{new StackTrace(true)}");
}
var patchVariables = new PatchVariables();
@@ -89,8 +89,7 @@ public abstract class FishPrepatch : FishPrepatchBase
}
catch (Exception e)
{
Log.Error($"Exception while applying prefix for {GetType().FullName}\n{e}\n{
Environment.StackTrace /*StackTraceUtility.ExtractStackTrace()*/}");
Log.Error($"Exception while applying prefix for {GetType().FullName}\n{e}\n{new StackTrace(true)}");
}
}
@@ -102,8 +101,7 @@ public abstract class FishPrepatch : FishPrepatchBase
}
catch (Exception e)
{
Log.Error($"Exception while applying postfix for {GetType().FullName}\n{e}\n{
Environment.StackTrace /*StackTraceUtility.ExtractStackTrace()*/}");
Log.Error($"Exception while applying postfix for {GetType().FullName}\n{e}\n{new StackTrace(true)}");
}
}