• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

WalkerSim 2 (Beta)

I know there have been changes over the previous iterations of the mod up til now, but have you tried editing the WalkerSim.xml file?
Specifically the parts regarding population and group size?

<PopulationDensity>160</PopulationDensity>
<StartAgentsGrouped>true</StartAgentsGrouped>
<GroupSize>24</GroupSize>

I did but when I ran the sim it would default it back to 400, I didn't try running the game with it so ill try that now.. 

It ran the file but when I check stats the total agents and spawned remains roughly the same.

 
Decided to tweak the starting config before launching it in my single player world, and so far I've noticed a couple things. The mod is working great so far, no performance issues, but the zombie behavior is a little odd at times with how my stuff is set up:

- I have zombies set to walk at all times, night or day, but they still run when they're first spawned. As soon as they stop being in "sim" mode I guess and notice me they start walking like they're supposed to, though I did have one that I think might have been moving a bit faster than the Walk setting normally allows. Not entirely sure because I killed it pretty fast, but it was stumbling at me pretty dang quickly. Might have gotten enraged, though I also have that turned off with a mod.

- While they're running as part of the sim and haven't noticed a player yet, the zombies will usually just keep running into a wall or low obstacle without trying to path around it or climb over.

- The bigger thing I noticed is that the number of zombies ingame and shown in the viewer you can access via the console feels quite a bit more like what I wanted, and what I expected the zombies to do with the parameters set, than what the EXE viewer was showing me. I have the zombies set to stick to roads and hang around POIs for the most part, but in the EXE viewer it was often showing them roaming around the wilderness and generally not sticking to POIs as much as I wanted. Both my ingame experience and the console command viewer show a much different story though:


0pjw659.png


I honestly prefer this to what the EXE viewer was showing with these exact settings.

 
Keep getting a message that the Popdensity is set to an invalid number and that it will cap at 400? Can this be changed?

Also has anyone tried running this with Khaine's wandering horde mod?

 
If anyone wants more zombie spawn in the current patch I find that the JaxTeller718 increased zombie spawn mod works with this mod. The zombies don't show on the sim map but when you're in the area their spawn numbers seem to be multiplied.

 
MetalIzanagi said:
- The bigger thing I noticed is that the number of zombies ingame and shown in the viewer you can access via the console feels quite a bit more like what I wanted, and what I expected the zombies to do with the parameters set, than what the EXE viewer was showing me. I have the zombies set to stick to roads and hang around POIs for the most part, but in the EXE viewer it was often showing them roaming around the wilderness and generally not sticking to POIs as much as I wanted. Both my ingame experience and the console command viewer show a much different story though:
I suspect you had set the time scale in the viewer too high, the higher it goes the less inaccurate it becomes.

 
I just released a new update, more than enough people have been asking to raise the limit, here it goes, now please don't complain when the performance is abysmal and when you open the viewer in-game it will most likely freeze when there are too many, this is all on you.

Changelog

0.9.1 

  • Change: Raise density limit to 4000 and max agents to 1000000.

Download

You can download the latest version from Releases · ZehMatt/7dtd-WalkerSim2 (github.com)

 
Getting the following errors in the log when trying to run 0.9.1 in version 1.2 of 7DTD:

 

2024-12-10T22:03:11 12.542 INF [MODS] Initializing mod WalkerSim
2024-12-10T22:03:11 12.543 INF [MODS] Found ModAPI in WalkerSimMod.dll, creating instance
2024-12-10T22:03:11 12.566 ERR [MODS][Harmony] Failed to patch void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData): System.Exception: Parameter "_chunkBiomeSpawnData" not found in method void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpInstanceBoxingVar, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Reflection.MethodInfo& resultRefInvoke, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00a71] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WritePrefixes (HarmonyLib.Internal.Util.ILEmitter+Label returnLabel) [0x001e2] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0024a] in <7b787fece12a47a68027108671090713>:0
2024-12-10T22:03:11 12.576 INF [MODS][Harmony](Debug) ### Exception from user "WalkerSim.Hooks", Harmony v2.13.0.0
### Original: void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
### Patch class: WalkerSim.BiomeSpawnerHook
### HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> System.Exception: Parameter "_chunkBiomeSpawnData" not found in method void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
### at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpInstanceBoxingVar, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Reflection.MethodInfo& resultRefInvoke, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00a71] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.WritePrefixes (HarmonyLib.Internal.Util.ILEmitter+Label returnLabel) [0x001e2] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0024a] in <7b787fece12a47a68027108671090713>:0
### --- End of inner exception stack trace ---
### at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x003da] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Process (MonoMod.Cil.ILContext ilContext, System.Reflection.MethodBase originalMethod) [0x00042] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.Manipulator (MonoMod.Cil.ILContext ctx) [0x00012] in <7b787fece12a47a68027108671090713>:0
### at MonoMod.Cil.ILContext.Invoke (MonoMod.Cil.ILContext+Manipulator manip) [0x00092] in <a5a999fae61c47e7aeb47b4fbb925add>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.InvokeManipulator (MonoMod.RuntimeDetour.DetourManager+ILHookEntry entry, Mono.Cecil.MethodDefinition def) [0x0001c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.UpdateEndOfChain () [0x0008c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.AddILHook (MonoMod.RuntimeDetour.DetourManager+SingleILHookState ilhook, System.Boolean takeLock) [0x000dd] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.ILHook.Apply () [0x00052] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x00032] in <7b787fece12a47a68027108671090713>:0
### --- End of inner exception stack trace ---
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x0004c] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00033] in <7b787fece12a47a68027108671090713>:0
 
