Jump to content

Rust Rewards 3.2.3

   (7 reviews)

6 Screenshots

  • 339.4k
  • 10.9k
  • 100.6 kB
This area is intended for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



Мехмед

Posted

Likewise, can you upload a Permission Manager plugin search section? I have 70 plugins and I have difficulty finding them. When there is a search field, I can find them by plugin name.

JimmyFalcone

Posted

I had some players on my server with seemingly infinite money a while ago and while messing around with weird stuff, found if you break a barrel with a shotgun or any weapon that has multiple projectiles, it gives credit for every projectile that hit the barrel.
 

I fixed it by adding a check for the id of the barrel before giving the reward to make sure it's not been credited yet and it fixed it so far.

SLATE

Posted

2 hours ago, JimmyFalcone said:

I had some players on my server with seemingly infinite money a while ago and while messing around with weird stuff, found if you break a barrel with a shotgun or any weapon that has multiple projectiles, it gives credit for every projectile that hit the barrel.
 

I fixed it by adding a check for the id of the barrel before giving the reward to make sure it's not been credited yet and it fixed it so far.

Could you post the code snippet?

JimmyFalcone

Posted

49 minutes ago, SLATE said:

Could you post the code snippet?

private void OnEntityDeath(LootContainer barrel, HitInfo info)
{
    if (!loaded || barrel == null)
        return;

    if (UsedIDs.Contains(barrel.net.ID.Value))
        return;
    UsedIDs.Add(barrel.net.ID.Value);

    var attacker = info?.InitiatorPlayer;
    if (attacker?.net?.connection == null || attacker.IsNpc || !conf.Settings.Rewards.OpenReward)
        return;
    if (conf.Settings.Rewards.Use_Permissions && !HasPerm(attacker.UserIDString, OpenPermission))
        return;

    var weapon = info?.Weapon?.GetItem()?.info?.shortname ?? info?.WeaponPrefab?.ShortPrefabName;
    var distance = Vector3.Distance(attacker.transform.position, barrel.transform.position);

    if (conf.RewardTypes.Open.ContainsKey(barrel.ShortPrefabName))
        GiveReward(attacker, RewardType.Open, conf.RewardTypes.Open[barrel.ShortPrefabName], barrel, weapon ?? "", distance);
}

add:
 

    if (UsedIDs.Contains(barrel.net.ID.Value))
        return;
    UsedIDs.Add(barrel.net.ID.Value);

 

  • Like 1
  • Administrator
Steenamaroo

Posted (edited)

This issue comes from some other plugin calling OnEntityDeath hook once per hit, which is over a dozen times when buckshot is used.
While the proposed solution is helpful, but the other guy should really patch his plugin.

Edited by Steenamaroo
  • Like 1
SLATE

Posted

That explains why I couldn't reproduce it.

10 hours ago, Steenamaroo said:

This issue comes from some other plugin calling OnEntityDeath hook once per hit, which is over a dozen times when buckshot is used.
While the proposed solution is helpful, but the other guy should really patch his plugin.

 

JimmyFalcone

Posted

13 hours ago, Steenamaroo said:

This issue comes from some other plugin calling OnEntityDeath hook once per hit, which is over a dozen times when buckshot is used.
While the proposed solution is helpful, but the other guy should really patch his plugin.

Thanks for the info! Do you by any chance know how I can figure out which plugin is calling the OnEntityDeath every hit?

Watcher

Posted

19 minutes ago, JimmyFalcone said:

Thanks for the info! Do you by any chance know how I can figure out which plugin is calling the OnEntityDeath every hit?

If you use Notepad++ you can search in your plugin map for OnEntityDeath and it will show you all the plugins what use it.

 

  • Administrator
Steenamaroo

Posted

50 minutes ago, JimmyFalcone said:

Thanks for the info! Do you by any chance know how I can figure out which plugin is calling the OnEntityDeath every hit?

Auto Pickup Barrel from uMod.

Мехмед

Posted

Can you add a daily RP collection limit or a general RP limit?

  • Administrator
Steenamaroo

Posted

Something like that would probably make more sense as part of ServerRewards plugin, or Economics plugin.

