1. DylanSMR submitted a new resource:

    BlueprintBlocker - Allows you to block certain blueprints from being learned

    Read more about this resource...
     
  2. DylanSMR updated BlueprintBlocker with a new update entry:

    1.0.0

     
  3. Dude, better change to:

    Code:
    lang.RegisterMessages(new Dictionary<string,string>{
                    ["BP_NOLEARN"] = "<color='#DD0000'>Вы не можете выучить: { 0 }, т.к. он находится в черном списке!</color>",
                }, this, "ru");
     
    Last edited by a moderator: Apr 20, 2016
  4. Wulf

    Wulf Community Admin

    It actually needs the spaces removed with {0} too.
     
  5. Changed, can remove this msg
     
  6. Wulf

    Wulf Community Admin

    It doesn't need to be removed, it just provides a language file for RU in addition to the default EN.
     
  7. I'm just about yours, I've just fixed msg :D
     
  8. Lol yeah sorry, google translate happened to space it out. I'll change it next time I update.
     

    Attached Files:

  9. Code:
    {
      "BP_NOLEARN": "<color='#DD0000'>Вы не можете  изучить { 0 } , так как это запрещено правилами сервера!</color>"
    }
    So it would be better to understand, although not quite match the original.
    Code:
    You cannot study {0} as it is forbidden by rules of a server
     
  10. All in all it's not the same as original ENG version.
     
  11. It should be, translated it straight from english.
     
  12. I just added this on my server and it's throwing this up every few seconds.

    [Oxide] 12:08 [Error] Failed to call hook 'OnConsumableUse' on plugin 'BlueprintBlocker v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 12:08 [Debug] at Oxide.Plugins.BlueprintBlocker.OnConsumableUse (.Item item) [0x00000] in <filename unknown>:0 at Oxide.Plugins.BlueprintBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
  13. You need to add items in into the config file.
     
  14. The commands in your first post don't work. Can you give me an example of how the code should look after I add a couple items, please?

    {
    "blueprintBlacklist": []
    }
     
  15. "blueprintBlacklist": [
    "item.item",
    "item.item",
    "item.item"
    ]
     
  16. This is what I put in...

    {
    "blueprintBlacklist": [
    "explosive.timed",
    "explosives"
    ]
    }

    I'm still getting the blueprints and this error message:

    > oxide.reload BlueprintBlocker
    [Oxide] 07:57 [Info] Unloaded plugin BlueprintBlocker v1.0.0 by DylanSMR
    [Oxide] 07:57 [Info] Loaded plugin BlueprintBlocker v1.0.0 by DylanSMR
    [Oxide] 07:58 [Error] Failed to call hook 'OnConsumableUse' on plugin 'BlueprintBlocker v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 07:58 [Debug] at Oxide.Plugins.BlueprintBlocker.OnConsumableUse (.Item item) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.BlueprintBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Apr 21, 2016
  17. DylanSMR updated BlueprintBlocker with a new update entry:

    1.0.2

     
  18. Well, I'm still getting the same errors. I completely removed LootConfig, restarted my server and added it back in. I didn't remove any blueprints or items. We don't get kicked now which is good (when we try to reveal a C4 or explosives BP), but the error still spams and we are still getting the BPs for the ones I tried to block. Sorry for being such an annoyance, but thought you should know.
     
  19. Oh its alright, you added it via the command I created right? If that doesn't work I will work with it.
     
  20. DylanSMR updated BlueprintBlocker with a new update entry:

    1.0.3