2024-12-10T22:03:11 12.578 INF [MODS][Harmony](Debug) ### Exception from user "WalkerSim.Hooks", Harmony v2.13.0.0
### Original: void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
### Patch class: WalkerSim.BiomeSpawnerHook
### HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> System.Exception: Parameter "_chunkBiomeSpawnData" not found in method void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
### at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpInstanceBoxingVar, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Reflection.MethodInfo& resultRefInvoke, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00a71] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.WritePrefixes (HarmonyLib.Internal.Util.ILEmitter+Label returnLabel) [0x001e2] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0024a] in <7b787fece12a47a68027108671090713>:0
### --- End of inner exception stack trace ---
### at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x003da] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Process (MonoMod.Cil.ILContext ilContext, System.Reflection.MethodBase originalMethod) [0x00042] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.Manipulator (MonoMod.Cil.ILContext ctx) [0x00012] in <7b787fece12a47a68027108671090713>:0
### at MonoMod.Cil.ILContext.Invoke (MonoMod.Cil.ILContext+Manipulator manip) [0x00092] in <a5a999fae61c47e7aeb47b4fbb925add>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.InvokeManipulator (MonoMod.RuntimeDetour.DetourManager+ILHookEntry entry, Mono.Cecil.MethodDefinition def) [0x0001c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.UpdateEndOfChain () [0x0008c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.AddILHook (MonoMod.RuntimeDetour.DetourManager+SingleILHookState ilhook, System.Boolean takeLock) [0x000dd] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.ILHook.Apply () [0x00052] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x00032] in <7b787fece12a47a68027108671090713>:0
### --- End of inner exception stack trace ---
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x0004c] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00033] in <7b787fece12a47a68027108671090713>:0
 
2024-12-10T22:03:11 12.579 ERR [MODS] Failed initializing ModAPI instance on mod 'WalkerSim' from DLL 'WalkerSimMod.dll'
2024-12-10T22:03:11 12.580 EXC IL Compile Error (unknown location) ---> IL Compile Error (unknown location)
at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpInstanceBoxingVar, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Reflection.MethodInfo& resultRefInvoke, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00a71] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WritePrefixes (HarmonyLib.Internal.Util.ILEmitter+Label returnLabel) [0x001e2] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0024a] in <7b787fece12a47a68027108671090713>:0
Rethrow as HarmonyException: IL Compile Error (unknown location)
at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x003da] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.Process (MonoMod.Cil.ILContext ilContext, System.Reflection.MethodBase originalMethod) [0x00042] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.ManagedMethodPatcher.Manipulator (MonoMod.Cil.ILContext ctx) [0x00012] in <7b787fece12a47a68027108671090713>:0
at MonoMod.Cil.ILContext.Invoke (MonoMod.Cil.ILContext+Manipulator manip) [0x00092] in <a5a999fae61c47e7aeb47b4fbb925add>:0
at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.InvokeManipulator (MonoMod.RuntimeDetour.DetourManager+ILHookEntry entry, Mono.Cecil.MethodDefinition def) [0x0001c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.UpdateEndOfChain () [0x0008c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.AddILHook (MonoMod.RuntimeDetour.DetourManager+SingleILHookState ilhook, System.Boolean takeLock) [0x000dd] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
at MonoMod.RuntimeDetour.ILHook.Apply () [0x00052] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x00032] in <7b787fece12a47a68027108671090713>:0
Rethrow as HarmonyException: IL Compile Error (unknown location)
at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x0004c] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00033] in <7b787fece12a47a68027108671090713>:0
Rethrow as HarmonyException: IL Compile Error (unknown location)
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00045] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x000a2] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) [0x00007] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Harmony.PatchAll () [0x0001d] in <7b787fece12a47a68027108671090713>:0
at WalkerSim.Hooks.Init () [0x0000a] in <8ad15d8e440d4107aaf5e54813330c07>:0
at WalkerSim.WalkerSimMod.IModApi.InitMod (Mod _modInstance) [0x0003b] in <8ad15d8e440d4107aaf5e54813330c07>:0
at (wrapper dynamic-method) Mod.DMD<System.Boolean Mod:InitModCode()>(Mod)
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
Mod:DMD<System.Boolean Mod:InitModCode()>(Mod)
MonoMod.Utils.DynamicMethodDefinition:SyncProxy<System.Boolean Mod:InitModCode()>(Mod)
ModManager:LoadMods()
GameManager:Awake()

 
Getting the following errors in the log when trying to run 0.9.1 in version 1.2 of 7DTD:

 

