Another attempt to use mod (I like it's idea) and another bug 😛
When i try to spawn any kind of cop (or game tries to spawn like in hordes or POI). I see such error in log:
2023-08-29T21:08:58 209.942 INF Executing command 'cm'
2023-08-29T21:09:00 212.057 INF Executing command 'dm'
2023-08-29T21:09:03 215.595 INF Saving 170 of chunks took 120ms
2023-08-29T21:09:04 215.804 INF [DECO] written 310985, in 208ms
2023-08-29T21:09:04 215.815 INF [DECO] write thread 10ms
2023-08-29T21:09:17 229.111 INF Saving 59 of chunks took 80ms
2023-08-29T21:09:25 237.607 INF Time: 3.21m FPS: 34.85 Heap: 2419.6MB Max: 2419.6MB Chunks: 289 CGO: 144 Ply: 1 Zom: 0 Ent: 3 (3) Items: 0 CO: 1 RSS: 6084.1MB
ArgumentException: Type cannot be null.
at (wrapper managed-to-native) UnityEngine.GameObject.GetComponent(UnityEngine.GameObject,System.Type)
at EModelBase.createAvatarController (EntityClass _ec) [0x000e0] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at (wrapper dynamic-method) EModelBase.DMD<EModelBase::Init>(EModelBase,World,Entity)
at Entity.InitEModel () [0x00061] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at Entity.Init (System.Int32 _entityClass) [0x0000d] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at EntityAlive.Init (System.Int32 _entityClass) [0x00000] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at EntityEnemy.Init (System.Int32 _entityClass) [0x00000] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at EntityZombieCop.Init (System.Int32 _entityClass) [0x00000] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at EntityFactory.CreateEntity (EntityCreationData _ecd) [0x004c2] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at EntityFactory.CreateEntity (System.Int32 _et, System.Int32 _id, ItemValue _itemValue, System.Int32 _count, UnityEngine.Vector3 _transformPos, UnityEngine.Vector3 _transformRot, System.Single _lifetime, System.Int32 _playerId, System.String _skinName, System.Int32 _spawnById, System.String _spawnByName) [0x0001b] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at EntityFactory.CreateEntity (System.Int32 _et, System.Int32 _id, UnityEngine.Vector3 _transformPos, UnityEngine.Vector3 _rotation) [0x0000c] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at EntityFactory.CreateEntity (System.Int32 _et, UnityEngine.Vector3 _transformPos, UnityEngine.Vector3 _rotation) [0x00000] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiC_SpawnMenu.BtnSpawns_OnPress (System.Int32 _key) [0x001d5] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiC_SpawnMenu.EntitiesList_SelectionChanged (XUiC_ListEntry`1[T] _previousEntry, XUiC_ListEntry`1[T] _newEntry) [0x0001d] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiC_List`1[T].OnSelectionChanged (XUiC_ListEntry`1[T] _previousEntry, XUiC_ListEntry`1[T] _newEntry) [0x00010] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiC_List`1[T].set_SelectedEntry (XUiC_ListEntry`1[T] value) [0x0009d] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiC_ListEntry`1[T].set_Selected (System.Boolean value) [0x0007f] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiC_ListEntry`1[T].XUiC_ListEntry_OnPress (XUiController _sender, System.Int32 _mouseButton) [0x00016] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiController.OnPressed (System.Int32 _mouseButton) [0x0000e] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiController.Pressed (System.Int32 _mouseButton) [0x00000] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at XUiView.OnClick (UnityEngine.GameObject _go) [0x0003f] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
at UIEventListener.OnClick () [0x0001c] in <f62c1f5c97c445c2a14e9b2f5e8c30ee>:0
UnityEngine.GameObject:SendMessage(GameObject, String, Object, SendMessageOptions)
UICamera:Notify(GameObject, String, Object)
UICamera:ProcessRelease(Boolean, Single)
UICamera:ProcessTouch(Boolean, Boolean)
UICamera:ProcessMouse()
UICamera:ProcessEvents()
UICamera:Update()
As I checked it happens only with cops .. when I removed cop entry in file: 7 Days To Die/Mods/0-RomeroModCore/Config/entityclasses.xml
Problem vanishes