TriggeredExplosiveCharges

Moved

Total Downloads: 1,798 - First Release: Mar 16, 2017 - Last Update: Jun 10, 2018

5/5, 11 likes
  1. I couldn't reproduce the error so far. Is it only happening for the lock on rockets? Do you have any information about what is getting damaged by the explosion.

    Could you try if the attached file works for you? I made a small change. If it works, I will update the plugin.
     

    Attached Files:

  2. I was firing a lock on rocket to a car that is spawned with Car Commander. I understand if this is a weird issue seeming as the plugins are not available here. Thank you I will try it out and do some testing :)
    [DOUBLEPOST=1510424516][/DOUBLEPOST]Just tested it on same scenario: car upside down used a lock on rocket and on car destruction this happened in console with the above posted .cs:
    Code:
    (18:20:45) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TriggeredExplosiveCharges v1.0.10' (NullReferenceException: Object reference not set to an instance of an object)
    (18:20:45) | at Oxide.Plugins.TriggeredExplosiveCharges.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TriggeredExplosiveCharges.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (18:20:45) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TriggeredExplosiveCharges v1.0.10' (NullReferenceException: Object reference not set to an instance of an object)
    (18:20:45) | at Oxide.Plugins.TriggeredExplosiveCharges.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TriggeredExplosiveCharges.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (18:20:45) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TriggeredExplosiveCharges v1.0.10' (NullReferenceException: Object reference not set to an instance of an object)
    (18:20:45) | at Oxide.Plugins.TriggeredExplosiveCharges.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo info) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TriggeredExplosiveCharges.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  3. Okay, weird... Try this one. If this doesn't work, I don't know what's going wrong. :confused:
     

    Attached Files:

  4. sweeet that one worked - no more error showing in console. thank you so much @EnigmaticDragon
     
  5. For some odd reason when getting the trigger from the vending machine once you have purchased the trigger the skin goes and you are left with a normal bone club.

    I have only just discovered this as have been doing a test day of most of the server mod's. No errors show in console but it's like the skin is being removed if I do: tec.givetrigger 76561198021382990 (this is my steam ID) then trigger is given in the correct skin and works.
     
  6. I've just tested it myself, and I don't have this problem. I get a trigger with the correct skin from the vending machine.
    I'm not sure what's going wrong. Does the vending machine display the correct skin?
     
  7. update broke plugin
    Code:
     Error while compiling: TriggeredExplosiveCharges.cs(404,52): error CS0117: `BuildingBlock' does not contain a definition for `NewBuildingID'
     
  8. Wulf

    Wulf Community Admin

  9. @EnigmaticDragon I have uploaded a video to show you what is happening with the vending machine and to make you aware I do have SkinBox installed as well and thought it would be best to exclude these skins from that plugin so it doesn't accidentally show the trigger skins so players can bypass the vending machine.

    Video:


    UPDATE: I have asked Fuji if Skinbox could be the issue and he confirmed it couldn't be:
    "SkinBox doesn't affect anything then it's own opened box. When the Box is not opened, the plugin is totally inactive and doing nothing".
     
    Last edited by a moderator: Dec 8, 2017
  10. Can not blow a C4 without the detonator hammer. With or without the C4 does not explode.
    An update is essential

    Oxide.Rust Version: 2.0.3774
     
  11. @PryMary Thanks for the video. :) Since 1. the trigger is displayed correctly in the vending machine, 2. you can spawn a correctly skinned trigger using the tec.givetrigger command, and 3. I have no problems in my test setup, I think this is most likely caused by another plugin, as you have already suspected. To verify this, would it be difficult for you to test it once without any plugin loaded besides Triggered Explosive Charges?

    @albator4242 I'm not sure what you are talking about. Could you provide more detail?
     
  12. EnigmaticDragon updated Triggered Explosive Charges with a new update entry:

    1.0.12

     
  13. @EnigmaticDragon still doing the same thing bro, uploading video now so you can see proof.

    Try doing it to a vending machine already in place and a sign above it. As that is how I have it set-up I go to a vending machine and do the command: tec.shop same to the sign above it

    You can paste my town to replicate if you so wish

     

    Attached Files:

    Last edited by a moderator: Dec 9, 2017
  14. Thanks for testing it.
    I've already tried it both ways, spawning the whole shop and setting up an existing vending machine. I tested it again now with your town and it still works for me. :confused: What is your configuration file?

    Edit: I just noticed that the bone clubs stack at 1:07. Have you changed the bone club stack size somehow? (don't know if this causes the problem, though)
     
    Last edited by a moderator: Dec 9, 2017
  15. yes I have Stacks Extended and they are set to: "bone.club": 10

    Here is my current config:
    Code:
    {
      "CRAFTING | Allow all players to craft triggers [true,false]": false,
      "CRAFTING | Ingredient 1 for crafting [item shortname]": "metal.refined",
      "CRAFTING | Ingredient 2 for crafting [item shortname]": "techparts",
      "CRAFTING | Needed amount of ingredient 1 [number]": 100,
      "CRAFTING | Needed amount of ingredient 2 [number]": 4,
      "SHOP | Currency item for buying a trigger [item shortname]": "techparts",
      "SHOP | Needed amount of currency item [number]": 6,
      "TRIGGER | Trigger destroys itself after using it once [true, false]": true,
      "TRIGGERED C4 | Allow C4 pickup (only after beeping got disabled) [true, false]": false,
      "TRIGGERED C4 | Disable beeping sound after duration (minimum: 5; infinite: -1) [seconds]": 10
    }
    Though it did the same thing when 0 plugin's loaded only this one :/ i'm so confused!!

    This is the entire list of plugins installed:
    Code:
      01 "AdminRadar" (4.1.4) by nivex (1.65s) - AdminRadar.cs
      02 "AlphaChristmas" (1.0.9) by redBDGR (0.58s) - AlphaChristmas.cs
      03 "AlphaLoot" (2.2.3) by Fujikura (0.59s) - AlphaLoot.cs
      04 "AntiBarricadeStacking" (0.1.0) by k1lly0u (0.86s) - AntiBarricadeStacking.cs
      05 "Arena" (0.1.82) by k1lly0u (4.57s) - Arena.cs
      06 "ArenaUI" (0.1.55) by k1lly0u (0.03s) - ArenaUI.cs
      07 "ArenaStatistics" (0.1.4) by k1lly0u (0.04s) - ArenaStatistics.cs
      08 "Arena Events" (0.1.32) by k1lly0u (0.49s) - ArenaEvents.cs
      09 "AutoDoors" (3.1.2) by Wulf/lukespragg (0.00s) - AutoDoors.cs
      10 "Automatic Build Grades" (0.0.22) by AlexALX (0.10s) - AutoGrades.cs
      11 "AutomatedSearchlights" (0.1.61) by k1lly0u (0.37s) - AutomatedSearchlights.cs
      12 "AutoPurge" (1.6.1) by Fujikura/Norn (5.61s) - AutoPurge.cs
      13 "Backpacks" (2.0.9) by LaserHydra (0.13s) - Backpacks.cs
      14 "BarrelPoints" (2.0.8) by redBDGR (0.58s) - BarrelPoints.cs
      15 "Better Chat" (5.0.14) by LaserHydra (0.02s) - BetterChat.cs
      16 "BoobyTraps" (0.2.12) by k1lly0u (0.65s) - BoobyTraps.cs
      17 "Building Grades" (0.3.11) by bawNg / Nogrod (0.16s) - BuildingGrades.cs
      18 "BuildingWrapper" (0.1.5) by ignignokt84 (0.00s) - BuildingWrapper.cs
      19 "CarCommander" (0.2.23) by k1lly0u (1.32s) - CarCommander.cs
      20 "Clans" (2.8.10) by Fujikura (0.12s) - Clans.cs
      21 "ClansUI" (0.1.41) by k1lly0u (0.02s) - ClansUI.cs
      22 "ConnectionDB" (0.2.1) by Norn (0.02s) - ConnectionDB.cs
      23 "Copy Paste" (3.5.2) by Reneb (0.50s) - CopyPaste.cs
      24 "CustomChatCommands" (2.1.0) by PsychoTea (0.01s) - CustomChatCommands.cs
      25 "Dangerous Treasures" (1.0.0) by nivex (0.84s) - DangerousTreasures.cs
      26 "Death Notes" (5.2.19) by LaserHydra (0.11s) - DeathNotes.cs
      27 "DynamicCupShare" (2.4.0) by Fujikura (0.34s) - DynamicCupShare.cs
      28 "EasyVote" (2.0.31) by Exel80 (0.01s) - EasyVote.cs
      29 "EasyVote-HighestVoter" (1.0.11) by Exel80 (0.00s) - EasyVoteHighestvoter.cs
      30 "Enhanced Hammer" (1.3.4) by Fuji/Visa (0.01s) - EnhancedHammer.cs
      31 "FancyDrop" (2.6.26) by Fujikura (1.97s) - FancyDrop.cs
      32 "FireSword" (1.1.5) by ColonBlow (0.00s) - FireSword.cs
      33 "Friends" (2.2.5) by Nogrod (0.00s) - Friends.cs
      34 "FriendsUI" (0.1.1) by k1lly0u (0.02s) - FriendsUI.cs
      35 "FurnaceSorter" (1.0.10) by Absolut (0.36s) - FurnaceSorter.cs
      36 "GatherControl" (1.5.1) by CaseMan (1.57s) - GatherControl.cs
      37 "GUIAnnouncements" (1.23.83) by JoeSheep (0.97s) - GUIAnnouncements.cs
      38 "Gyrocopter" (1.1.2) by ColonBlow (1.10s) - Gyrocopter.cs
      39 "Hammer Time" (1.0.18) by Shady (2.21s) - HammerTime.cs
      40 "HandyMan" (1.0.6) by nivex (0.01s) - HandyMan.cs
      41 "HeliControl" (1.2.4) by Shady (1.80s) - HeliControl.cs
      42 "HitIcon" (1.5.5) by serezhadelaet (0.01s) - HitIcon.cs
      43 "HomesGUI" (1.2.3) by PsychoTea (0.12s) - HomesGUI.cs
      44 "HooksExtended" (0.0.12) by Calytic @ RustServers.IO (2.05s) - HooksExtended.cs
      45 "ImageLibrary" (2.0.10) by Absolut & K1lly0u (0.60s) - ImageLibrary.cs
      46 "LustyMap" (2.1.36) by Kayzor / k1lly0u (1.16s) - LustyMap.cs
      47 "InfoPanel" (0.9.7) by Ghosst / Nogrod (2.02s) - InfoPanel.cs
      48 "InstantCraft" (1.2.3) by Vlad-00003 (0.04s) - InstantCraft.cs
      49 "InvFoundation" (1.2.3) by sami37 (0.07s) - InvFoundation.cs
      50 "JPipes" (0.5.10) by TheGreatJ (0.64s) - JPipes.cs
      51 "Juggernaut" (0.2.39) by k1lly0u (0.19s) - Juggernaut.cs
      52 "Kits" (3.2.9) by Reneb (0.02s) - Kits.cs
      53 "LockOnRockets" (0.2.1) by k1lly0u (1.11s) - LockOnRockets.cs
      54 "Logger" (2.1.0) by Wulf/lukespragg (0.40s) - Logger.cs
      55 "Lottery" (1.2.1) by Sami37 (0.01s) - Lottery.cs
      56 "NameFix" (1.0.1) by Visagalis (0.01s) - NameFix.cs
      57 "NightLantern" (2.0.8) by k1lly0u (0.50s) - NightLantern.cs
      58 "NoEscape" (1.1.5) by rustservers.io (0.03s) - NoEscape.cs
      59 "NoGiveNotices" (0.1.0) by Wulf/lukespragg (0.00s) - NoGiveNotices.cs
      60 "OilCrate" (0.6.5) by Kaleidos (1.00s) - OilCrate.cs
      61 "PilotEject" (1.0.23) by redBDGR (0.53s) - PilotEject.cs
      62 "PlaneCrash" (0.1.9) by k1lly0u (0.47s) - PlaneCrash.cs
      63 "PlayerDatabase" (1.5.7) by Reneb (0.00s) - PlayerDatabase.cs
      64 "PlayerRanks" (1.3.3) by Steenamaroo (0.81s) - PlayerRanks.cs
      65 "Playtime Tracker" (0.1.7) by k1lly0u (0.05s) - PlaytimeTracker.cs
      66 "Popup Notifications" (0.1.3) by emu / k1lly0u (0.02s) - PopupNotifications.cs
      67 "PrivateMessage" (2.0.2) by Nogrod (0.00s) - PrivateMessage.cs
      68 "QuickSmelt" (3.0.3) by Wulf/Fujikura (0.17s) - QuickSmelt.cs
      69 "RaidNotes" (1.0.0) by Calytic (0.11s) - RaidNotes.cs
      70 "RandomSpawns" (0.2.0) by k1lly0u (0.07s) - RandomSpawns.cs
      71 "RemoteTurrets" (0.1.55) by k1lly0u (1.99s) - RemoteTurrets.cs
      72 "RemoverTool" (4.2.3) by Reneb (0.03s) - RemoverTool.cs
      73 "Rewards" (1.3.13) by Tarek (0.00s) - Rewards.cs
      74 "RotatingPickups" (0.2.52) by k1lly0u (0.39s) - RotatingPickups.cs
      75 "SBallista" (1.0.2) by ColonBlow (0.00s) - SBallista.cs
      76 "SCatapult" (1.1.1) by ColonBlow (0.00s) - SCatapult.cs
      77 "ServerRewards" (0.4.64) by k1lly0u (0.29s) - ServerRewards.cs
      78 "Sign Artist" (0.3.3) by Nogrod / Bombardir (0.01s) - SignArtist.cs
      79 "SkinBox" (1.9.15) by Fujikura (0.60s) - SkinBox.cs
      80 "SkipNightUI" (0.1.2) by k1lly0u (0.09s) - SkipNightUI.cs
      81 "SmoothRestart" (1.2.4) by Fujikura/Visagalis (2.02s) - SmoothRestart.cs
      82 "Spawns" (2.0.35) by Reneb / k1lly0u (0.02s) - Spawns.cs
      83 "StacksExtended" (1.1.2) by Fujikura (6.32s) - StacksExtended.cs
      84 "SteamChecks" (3.0.1) by Spicy (0.00s) - SteamChecks.cs
      85 "StickyChat" (0.0.8) by recon (0.00s) - StickyChat.cs
      86 "StorageCleaner" (0.1.1) by k1lly0u (0.00s) - StorageCleaner.cs
      87 "TeleportGUI" (1.5.4) by PsychoTea (0.06s) - TeleportGUI.cs
      88 "Timed Permissions" (1.3.2) by LaserHydra (0.00s) - TimedPermissions.cs
      89 "Tipster" (1.3.7) by Fujikura (0.12s) - Tipster.cs
      90 "Trapper" (1.0.10) by redBDGR (0.00s) - Trapper.cs
      91 "Triggered Explosive Charges" (1.0.12) by EnigmaticDragon (1.51s) - TriggeredExplosiveCharges.cs
      92 "Tsunderellas horse plugin" (1.3.0) by Tsunderella (1.42s) - TsunHorse.cs
      93 "UniversalUI" (2.1.4) by Absolut (0.13s) - UniversalUI.cs
      94 "Vanish" (0.4.1) by Wulf/lukespragg (0.00s) - Vanish.cs
      95 "VisualCupboard" (1.0.11) by Colon Blow (0.65s) - VisualCupboard.cs
      96 "Where's My Corpse" (0.6.1) by Fuji/LeoCurtss (0.00s) - WheresMyCorpse.cs
      97 "Wounded Screams" (2.1.4) by Skipcast (1.77s) - WoundedScreams.cs
      98 "ZLevelsRemastered" (2.9.2) by Fujikura/Visagalis (0.32s) - ZLevelsRemastered.cs
      99 "ZoneManager" (2.4.5) by Reneb / Nogrod (1.05s) - ZoneManager.cs
     
  16. The stacking actually causes the problem. I just testet it. As soon as I set the stack size to anything higher than 1, I only get a normal bone club. Try to set the stack size to 1 again and everything should work as expected. ;)
     
  17. oki doki, i'm just restarting now so will change to 1 and get straight back to ya!
     
  18. UPDATE: Yep that was it!!! Working fine again :D How random is that! Thank you for your help @EnigmaticDragon
     
  19. EnigmaticDragon updated Triggered Explosive Charges with a new update entry:

    1.0.13

     
  20. Getting the following error with latest update:
    Code:
    [Error] Failed to call hook 'OnPlayerActiveItemChanged' on plugin 'TriggeredExplosiveCharges v1.0.13' (KeyNotFoundException: The given key was not present in the dictionary.)
      at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.TriggeredExplosiveCharges+TriggeredExplosivesManager].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TriggeredExplosiveCharges.OnPlayerActiveItemChanged (.BasePlayer player, .Item oldItem, .Item newItem) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TriggeredExplosiveCharges.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0