2024-12-10T22:03:11 12.542 INF [MODS] Initializing mod WalkerSim
2024-12-10T22:03:11 12.543 INF [MODS] Found ModAPI in WalkerSimMod.dll, creating instance
2024-12-10T22:03:11 12.566 ERR [MODS][Harmony] Failed to patch void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData): System.Exception: Parameter "_chunkBiomeSpawnData" not found in method void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpInstanceBoxingVar, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Reflection.MethodInfo& resultRefInvoke, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00a71] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WritePrefixes (HarmonyLib.Internal.Util.ILEmitter+Label returnLabel) [0x001e2] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0024a] in <7b787fece12a47a68027108671090713>:0
2024-12-10T22:03:11 12.576 INF [MODS][Harmony](Debug) ### Exception from user "WalkerSim.Hooks", Harmony v2.13.0.0
### Original: void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
### Patch class: WalkerSim.BiomeSpawnerHook
### HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> System.Exception: Parameter "_chunkBiomeSpawnData" not found in method void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
### at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpInstanceBoxingVar, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Reflection.MethodInfo& resultRefInvoke, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00a71] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.WritePrefixes (HarmonyLib.Internal.Util.ILEmitter+Label returnLabel) [0x001e2] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0024a] in <7b787fece12a47a68027108671090713>:0
### --- End of inner exception stack trace ---
### at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x003da] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Process (MonoMod.Cil.ILContext ilContext, System.Reflection.MethodBase originalMethod) [0x00042] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.Manipulator (MonoMod.Cil.ILContext ctx) [0x00012] in <7b787fece12a47a68027108671090713>:0
### at MonoMod.Cil.ILContext.Invoke (MonoMod.Cil.ILContext+Manipulator manip) [0x00092] in <a5a999fae61c47e7aeb47b4fbb925add>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.InvokeManipulator (MonoMod.RuntimeDetour.DetourManager+ILHookEntry entry, Mono.Cecil.MethodDefinition def) [0x0001c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.UpdateEndOfChain () [0x0008c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.AddILHook (MonoMod.RuntimeDetour.DetourManager+SingleILHookState ilhook, System.Boolean takeLock) [0x000dd] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.ILHook.Apply () [0x00052] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x00032] in <7b787fece12a47a68027108671090713>:0
### --- End of inner exception stack trace ---
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x0004c] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00033] in <7b787fece12a47a68027108671090713>:0
 
2024-12-10T22:03:11 12.578 INF [MODS][Harmony](Debug) ### Exception from user "WalkerSim.Hooks", Harmony v2.13.0.0
### Original: void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
### Patch class: WalkerSim.BiomeSpawnerHook
### HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> HarmonyLib.HarmonyException: IL Compile Error (unknown location) ---> System.Exception: Parameter "_chunkBiomeSpawnData" not found in method void SpawnManagerBiomes::SpawnUpdate(string _spawnerName, bool _isSpawnEnemy, ChunkAreaBiomeSpawnData _spawnData)
### at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpInstanceBoxingVar, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Reflection.MethodInfo& resultRefInvoke, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00a71] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.WritePrefixes (HarmonyLib.Internal.Util.ILEmitter+Label returnLabel) [0x001e2] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0024a] in <7b787fece12a47a68027108671090713>:0
### --- End of inner exception stack trace ---
### at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x003da] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Process (MonoMod.Cil.ILContext ilContext, System.Reflection.MethodBase originalMethod) [0x00042] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.Manipulator (MonoMod.Cil.ILContext ctx) [0x00012] in <7b787fece12a47a68027108671090713>:0
### at MonoMod.Cil.ILContext.Invoke (MonoMod.Cil.ILContext+Manipulator manip) [0x00092] in <a5a999fae61c47e7aeb47b4fbb925add>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.InvokeManipulator (MonoMod.RuntimeDetour.DetourManager+ILHookEntry entry, Mono.Cecil.MethodDefinition def) [0x0001c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.UpdateEndOfChain () [0x0008c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.AddILHook (MonoMod.RuntimeDetour.DetourManager+SingleILHookState ilhook, System.Boolean takeLock) [0x000dd] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at MonoMod.RuntimeDetour.ILHook.Apply () [0x00052] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x00032] in <7b787fece12a47a68027108671090713>:0
### --- End of inner exception stack trace ---
### at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x0004c] in <7b787fece12a47a68027108671090713>:0
### at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00033] in <7b787fece12a47a68027108671090713>:0
 
