Jump to content

Rust Rewards 3.1.9

   (6 reviews)

6 Screenshots

  • 318.8k
  • 8.7k
  • 95.23 kB

Recommended Comments



  • Administrator

Thanks for the info, Shark.
I had a few people with the same issue. Not exactly sure what caused that but there was a mistake relating to config loading/saving which I've rectified in the most recent version.
Hopefully that stops the issue from happening again.

I'll check autoturrets next time I'm on and see what's happening with those.

Link to comment
Share on other sites
1 hour ago, Steenamaroo said:

Just go to your chosen location and do `/botspawn add many` and `/botspawn add one`.

Now you have two custom profiles in the same place - You can customise them separately and call for different numbers of npcs, but they'll be in the same area.

but wont the location not transfer to the next map? i was hoping i can do something like it only always spawn on this monuument  or this biome

Link to comment
Share on other sites
  • Administrator

You're in RustRewards discussion, just FYI. 😛

You can enter a name in the Parent_Monument field for any custom profile in BotSpawn.
If you plan to add custom spawn points, make sure you set Parent_Monument first...That's important.

 

To give an example, if you want the regular airfield default profile to have 10 npcs, then you want an additional custom profile with one, go to the airfield, use the /botspawn add *name* command,
then go into your custom-profiles json, find your new profile, and set its Parent_Monument to "The Airfield 0".
That name you're setting there must be exactly as it appears in the default profiles json.

Now that profile will always be exactly where you placed it, relative to the Airfield.
If the Airfield moves, so does your profile.
If you add custom spawn points for that profile, they'll auto-move too.

 

Custom spawn points for default profiles also carry over in this way, so if you were using custom spawn points for Dome + your boss profile, you could dictate precise positioning of all of those npcs, and make it that the boss is always in the centre, protected by the lesser npcs, for example.

Edited by Steenamaroo
Link to comment
Share on other sites
2 hours ago, Steenamaroo said:

You're in RustRewards discussion, just FYI. 😛

You can enter a name in the Parent_Monument field for any custom profile in BotSpawn.
If you plan to add custom spawn points, make sure you set Parent_Monument first...That's important.

 

To give an example, if you want the regular airfield default profile to have 10 npcs, then you want an additional custom profile with one, go to the airfield, use the /botspawn add *name* command,
then go into your custom-profiles json, find your new profile, and set its Parent_Monument to "The Airfield 0".
That name you're setting there must be exactly as it appears in the default profiles json.

Now that profile will always be exactly where you placed it, relative to the Airfield.
If the Airfield moves, so does your profile.
If you add custom spawn points for that profile, they'll auto-move too.

 

Custom spawn points for default profiles also carry over in this way, so if you were using custom spawn points for Dome + your boss profile, you could dictate precise positioning of all of those npcs, and make it that the boss is always in the centre, protected by the lesser npcs, for example.

how the hell did i end up here. haha sorry and thanks i'll test this out 

  • Like 1
Link to comment
Share on other sites
3 hours ago, Jouker said:

Why such an error?

  

image.thumb.png.9a9624940dcb52e55272e13792f49187.png

обновите плагин.Ошибка была устранена разработчиком

Link to comment
Share on other sites
11 hours ago, Grodonoff said:

обновите плагин.Ошибка была устранена разработчиком

I have newest Version 3.0.5

Link to comment
Share on other sites

How do i set happy hour to work during the night time only, and how do i get it to send an announcement in chat that happy hour has started?

Link to comment
Share on other sites

