Banjobeni / DerailValley-PersistentJobs

Derail Valley Peristent Jobs Mod
https://www.nexusmods.com/derailvalley/mods/794
MIT License
2 stars 1 forks source link

Player spawned cars throw exception #3

Closed scitor closed 1 year ago

scitor commented 1 year ago

After manually spawning in Boxcars the mod stopped and this was in the logs:

[PersistentJobsMod] Creating CarDamageModel for TrainCar[CBX467]...
[PersistentJobsMod] [Error] Exception thrown during UnusedTrainCarDeleter.InstantConditionalDeleteOfUnusedCars prefix patch:
System.Exception: cannot get method value without method
  at HarmonyLib.Traverse.GetValue (System.Object[] arguments) [0x00008] in <5c856fb19ddb469d99459756a2e14341>:0 
  at PersistentJobsMod.Utilities.ConvertPlayerSpawnedTrainCar (TrainCar trainCar) [0x00129] in <cc33f3951f0a44de8ed793b8dcd6ee58>:0 
  at PersistentJobsMod.HarmonyPatches.UnusedTrainCarDeleter_InstantConditionalDeleteOfUnusedCars_Patch+<>c__DisplayClass0_0.<Prefix>b__22 (TrainCar tc) [0x00001] in <cc33f3951f0a44de8ed793b8dcd6ee58>:0 
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x00024] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at PersistentJobsMod.HarmonyPatches.UnusedTrainCarDeleter_InstantConditionalDeleteOfUnusedCars_Patch.Prefix (UnusedTrainCarDeleter __instance, System.Collections.Generic.List`1[T] ___unusedTrainCarsMarkedForDelete) [0x00689] in <cc33f3951f0a44de8ed793b8dcd6ee58>:0 
[PersistentJobsMod] Inactive.
[PersistentJobsMod] [Critical] Deactivating mod PersistentJobs due to critical failure!