Jump to content

Brad/Heli Signals in Shop

Not a Bug 1.2.71

CoreSnap
CoreSnap

Posted

Hello,

I've been working on getting this fixed all morning, but can't find an answer or fix. 

I have Brad/Heli signals in the shop. Had them setup for months with no issue. When Server Update 17982604 was released and downloaded this morning, Brad and Heli signals stopped working when purchased from the shop. They work just fine when giving them thru native commands. I don't have anything else that is affected by the shop.

When throwing a Brad signal, console shows:

Failed to call internal hook 'OnExplosiveThrown' on plugin 'BradleyDrops v1.1.17' [1930466752] (The given key 'BradleyDropEasy' was not present in the dictionary.)
   at APCData System.Collections.Generic.Dictionary<string, Oxide.Plugins.BradleyDrops+APCData>.get_Item(string key)
   at void Oxide.Plugins.BradleyDrops.BradleySignalThrown(BasePlayer player, SupplySignal entity, Item signal) in C:/RustServer/FuturesWNT/carbon/plugins/BradleyDrops.cs:line 959
   at void Oxide.Plugins.BradleyDrops.OnExplosiveThrown(BasePlayer player, SupplySignal entity, ThrownWeapon item) in C:/RustServer/FuturesWNT/carbon/plugins/BradleyDrops.cs:line 372
   at object Oxide.Plugins.BradleyDrops.InternalCallHook(uint hook, object[] args) in BradleyDrops.cs/Internal:line 464

 

IN THE PLUGIN FILE:

line 959
var permSuffix = config.bradley.apcConfig[apcProfile].GiveItemCommand.ToLower();

line 372
BradleySignalThrown(player, entity, signal);

line 464
blank
            BradleyDrop bradComp = bradley.GetComponent<BradleyDrop>();
            if (bradComp == null)
                return null;

            if (bradComp.isDespawning)
            {
                info.damageTypes.ScaleAll(0);
                return true;
            }
<<<<<----- {THIS IS WHERE LINE 464 IS}
            var apcName = config.bradley.apcConfig[apcProfile].APCName;
            BasePlayer attacker = Initiator as BasePlayer;
            if (Initiator is BasePlayer)
            {
                attacker = Initiator as BasePlayer;
            }
            else if (Initiator is AutoTurret)

 

When throwing a Heli Signal, I simply get the chat notification "You don't have permission to use this heli signal".

 

Again, when not purchasing thru the shop and just giving the items thru "hsgive easy coresnap 1" or "bdgive easy coresnap 1", no errors occur.

I've downloaded new versions of each of those and this changed nothing.

I have so much configured thru Shop that I have yet to fully disassemble it and start fresh, but I kind of assume that's what you'll want me to do. I just wanted to be proactive and send this along to see if you might know what else may be causing this issue, or if I really need to just wipe the shop, input the items into shop and try from there.

Thanks!!



EDIT: I redownloaded Shop, installed it fresh, new config, manually input brad and heli signal info into new/fresh Item and Category files (no copy/pasting), and same issue occurred. 

Please let me know if you need anything further from me. Thank you!

CoreSnap

Posted

AND to add to this....

I just tried adding a single bradley drop supply signal as a command instead....crashed my server right after purchasing it from the shop. I got the signal, was about to throw it and out of the corner of my eye I saw my console go all red and then crashed. Wasn't able to grab anything it said, but I can try to recreate that on a test server if you think that'd help any, even though I don't plan on using Commands in the shop.

David

Posted

Sorry but I won't be able to help you with this since it's looks like issue with BradleyDrops. My shop plugin using standard Rust functions for issuing commands and giving out items, there's nothing I can really change in those.

David

Posted

Changed Status from Pending to Not a Bug

CoreSnap

Posted

But if there's no issue with their plugin when not using shop and it only happens when purchasing an item from shop, I don't understand how it's not the Shop plugin causing the issue. Obviously Shop is doing something to the item, esp since it both won't work after purchasing, and also crashed my server when using additional methods.

I'll reach out to them, but this doesn't make sense to me how it only breaks when utilizing this plugin. Are you able to elaborate on this? What the issue could be? 

Thank you!

David

Posted

 

11 minutes ago, CoreSnap said:

I don't understand how it's not the Shop plugin causing the issue.

Because to execute server command I'm not using any custom logic on my end, command is simply passed into Server.Command function which comes from Rust itself, there's nothing I can change on my end it's literally one line of code to execute server command. Pretty much same thing with creating items. 

CoreSnap

Posted

Ok, well thank you. I appreciate the time. 

1.7m

Downloads

Total number of downloads.

7.9k

Customers

Total customers served.

119.4k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.