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

    0.0.47 doesn't use OnItemPickup
     
  2. Hello gentlemen, is there any chance to remove constructions like the Satellite or the Sphere with Component Blocker?
    Thank you.
     
  3. Calytic

    Calytic Community Admin Community Mod

    No, these are generated by procgen client-side
     
  4. Calytic

    Calytic Community Admin Community Mod

    Calytic updated ComponentBlocker with a new update entry:

    0.0.48

     
  5. For some reason the plugin blocks hide pants, bone armor, and wood armor when i never specified. I even tried blocking and unblocking and they are still saying blocked. Heres my config
     

    Attached Files:

  6. Calytic

    Calytic Community Admin Community Mod

    The block list is very permissive. Specifying "pants" in your configuration will block all items that include "pants" in their item name. This includes wood and bone pants. You can use the full asset or short asset path to block a particular type of pants specifically.

    Here are the paths for all pants

    Code:
    pants.bonearmor
    pants.burlap
    pants.hazmat
    pants.hide
    pants.patchwork
    pants.roadsign
    pants.shorts
    pants.woodarmor
    pants.cargo
    pants.generic
     
  7. I added all these besides burlap ,hide ,woodarmor ,bonearmor and I'm still able to craft the normal pants
     
  8. Calytic

    Calytic Community Admin Community Mod

    Calytic updated ComponentBlocker with a new update entry:

    0.0.49

     
  9. okay after the patch there is a bug where items blocked by the plugin give you back infinite resources.
     
  10. Calytic

    Calytic Community Admin Community Mod

    I am not able to reproduce this, please provide more information.

    Does this happen when crafting? Does it happen with only particular items?
     
    Last edited: Dec 18, 2015
  11. okay basically i use CraftingController to block my items, then when presents were introduced i added componentblocker to limit the items from there. Well people were trying to craft say the waterpipe shotgun and they were getting refunded more resources than they spent. the guys had over 100k stacks of wood and frags.
     
  12. Calytic

    Calytic Community Admin Community Mod

    Alright, thank you for that information. I have identified the issue. This is not strictly an issue with ComponentBlocker.

    What is happening is that ComponentBlocker and CraftingController are both refunding ingredients. If an item is blocked with CraftingController AND ComponentBlocker, you will get twice the resources as a refund.
     
  13. The not returning blueprints issue seems to only occur when I have only 1 page. If i have lets say 5 pages stacked together it will return the page back to me in the pile, if i get down to one page in the pile it will always take it and not refund it. Tryed it multiple times with the same results. Will test on books next !
     
  14. Calytic

    Calytic Community Admin Community Mod

    Thanks for the actionable report. I'll look into this ASAP
     
  15. Plugin does not seem to be blocking items from spawning. Here is my config:
    Code:
    {
      "blockList": [{   
        "ammo.rocket.basic",
        "ammo.rocket.fire",
        "ammo.rocket.hv",
        "ammo.rocket.smoke",
        "ammo.shotgun",
        "ammo.shotgun.slug",
        "autoturret",
        "battery.small",
        "cctv.camera",
        "explosives",
        "flare",
        "generator.wind.scrap",
        "grenade.f1",
        "pistol.revolver",
        "pistol.eoka",
        "pistol.semiauto",
        "rifle.bolt",
        "rocket.launcher",
        "shotgun.pump",
        "smg.2",
        "smg.thompson",
        "targeting.computer",
        "trap.landmine",
        "weapon.mod.holosight",
        "weapon.mod.silencer",
        "mining.pumpjack",
        "mining.quarry",
        "small.oil.refinery",
        "hq.metal.ore",
        "coffeecan.helmet",
        "supply.signal",
        "assets/prefabs/npc/cargo plane/cargo_plane.prefab",
        "blood",
        "assets/prefabs/npc/patrol helicopter/patrolhelicopter.prefab",
        "explosive.timed",
        "rifle.ak",
        "ammo.rifle",
        "can.beans",
        "can.beans.empty",
        "can.tuna",
        "can.tuna.empty",
        "granolabar",
        "hat.beenie",
        "hat.boonie",
        "hat.cap",
        "hoodie",
        "jacket",
        "largemedkit",
        "syringe.medical",
        "tshirt",
        "tshirt.long",
        "door.hinged.metal",
        "door.hinged.toptier"
      "blockList": [  ],
      "messages": {
        "You are not allowed to use this command": "You are not allowed to use this command",
        "You may not craft this (restricted)": "You may not craft this (restricted)",
        "You may not deploy this (restricted)": "You may not deploy this (restricted)",
        "You may not pick that up (restricted)": "You may not pick that up (restricted)",
        "You may not research this (restricted)": "You may not research this (restricted)",
        "You may not research this (restricted), blueprints refunded!": "You may not research this (restricted), blueprints refunded!"
      },
      "sendMessages": true,
      "VERSION": "0.0.42"
    }],
      "messages": {
        "You are not allowed to use this command": "You are not allowed to use this command",
        "You may not craft this (restricted)": "You may not craft this (restricted)",
        "You may not deploy this (restricted)": "You may not deploy this (restricted)",
        "You may not pick that up (restricted)": "You may not pick that up (restricted)",
        "You may not research this (restricted)": "You may not research this (restricted)",
        "You may not research this (restricted), blueprints refunded!": "You may not research this (restricted), blueprints refunded!"
      },
      "sendMessages": true,
      "VERSION": "0.0.49"
    }
     
    Last edited by a moderator: Dec 31, 2015
  16. Calytic

    Calytic Community Admin Community Mod

    That does not look like valid JSON. I suggest saving your configuration, deleting it, reloading the mod, then re-blocking the components
     
  17. When i block "Boots", i can't spawn anything with the name boots in them. The same goes for jacket and pants. Plz help. :(
     
  18. This should do the trick.

    {
    "blockList": [
    "ammo.rocket.basic",
    "ammo.rocket.fire",
    "ammo.rocket.hv",
    "ammo.rocket.smoke",
    "ammo.shotgun",
    "ammo.shotgun.slug",
    "autoturret",
    "battery.small",
    "cctv.camera",
    "explosives",
    "flare",
    "generator.wind.scrap",
    "grenade.f1",
    "pistol.revolver",
    "pistol.eoka",
    "pistol.semiauto",
    "rifle.bolt",
    "rocket.launcher",
    "shotgun.pump",
    "smg.2",
    "smg.thompson",
    "targeting.computer",
    "trap.landmine",
    "weapon.mod.holosight",
    "weapon.mod.silencer",
    "mining.pumpjack",
    "mining.quarry",
    "small.oil.refinery",
    "hq.metal.ore",
    "coffeecan.helmet",
    "supply.signal",
    "assets/prefabs/npc/cargo plane/cargo_plane.prefab",
    "blood",
    "assets/prefabs/npc/patrol helicopter/patrolhelicopter.prefab",
    "explosive.timed",
    "rifle.ak",
    "ammo.rifle",
    "can.beans",
    "can.beans.empty",
    "can.tuna",
    "can.tuna.empty",
    "granolabar",
    "hat.beenie",
    "hat.boonie",
    "hat.cap",
    "hoodie",
    "jacket",
    "largemedkit",
    "syringe.medical",
    "tshirt",
    "tshirt.long",
    "door.hinged.metal",
    "door.hinged.toptier"
    ],
    "messages": {
    "You are not allowed to use this command": "You are not allowed to use this command",
    "You may not craft this (restricted)": "You may not craft this (restricted)",
    "You may not deploy this (restricted)": "You may not deploy this (restricted)",
    "You may not pick that up (restricted)": "You may not pick that up (restricted)",
    "You may not research this (restricted)": "You may not research this (restricted)",
    "You may not research this (restricted), blueprints refunded!": "You may not research this (restricted), blueprints refunded!"
    },
    "sendMessages": true,
    "VERSION": "0.0.49"
    }
     
  19. Calytic

    Calytic Community Admin Community Mod

    You will have to use the extended asset path rather than the items shortname. I won't be in a position to provide this exactly to you for about a week (I am abroad).

    You can try to add the following code to ComponentBlocker and use the command (/listinv) to get the asset paths from items in your inventory

    Code:
    [ChatCommand("listinv")]
            private void cmdListInv(BasePlayer player, string command, string[] args)
            {
                if (player.net.connection.authLevel < 1)
                {
                    return;
                }            List<string> prefabs = new List<string>();            foreach (Item item in player.inventory.containerMain.itemList)
                {
                    prefabs.Add(item.info.worldModelPrefab.resourcePath);
                }            player.ConsoleMessage("Inventory item prefabs:");
                player.ConsoleMessage(string.Join("\n", prefabs.ToArray()));
                SendReply(player, "Press F1 and open console");
            }
     
  20. I'll do that, thank you very much. :D
    [DOUBLEPOST=1451678034][/DOUBLEPOST]
    Well, it didn't work, it just comes out blank. :/
    Unavngivet2.png
    And before you ask, yes, i had items in my inventory. I had Boots, Pants and Jakcet.
    Maybe i just typed in the code the wrong way. Do you mind taking a look?
    Code: "Fri Jan 01 2016 - Code - Codeshare"
    I used Codeshare, code was too long.