RustRewards doesn't keep records of players currencies as they're stored by the chosen currency plugin,
and as player can probably earn ServerRewards/Economics from other sources, as well as through RustRewards,
it wouldn't really make sense for RustRewards to be governing that.

Мехмед

Posted

Okay, I will write a message to the server rewards owner. Thank you for your feedback. Also, there is a problem with the STACK SIZE 2.0 plugin. Can you fix it? It doesn't work after restart. I have to reload the rust rewards stack size 2.0 plugin every time.

Мехмед

Posted

On 2/4/2025 at 3:36 PM, Steenamaroo said:

There's an option Only_Reward_Growables_From_Planters.

 

I'll add Never_Reward_Growables_From_Planters to go with it. 👍

Hi, how's the project going? 🙂

SLATE

Posted

33 minutes ago, Мехмед said:

Hi, how's the project going? 🙂

You can do this pretty easily. Just set the value to 0 for the entities:

 

    "Pickup": {
      "berry-black-collectable": 1.0,
      "berry-blue-collectable": 1.0,
      "berry-green-collectable": 1.0,
      "berry-red-collectable": 1.0,
      "berry-white-collectable": 1.0,
      "berry-yellow-collectable": 1.0,
      "black_berry.entity": 0.0,
      "blue_berry.entity": 0.0,
      "corn.entity": 0.0,
      "corn-collectable": 1.0,
      "diesel_collectable": 1.0,
      "green_berry.entity": 0.0,
      "halloween-bone-collectable": 1.0,
      "halloween-metal-collectable": 1.0,
      "halloween-stone-collectable": 1.0,
      "halloween-sulfur-collectible": 1.0,
      "halloween-wood-collectable": 1.0,
      "hemp.entity": 0.0,
      "hemp-collectable": 1.0,
      "metal-collectable": 1.0,
      "mushroom-cluster-5": 1.0,
      "mushroom-cluster-6": 1.0,
      "potato.entity": 0.0,
      "potato-collectable": 1.0,
      "pumpkin.entity": 0.0,
      "pumpkin-collectable": 1.0,
      "red_berry.entity": 0.0,
      "stone-collectable": 1.0,
      "sulfur-collectable": 1.0,
      "white_berry.entity": 0.0,
      "wood-collectable": 1.0,
      "yellow_berry.entity": 0.0
    }

 

Мехмед

Posted

I know this comment comes up twice, I'm not stupid, I know that but this is not what I want.

SLATE

Posted

What are you trying to do? Cause I feel like what you're looking for already works.  I haven't seen the same behavior. And I forgot I answered the same thing a few days ago hah

  • Like 1
Мехмед

Posted

I said I would like to add it without changing the original version of the plugin and not to get RP from the seeds planted. I'm waiting 🙂

 

  • Administrator
Steenamaroo

Posted

It sounds like people are saying you can already achieve what you wanted, as the 'fruit' from planted seeds already have their own separate record in the config.

What's the issue with just setting them to 0?

Мехмед

Posted

I give the same amount of RP for everything and I don't want to close the shop system because it is expensive because they ask why it doesn't give RP, that's why I don't want RP to come only from the seeds planted because I think this is considered a bug, a person can buy everything from the shop in one day, I want it to be more difficult

  • Administrator
Steenamaroo

Posted

but it sounds like people are telling you that X.entity represents the product of planted seeds,
so you can just set those to zero yourself?

If this information is correct then that's exactly the same as me adding some option to give 0 RP from planted and grown items.

  • Like 1
Perfectangel01

Posted

Is there any way for when players harvest their crops, to only allow RP at ripe instead of any stage as it is now?

Мехмед

Posted

I am using this plugin Loot Table & Stacksize GUI 2.1.6 and when I restart it, the rust rewards plugin gets a bug and does not give rp. I need to reload the Loot Table & Stacksize GUI 2.1.6 plugin. Can you fix this? I wrote to the owner of Loot Table & Stacksize GUI 2.1.6. He told me to write to the owner of rust rewards.

  • Administrator
Steenamaroo

Posted (edited)

Hi,
I can't think what would cause that.
Are you seeing relevant errors in console?

If you can replicate the issue but watch the console while you do it that'd be helpful.

Failing that, just DM me a full log file from a day when the issue occurred.

Edited by Steenamaroo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 15
  • Love 5

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.