NullReferenceException at InitValidListError

When I load the plugin with o.load PrivilegeDeploy I keep getting this error.

Failed to call hook 'OnServerInitialized' on plugin 'PrivilegeDeploy v0.1.7' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.PrivilegeDeploy.InitValidList () [0x000d7] in <8b0f7c6fdca441e3a0a9c8615ac0d939>:0
at Oxide.Plugins.PrivilegeDeploy.OnServerInitialized () [0x00006] in <8b0f7c6fdca441e3a0a9c8615ac0d939>:0
at Oxide.Plugins.PrivilegeDeploy.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00137] in <8b0f7c6fdca441e3a0a9c8615ac0d939>: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>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
Failed to call hook 'OnServerInitialized' on plugin 'PrivilegeDeploy v0.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.PrivilegeDeploy.InitValidList () [0x000d7] in :0
at Oxide.Plugins.PrivilegeDeploy.OnServerInitialized () [0x00006] in :0
at Oxide.Plugins.PrivilegeDeploy.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00137] in :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 :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

same here!

Same here:
Not only is the plugin erroring but it allows placment of things in its config.

Please let me know if you need anything else to help you fix it.

My values in the config are default apart from Campfires being taken out.

Failed to call hook 'OnServerInitialized' on plugin 'PrivilegeDeploy v0.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.PrivilegeDeploy.InitValidList () [0x000d7] in <914572bc4d374748ad40ad1f9927c2e3>:0
  at Oxide.Plugins.PrivilegeDeploy.OnServerInitialized () [0x00006] in <914572bc4d374748ad40ad1f9927c2e3>:0
  at Oxide.Plugins.PrivilegeDeploy.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00137] in <914572bc4d374748ad40ad1f9927c2e3>:0 , 4kb/s out
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0​

Seems it's still broke. There's like no plugins like this at all. I wish this one was working. There's only 1 cleaning mod for server and I can't use it due to the nature of the server we have. It won't work cause of how many items we have. It's too much for it. It's a shame plugins like this are no longer working. Another hope destroyed-

I have glanced at the plugin, and the solution is a simple modification to line 115 by replacing the current check 

if (!constructionToIngredients.ContainsKey(construction.fullName))

with:

if (!constructionToIngredients.ContainsKey(construction.fullName) && construction.defaultGrade != null)

And the plugin should function as intended. I have brought this to the attention of @k1lly0u in hopes of an update being released soon.

fuDyy96Z19G1tGf.png Dana

I have glanced at the plugin, and the solution is a simple modification to line 116 by replacing the current check 

if (!constructionToIngredients.ContainsKey(construction.fullName))

with:

if (!constructionToIngredients.ContainsKey(construction.fullName) && construction.defaultGrade != null)

And the plugin should function as intended. I have brought this to the attention of @k1lly0u in hopes of an update being released soon.

Legend! Thanks a ton! I hope he does input it in for others who come across this. I was surprised to find out it wasn't working. Normally his stuff does.

RuJ9LZlo95SMGfj.png Dana

I have glanced at the plugin, and the solution is a simple modification to line 115 by replacing the current check 

if (!constructionToIngredients.ContainsKey(construction.fullName))

with:

if (!constructionToIngredients.ContainsKey(construction.fullName) && construction.defaultGrade != null)

And the plugin should function as intended. I have brought this to the attention of @k1lly0u in hopes of an update being released soon.

Playing around with it for a bit, seems editing the config breaks it? I can't seem to get it to work after editing the config. There's no conflicts. Just doesn't work after edited. So, there might be something else wrong with it.

 

Edit: Maybe there's something wrong with it registering shortnames? Seems not all shortnames it reconizes? So, maybe somethings messed up with that. Just seems adding that in didn't fully do it to get it working properly? Though, glad it's somewhat working. I don't think it'll try full names, but that's the only thing I haven't tried.

YNzM4dcioqPVkRe.png Dana

I have glanced at the plugin, and the solution is a simple modification to line 115 by replacing the current check 

if (!constructionToIngredients.ContainsKey(construction.fullName))

with:

if (!constructionToIngredients.ContainsKey(construction.fullName) && construction.defaultGrade != null)

And the plugin should function as intended. I have brought this to the attention of @k1lly0u in hopes of an update being released soon.

Playing around with it for a bit, seems editing the config breaks it? I can't seem to get it to work after editing the config. There's no conflicts. Just doesn't work after edited. So, there might be something else wrong with it.

 

My list just in case:

 

"firework.boomer.blue",
"firework.romancandle.blue",
"firework.boomer.champagne",
"firework.boomer.green",
"firework.romancandle.green",
"firework.boomer.orange",
"firework.boomer.pattern",
"firework.boomer.red",
"firework.romancandle.red",
"firework.volcano.red",
"firework.boomer.violet",
"firework.romancandle.violet",
"firework.volcano.violet",
"firework.volcano",
"xmas.tree",
"water.catcher.large",
"water.catcher.small",
"sign.post.double",
"sign.wooden.huge",
"sign.pictureframe.landscape",
"sign.neon.xl.animated",
"sign.hanging.banner.large",
"sign.pole.banner.large",
"sign.neon.xl",
"sign.wooden.large",
"sign.neon.125x215.animated",
"sign.neon.125x215",
"sign.wooden.medium",
"sign.post.town",
"sign.pictureframe.portrait",
"sign.post.single",
"sign.neon.125x125",
"sign.wooden.small",
"sign.pictureframe.tall",
"sign.hanging",
"sign.hanging.ornate",
"sign.post.town.roof",
"sign.pictureframe.xl",
"sign.pictureframe.xxl",
"water.barrel",
"frankensteintable",
"hobobarrel.deployed",
"planter.large",
"planter.small",
"electric.sprinkler",
"electric.battery.rechargable.small",
"electric.rf.broadcaster",
"snowmachine",
"secretlabchair"

The plugin only covers certain types of deployables.

46glsz50FHb4Sdc.png Dana

The plugin only covers certain types of deployables.

Oh, I thought it would cover them all pretty much. Well, I guess something is better than nothing. At least until the owner has someone make one. Thanks though!

js7pgQELUvObmpA.png Dana

I have glanced at the plugin, and the solution is a simple modification to line 115 by replacing the current check 

if (!constructionToIngredients.ContainsKey(construction.fullName))

with:

if (!constructionToIngredients.ContainsKey(construction.fullName) && construction.defaultGrade != null)

And the plugin should function as intended. I have brought this to the attention of @k1lly0u in hopes of an update being released soon.

Any chance you have made a fix for the fix? Thanks.

Failed to compile: PrivilegeDeploy.cs(118,104): error CS1061: Type `ConstructionGrade' does not contain a definition for `costToBuild' and no extension method `costToBuild' of type `ConstructionGrade' could be found. Are you missing an assembly reference?