o.reload RustRewards
Error while compiling: RustRewards.cs(1017,10): error CS0841: A local variable `npc' cannot be used before it is declared

Update Broke it 😞

  • Like 3
Link to comment
Share on other sites

edit:  i was looking in the wrong section for support.. removed my code suggestions since this was already fixed .. yesterday

 

 

Edited by mughi
Link to comment
Share on other sites

Do you think you could add suicide back in? I've always had it set to -10 as a punishment. 😉

Also, what is the rustrewards.default permission for?

Edited by PPlank
  • Like 1
Link to comment
Share on other sites

Hi,

Had a new error, don't know what cause it 😕

 Failed to call hook 'GiveRustReward' on plugin 'RustRewards v3.0.6' (ArgumentNullException: Value cannot be null.
Parameter name: key)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Oxide.Plugins.RustRewards.GetMultiplier (BasePlayer player, System.String weapon, System.Single distance, BaseEntity ent) [0x0017e] in <a8b9c7971cb842319081b4cd9f40ff1c>:0 
  at Oxide.Plugins.RustRewards.GiveReward (BasePlayer player, Oxide.Plugins.RustRewards+RewardType type, System.Double amount, BaseEntity ent, System.String weapon, System.Single distance, System.String name) [0x0002a] in <a8b9c7971cb842319081b4cd9f40ff1c>:0 
  at Oxide.Plugins.RustRewards.GiveRustReward (BasePlayer player, System.Int32 type, System.Double amount, BaseEntity ent, System.String weapon, System.Single distance, System.String name) [0x00000] in <a8b9c7971cb842319081b4cd9f40ff1c>:0 
  at Oxide.Plugins.RustRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f3c] in <a8b9c7971cb842319081b4cd9f40ff1c>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

 

Link to comment
Share on other sites
  • Administrator

I've had a couple of reports of config file issues resulting in seemingly random errors.
I need to look into what happens if there's a config mistake, and ensure that the data isn't wiped or left null,
as I think that's what's happening.

Might be unrelated, but would you mind checking your RustRewards config and data files, to confirm their not null, and/or to confirm they're valid?

https://www.jsonlint.com is really useful for that.

Link to comment
Share on other sites
  • Administrator

Ok, thank you.
I think I see where the issue is and have patched accordingly.

Thank you for pointing this out!

  • Like 1
Link to comment
Share on other sites
  • Administrator
9 hours ago, PPlank said:

Do you think you could add suicide back in? I've always had it set to -10 as a punishment. 😉

Also, what is the rustrewards.default permission for?

Hi,
I'll take a look at that, but I'd need to add a way of deducting Economics/Server Rewards, which isn't currently in place.
The "default" permission is there for applying multipliers to people who are in groups.
Your server has a 'default' group, so you could use RustRewards to give a points multiplier to anyone in that group.

It's useful for VIP groups, or rank/progress groups, and that kind of thing.

Edited by Steenamaroo
  • Like 1
Link to comment
Share on other sites
On 12/12/2021 at 9:13 AM, Steenamaroo said:

I'll take a look at that, but I'd need to add a way of deducting Economics/Server Rewards, which isn't currently in place.

Just for the record simply putting a negative value does work currently. You wouldn't need to do anything in that regard.

But perhaps just adding death types in the 'Players' category such as suicide, drowning, fall damange, explosion, etc. Adding things like this we would be able to give a negative value for players who suicide or drown themselves to essentially teleport to their base or to another bag or bed when they don't want to travel the map.

Link to comment
Share on other sites
  • Administrator

Oh, wow. You're quite right.
I don't recall implementing withdraw/takepoints if value is less than zero.
That may be MalS' original code.

That makes life much easier. I can add Suicide (and/or others) quite easily, and just allow for setting negative values with the UI.

Thanks for the info!

  • Like 1
Link to comment
Share on other sites
1 minute ago, Steenamaroo said:

Oh, wow. You're quite right.
I don't recall implementing withdraw/takepoints if value is less than zero.
That may be MalS' original code.

That makes life much easier. I can add Suicide (and/or others) quite easily, and just allow for setting negative values with the UI.

Thanks for the info!

Happy to make your life just a little easier. ^-^

Thank you for all the work you do! Will keep an eye out for that update. No rush!

Link to comment
Share on other sites

Hi

v3.0.7 installed and still this error

 Failed to call hook 'OnEntityDeath' on plugin 'RustRewards v3.0.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.RustRewards.OnEntityDeath (BaseVehicle vehicle, HitInfo info) [0x00025] in <937d0ccc5b2b449a83dec86106eb1285>:0 
  at Oxide.Plugins.RustRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x007bd] in <937d0ccc5b2b449a83dec86106eb1285>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0

 

Link to comment
Share on other sites

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 3

User Feedback

1.3m

Downloads

Total number of downloads.

6.5k

Customers

Total customers served.

95.9k

Files Sold

Total number of files sold.

1.9m

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.