3.2.1 is not working for me getting constant error messanges and not jobs spawning 3.2.0 is working for me no problem
Running a lot of other mods so might just be a clash but though I better document it.
Love this mod create a whole new gameplay experience Exception thrown at UnusedTrainCarDeleter_Patches.TrainCarsCreateJobOrDeleteCheck: System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 at YardTracksOrganizer.IsTrackManagedByOrganizer (DV.Logic.Job.Track track) [0x00000] in <dada6c6fa778466988cb5a66bbff0984>:0 at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches.DetermineStartingTrack (System.Collections.Generic.IReadOnlyList`1[T] trainCars) [0x00037] in <fa2c14d94b9649fab840fb5b15b255ba>:0 at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches+<ChooseTrainCarsRelationAndChopByMaxLength>d__14`1[TTrainCarRelation].MoveNext () [0x000bf] in <fa2c14d94b9649fab840fb5b15b255ba>:0 at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x0006f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00029] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToList () [0x00030] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches.ReassignJoblessRegularTrainCarsToJobsInStationAndCreateJobChainControllers (StationController station, System.Collections.Generic.List`1[T] trainsets, System.Random random) [0x00249] in <fa2c14d94b9649fab840fb5b15b255ba>:0 at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches+<>c__DisplayClass8_0.<ReassignJoblessRegularTrainCarsToJobs>b__2 (System.ValueTuple`2[T1,T2] sts) [0x00000] in <fa2c14d94b9649fab840fb5b15b255ba>:0 at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].ToList () [0x0001b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches.ReassignJoblessRegularTrainCarsToJobs (System.Collections.Generic.IReadOnlyList`1[T] trainsets, System.Random random) [0x0006f] in <fa2c14d94b9649fab840fb5b15b255ba>:0 at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches.ReassignRegularTrainCarsAndDeleteNonPlayerSpawnedCars (UnusedTrainCarDeleter unusedTrainCarDeleter, System.Collections.Generic.List`1[T] ___unusedTrainCarsMarkedForDelete, System.Boolean skipDistanceCheckForRegularTrainCars, System.Collections.Generic.IReadOnlyList`1[T] trainCarsToIgnore) [0x00328] in <fa2c14d94b9649fab840fb5b15b255ba>:0 at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches+<TrainCarsCreateJobOrDeleteCheck>d__3.MoveNext () [0x00062] in <fa2c14d94b9649fab840fb5b15b255ba>:0
I use this mod to always have two De6's and two DH4's at hand running the business. I love how cars and locos that I spawn in, keep their individual status (damage, fuel etc) without fading into the void after like 2 hours when not being used. No vehicle I need gets lost anymore - that's the absolute best thing about this mod! I use the DV Utilities to respawn the cars that disappeared after a while when using this mod. If a station gets overcrowded, you just clear cars/trains. Works fine. I feel no fps dropping over time, but I remember that phenomen on my old pc machine like 2 years ago with the old versions of game and mod. Today, so far it's ok. I can work very well with this. It was just weird that all of a sudden most of the game-spawned cars were gone everywhere xd
can u add a new feature? create new car by radio. in my save, there is no nuclear car in military base. so i don't have that type of job. i like it (for money) but the game don't create new cars.
Before the last update i had some issues that the mod stopped working as soon as i moved to another station. So i deactivated the mod and played as regular for a while. After the update i activated the mod again and that problem is fixed BUT... Now most stations are empty....
My theory is that state was saved before the update, is there a way to regenerate the cars in the stations? Where are the cars locations saved?
I had this issue as well. Not sure if the mod stores stations you have visited and allows auto generation the first visit only. I disabled the mod, which allows the game to despawn the cars when you leave a station, but once re-enabling the mod, only stations I had not visited yet in the save had jobs anymore.
Either start a new career, or get the dvutilities mod and spawn cars to your liking, over enough time, they will get assigned to jobs if they are on the proper spurs, ie. empty tankers on an S spur at an oil well should be assigned to a shunt-loading job.
I think this mod could benefit from having an option to enable spawning on particular spur types. S jobs would spawn empties to be loaded or line hauls, I jobs would spawn jobs to be unloaded, O jobs would spawn freight haul jobs, etc.
this a bit an undocumented feature, i know - but have a look at the console commands starting with PJ. type PJ and then hit the tab key to see the list of commands.
I have not had issues yet with FPS or anything else, and this is the best mod for the game, its how I hoped jobs would be handled by default. Thank you so much
Great Mod. However once you've been to many stations the FPS bogs down to a crawl with very very low GPU usage. Turning the Mod off and fps is back to normal with high GPU usage.
I have been waiting for a mod like this for a while because i decide on a job, go to get a better loco because im at the steel mill, then the jobs reset. but how do you get new jobs if they all suck?
22 comments
so far, new passenger cars are still generated by game, not controlled by PJ.
3.2.0 is working for me no problem
Running a lot of other mods so might just be a clash but though I better document it.
Love this mod create a whole new gameplay experience
Exception thrown at UnusedTrainCarDeleter_Patches.TrainCarsCreateJobOrDeleteCheck:
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at YardTracksOrganizer.IsTrackManagedByOrganizer (DV.Logic.Job.Track track) [0x00000] in <dada6c6fa778466988cb5a66bbff0984>:0
at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches.DetermineStartingTrack (System.Collections.Generic.IReadOnlyList`1[T] trainCars) [0x00037] in <fa2c14d94b9649fab840fb5b15b255ba>:0
at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches+<ChooseTrainCarsRelationAndChopByMaxLength>d__14`1[TTrainCarRelation].MoveNext () [0x000bf] in <fa2c14d94b9649fab840fb5b15b255ba>:0
at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x0006f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00029] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToList () [0x00030] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches.ReassignJoblessRegularTrainCarsToJobsInStationAndCreateJobChainControllers (StationController station, System.Collections.Generic.List`1[T] trainsets, System.Random random) [0x00249] in <fa2c14d94b9649fab840fb5b15b255ba>:0
at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches+<>c__DisplayClass8_0.<ReassignJoblessRegularTrainCarsToJobs>b__2 (System.ValueTuple`2[T1,T2] sts) [0x00000] in <fa2c14d94b9649fab840fb5b15b255ba>:0
at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].ToList () [0x0001b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches.ReassignJoblessRegularTrainCarsToJobs (System.Collections.Generic.IReadOnlyList`1[T] trainsets, System.Random random) [0x0006f] in <fa2c14d94b9649fab840fb5b15b255ba>:0
at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches.ReassignRegularTrainCarsAndDeleteNonPlayerSpawnedCars (UnusedTrainCarDeleter unusedTrainCarDeleter, System.Collections.Generic.List`1[T] ___unusedTrainCarsMarkedForDelete, System.Boolean skipDistanceCheckForRegularTrainCars, System.Collections.Generic.IReadOnlyList`1[T] trainCarsToIgnore) [0x00328] in <fa2c14d94b9649fab840fb5b15b255ba>:0
at PersistentJobsMod.HarmonyPatches.JobGeneration.UnusedTrainCarDeleter_Patches+<TrainCarsCreateJobOrDeleteCheck>d__3.MoveNext () [0x00062] in <fa2c14d94b9649fab840fb5b15b255ba>:0
in my save, there is no nuclear car in military base. so i don't have that type of job. i like it (for money) but the game don't create new cars.
My theory is that state was saved before the update, is there a way to regenerate the cars in the stations? Where are the cars locations saved?
Either start a new career, or get the dvutilities mod and spawn cars to your liking, over enough time, they will get assigned to jobs if they are on the proper spurs, ie. empty tankers on an S spur at an oil well should be assigned to a shunt-loading job.
I think this mod could benefit from having an option to enable spawning on particular spur types. S jobs would spawn empties to be loaded or line hauls, I jobs would spawn jobs to be unloaded, O jobs would spawn freight haul jobs, etc.
but how do you get new jobs if they all suck?