2024-12-10T22:03:11 12.579 ERR [MODS] Failed initializing ModAPI instance on mod 'WalkerSim' from DLL 'WalkerSimMod.dll'
2024-12-10T22:03:11 12.580 EXC IL Compile Error (unknown location) ---> IL Compile Error (unknown location)
at HarmonyLib.Public.Patching.HarmonyManipulator.EmitCallParameter (System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, Mono.Cecil.Cil.VariableDefinition& tmpInstanceBoxingVar, Mono.Cecil.Cil.VariableDefinition& tmpObjectVar, System.Reflection.MethodInfo& resultRefInvoke, System.Collections.Generic.List`1[HarmonyLib.Public.Patching.HarmonyManipulator+ArgumentBoxInfo]& tmpBoxVars) [0x00a71] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WritePrefixes (HarmonyLib.Internal.Util.ILEmitter+Label returnLabel) [0x001e2] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0024a] in <7b787fece12a47a68027108671090713>:0
Rethrow as HarmonyException: IL Compile Error (unknown location)
at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x003da] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.Process (MonoMod.Cil.ILContext ilContext, System.Reflection.MethodBase originalMethod) [0x00042] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.Manipulate (System.Reflection.MethodBase original, MonoMod.Cil.ILContext ctx) [0x00007] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Public.Patching.ManagedMethodPatcher.Manipulator (MonoMod.Cil.ILContext ctx) [0x00012] in <7b787fece12a47a68027108671090713>:0
at MonoMod.Cil.ILContext.Invoke (MonoMod.Cil.ILContext+Manipulator manip) [0x00092] in <a5a999fae61c47e7aeb47b4fbb925add>:0
at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.InvokeManipulator (MonoMod.RuntimeDetour.DetourManager+ILHookEntry entry, Mono.Cecil.MethodDefinition def) [0x0001c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.UpdateEndOfChain () [0x0008c] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
at MonoMod.RuntimeDetour.DetourManager+ManagedDetourState.AddILHook (MonoMod.RuntimeDetour.DetourManager+SingleILHookState ilhook, System.Boolean takeLock) [0x000dd] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
at MonoMod.RuntimeDetour.ILHook.Apply () [0x00052] in <1a5d3ab1634e43cd8c9776d0aef7e056>:0
at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x00032] in <7b787fece12a47a68027108671090713>:0
Rethrow as HarmonyException: IL Compile Error (unknown location)
at HarmonyLib.Public.Patching.ManagedMethodPatcher.DetourTo (System.Reflection.MethodBase replacement) [0x0004c] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00033] in <7b787fece12a47a68027108671090713>:0
Rethrow as HarmonyException: IL Compile Error (unknown location)
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00045] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x000a2] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) [0x00007] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <7b787fece12a47a68027108671090713>:0
at HarmonyLib.Harmony.PatchAll () [0x0001d] in <7b787fece12a47a68027108671090713>:0
at WalkerSim.Hooks.Init () [0x0000a] in <8ad15d8e440d4107aaf5e54813330c07>:0
at WalkerSim.WalkerSimMod.IModApi.InitMod (Mod _modInstance) [0x0003b] in <8ad15d8e440d4107aaf5e54813330c07>:0
at (wrapper dynamic-method) Mod.DMD<System.Boolean Mod:InitModCode()>(Mod)
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
Mod:DMD<System.Boolean Mod:InitModCode()>(Mod)
MonoMod.Utils.DynamicMethodDefinition:SyncProxy<System.Boolean Mod:InitModCode()>(Mod)
ModManager:LoadMods()
GameManager:Awake()
Same here, i end up with spawns like i had just started a new game. areas i had cleared and walled off are now randomly spawning groups.

 
Changelog

0.9.2

  • Fix: Support for version 1.2.
  • Change: WalkerSim.xml configuration changed, old configuration files will no longer work.
  • Change: Print a hint to the console when the local configuration does not match the one in the saved simulation.

Download

You can download the latest version from Releases · ZehMatt/7dtd-WalkerSim2 (github.com)

 
Awesome mod, this is way better than the vanilla spawning of non-sleepers. It makes the world feel more lively, like there's an actual ecosytem of zombies, instead of a couple popping into existence every now and then.

ZehMatt said:
That is currently a bug that I have to yet solve, the detection of where the game installed is rather vague as with Steam the game can be anywhere. I have to fix this eventually. In the mean time you can edit the installation path for of 7 Days to Die in the registry, its located in `Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 251570` where the key `InstallLocation` should be ideally set to where your 7 Days to Die is installed.


I'm having this issue too, but I couldn't find the registry for 7 Days to Die. I could for other Steam games, so I'm pretty sure I got the right path.

Would it be possible to direct the program to where the maps are saved manually (e.g. it fails to find them automatically, so you can put in a custom file path)? Generated maps are usually in appdata, while premade maps that ship with the game are with the Steam install.

 
Awesome mod, this is way better than the vanilla spawning of non-sleepers. It makes the world feel more lively, like there's an actual ecosytem of zombies, instead of a couple popping into existence every now and then.

I'm having this issue too, but I couldn't find the registry for 7 Days to Die. I could for other Steam games, so I'm pretty sure I got the right path.

Would it be possible to direct the program to where the maps are saved manually (e.g. it fails to find them automatically, so you can put in a custom file path)? Generated maps are usually in appdata, while premade maps that ship with the game are with the Steam install.


I will fix this one day, people should try the xml shipped with the build first before attempting to do their own scenario, getting some of the numbers right can be a bit finicky and the default configuration I consider balanced enough for normal playthroughs.

 
They are everywhere...Too many of them...I can't go on.......Well i like to see more  of zombies..but i still want to live...Come on  man how can i do with this?  And I have the NPC mod...You know what..too many of Harly came out want to kill me!

 
This Mod is excellent. I finally have the dangerous environment i wanted. Is there a way to scale the ingame map? I play 4k and the ingame map is so tiny.  I have been walling off blocks of the city as i clear it, and it is so nice to not have to worry about things spawning inside the cleared zone.

 
This Mod is excellent. I finally have the dangerous environment i wanted. Is there a way to scale the ingame map? I play 4k and the ingame map is so tiny.  I have been walling off blocks of the city as i clear it, and it is so nice to not have to worry about things spawning inside the cleared zone.
The map is more of a debug tool to confirm the thing is going, I have no intention on changing or improving that, sorry. That map is also a bit of a cheat as you could check where the hordes are at.

 
((EDITPART= SO I used this mod a few months ago now and it was crazy to many zombies, I had to quit the first di quest, I want a lot of zombies but not that many. so I have started playing and wanted to try and use this mod, but I would like there to be half as many zombies. also I started a new game and went into it and there are not an abnormal amount of zombies, one maybe two walking around the dessert town. Has this mod been updated to 1.2 I thought it said it has been, if so has it already been nerfed and not as many zombies spawn? thanks ))

(( 2nd EDIT @ZehMattso I logged into my game and it did infact seem to have more zombies then before. what numbers can I raise and lower to change the settings. I feel like now i need the same amount of zombies just spawning in faster. is there anywhere I can read what all the settings do? thanks for the mod :) )))

So, I used this mod and enjoyed it for adding more zombies, but it was to many.... where do I go in the mod to lower the number of zombies? looking at the files I see this.

 <PopulationDensity>160</PopulationDensity>
    <StartAgentsGrouped>true</StartAgentsGrouped>
    <GroupSize>24</GroupSize>

IS the pop density what I would need to change? thanks, for the great Mod.

 
Last edited by a moderator:
Awesome mod!

Is the "investigate sound" mechanic hard coded into the mod? Could it be made an option to turn this off, or add a "range" option to set the sound range?

lordneg - yes you can change either PopulationDensity or GroupSize to modify the amount of zombies. Use WalkerSim.exe to check how many zombies spawn with values you put in.

 
Awesome mod!

Is the "investigate sound" mechanic hard coded into the mod? Could it be made an option to turn this off, or add a "range" option to set the sound range?

lordneg - yes you can change either PopulationDensity or GroupSize to modify the amount of zombies. Use WalkerSim.exe to check how many zombies spawn with values you put in.
Thank you very much. :)

 
Back
Top