ArgumentOutOfRangeException at GetSkinIdFixed
Failed to call hook 'OnEntitySpawned' on plugin 'PlaguedMurderers v2.0.0' (ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue.Parameter name: minValue) at System.Random.Next (System.Int32 minValue, System.Int32 maxValue) [0x00029] in <fb001e01371b4adca20013e0ac763896>:0 at Oxide.Core.Random.Range (System.Int32 min, System.Int32 max) [0x00000] in <ec05e0208c9149bba43236ca58fea105>:0 at Oxide.Plugins.PlaguedMurderers.GetSkinId (System.Collections.Generic.List`1[T] Skins) [0x00007] in <5ac0d343999141409ec3e41fdd4a25a2>:0 at Oxide.Plugins.PlaguedMurderers.GetItem (System.Collections.Generic.List`1[T] ClothingItems) [0x0004a] in <5ac0d343999141409ec3e41fdd4a25a2>:0 at Oxide.Plugins.PlaguedMurderers.OnEntitySpawned (NPCMurderer murderer) [0x0001a] in <5ac0d343999141409ec3e41fdd4a25a2>:0 at Oxide.Plugins.PlaguedMurderers.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0005b] in <5ac0d343999141409ec3e41fdd4a25a2>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0​

Things I should note:

> I changed the items listed in the config to what I wanted, following the code structure and adding/removing items as necessary.
> I also changed the skin references, by removing the listed skin codes as detailed in the plugin documentation so that the items would spawn on the Murderers in their default skin.
> When changing the skin references, I edited the lines so that only those items listed in the first section of the config were present in the skin list - i.e. since I chose not to have the bucket helmet in the pool of selectable attire, I removed the bucket helmet line from the skins section (adding/removing any other lines as necessary per my attire selection in the first section of the config)
> Finally, I noticed that the .cs file did not update with the changes I made in the config - i.e., it still retained lines referencing the bucket helmet, and also for skins for the bucket helmet, even though I removed those in the config file. The above errors appeared both before and after I attempted to edit these lines in the .cs file to match what I changed in the config.

Any assistance would be very much appreciated!
@Smilyguy are you able to post your config, or a link to it here?

The .cs file won't update when you change the config, the details contained within it are used purely to create the default config
sure thing!
{
"Glowing Eyes": true,
"Attire Headwear": [
"santahat",
"santabeard",
"attire.reindeer.headband",
"hat.ratmask",
"hat.dragonmask",
"none"
],
"Attire Torso": [
"tshirt",
"tshirt.long",
"jacket",
"jacket.snow",
"none"
],
"Attire Legs": [
"pants",
"none"
],
"Attire Feet": [
"shoes.boots",
"none"
],
"Attire Hands": [
"tactical.gloves",
"none"
],
"Skins": {
"santahat": [],
"santabeard": [],
"attire.reindeer.headband": [],
"hat.ratmask": [],
"hat.dragonmask": [],
"tshirt": [],
"tshirt.long": [],
"jacket": [],
"jacket.snow": [],
"pants": [],
"shoes.boots": [],
"tactical.gloves": []
}
}

that makes more sense now regarding the .cs file. I kept a backup of the original so I can swap it back.
Thanks for posting the config @Smilyguy

Previously the way to utilise default skins was to simply not define them in the Skins object, so your config would work with 

"Skins": {}

However, the code should be handling empty arrays within the Skins object, so I have now updated the code to do so in v2.0.1

Also - any defined skins for items not used will be safely ignored.

Update to this version and you should be good to go. Thanks for pointing this out :)
Fantastic! Thanks very much - I'll give it a whirl!
Locked automatically