ComponentBlocker

Moved

Total Downloads: 2,275 - First Release: Oct 18, 2015 - Last Update: Feb 4, 2017

5/5, 11 likes
  1. Calytic

    Calytic Community Admin Community Mod

    Thanks for the report, I will push a fix for this in a few hours.
     
  2. Calytic

    Calytic Community Admin Community Mod

  3. Am I able to remove crude oil barrels using this? I've removed the crude oil itself, but the barrels still spawn. Am I also able top remove the airdrop plane? Am I able to remove other world-generated things, such as power lines and power pylons.

    If I can remove these things, how do I do it?
    I'm making a medieval-era server and the above just don't fit.
     
  4. Calytic

    Calytic Community Admin Community Mod

    Yes, you can remove oil barrels and airdrops.

    You can go up to an entity in game and press F5. That will give you the prefab name, you can then use that name (or a shortened version) to block the entity.

    For example:
    Code:
    /blocker oil_barrel
    /blocker cargo_plane
    Unfortunately, removing things that are part of procgen map generator is not possible (power lines, pylons, rocks, airfield, etc). Sorry.
     
  5. I noticed yesterday that to block the cargo plane I must use the full path to the prefab. A shortened version (like the example you gave) did not work.
    Also, the server fails to start and gives a NullRefException if the Supply Drop is blocked. (Works fine while the server is running though.)

    Just this morning someone one my server revealed a blueprint, and the console gave this message. The player never said anything so I'm not sure if they saw anything wrong on their end:
    Code:
    [Oxide] 7:15 AM [Error] Failed to call hook 'OnBlueprintReveal' on plugin 'ComponentBlocker v0.0.42' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 7:15 AM [Debug]  at Oxide.Plugins.ComponentBlocker.CheckItem (.Item item) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ComponentBlocker.OnBlueprintReveal (.Item item, .Item revealed, .BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ComponentBlocker.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
    Thank-you for this awesome plugin. Without it I wouldn't have been able to do what I've done on my server. :)

    EDIT: Just tested it myself. When a blueprint for a blocked item is produced, you do not get the blueprint fragments returned and the above error gets displayed in the console.
     
    Last edited by a moderator: Nov 4, 2015
  6. Calytic

    Calytic Community Admin Community Mod

    Calytic updated ComponentBlocker with a new update entry:

    0.0.44

     
  7. Calytic

    Calytic Community Admin Community Mod

    What blueprints are you blocking so I can test this?
     
  8. Is it possible to only block an item from being crafted, but still let the item be looted from airdrops ?
     
  9. Calytic

    Calytic Community Admin Community Mod

    That would be out of the scope of this mod. I could add a setting to enable craft blocking and not spawn blocking but it would apply to all items equally, not specific items.
     
  10. If I wanted C4 and rockets to only be obtained by looting, is there a way to block the blueprints for those items from spawning in barrels and such? Or ultimately blocking explosives and explosive blueprints from spawning/existing?
     
  11. I run a medieval-themed server, so I'm blocking a large number of items. I have attached the config file.
     

    Attached Files:

  12. [Oxide] 2:43 PM [Warning] 'ComponentBlocker v0.0.44' plugin is using deprecated hook: OnItemPickup
     
  13. Calytic

    Calytic Community Admin Community Mod

    Calytic updated ComponentBlocker with a new update entry:

    0.0.46

     
  14. Hi Calytic and thanks for your plugin!

    I've one question.
    Some of my players are telling me that they don't have BP fragments (or BP book, etc) in return when they try to reveal one.

    Is it a bug?

    Thanks!
     
  15. I'm getting this error after updating to the new version.
    [Oxide] 2:49 AM [Error] Failed to call hook 'OnCollectiblePickup' on plugin 'ComponentBlocker v0.0.46' (InvalidCastException: Cannot cast from source type to destination type.)
     
  16. Calytic

    Calytic Community Admin Community Mod

    Calytic updated ComponentBlocker with a new update entry:

    0.0.47


    [DOUBLEPOST=1449289723][/DOUBLEPOST]
    You can block c4 and explosives from spawning completely with this plugin. This plugin would completely remove them from the game so they are unobtainable by any means. The following command will block both c4 and explosives

    Code:
    /blocker explosives
    I have had multiple reports of this but have not been able to reproduce it. I made a minor change last version (0.0.47) which might help but I don't know. It works well enough for me. It may be because their inventory is full and the fragments are being dropped to the ground and they don't notice.

    Fixed! Thanks!
     
  17. Thanks I'll check!
     
  18. FTM

    FTM

    [Oxide] 7:59 PM [Warning] 'ComponentBlocker v0.0.44' plugin is using deprecated hook: OnItemPickup
     
  19. You need to update to the latest version
     
  20. FTM

    FTM

    I did..