Jump to content
Message added by realedwin,

 

This plugin is compatible with both Carbon & Oxide (as of v2.0.6011).


If you encounter a bug or problem with this plugin, it is a good idea to report it. When reporting a bug, please be as descriptive as possible so that it can be addressed more quickly and is more likely to be fixed. Please state whether you are using Carbon or Oxide and which version.

 

2 Screenshots

Recommended Comments



Stark

Posted

I tried that doesn't work. Gives Synatx error or nothing at all. 

HunterZ

Posted

You can also just hit a base with a bullet or melee attack to get a status banner if it's being protected.

  • Like 1
realedwin

Posted

8 hours ago, Stark said:

I tried that doesn't work. Gives Synatx error or nothing at all. 

It works 100% on Carbon. I will check the Oxide version of the plugin. I would rather use Carbon than Oxide to avoid problems with ORP.

Flint Monkey

Posted

I am looking to use this plugin with a PvE plugin (in my case, Simple PvE), such that:

  1. PvP is enabled the last 12 hours of a wipe cycle
  2. Offline raid protection is enabled for players who are not online during that last 12 hour period.
  3. If a player logs offline, their base can only be damaged for 15 minutes after they log off.

From what I can tell, this plugin will work to cover that time period if I:

  1. Set no values for
    "Scale of damage depending on the offline time in hours": {}
  2. And 
    "Cooldown in minutes": 15,

Do I have this right?

 

mgUber

Posted

Hi. I believe that this morning's update has created an issue with this plugin. When I try to reload the plugin after failing to load on server start, I am getting an error that says the following:

" Error while compiling OfflineRaidProtection: Base Player.Encrypted Value<ulong> does not contain a definition for 'HasPermission' and the best extension method overload 'ExtensionMethods.HasPermission(BasePlayer, string)' requires a receiver of type 'BasePlayer'

Any fix or update would be very much appreciated, currently all of my offline players are vulnerable.

  • Like 1
realedwin

Posted

1 hour ago, mgUber said:

Hi. I believe that this morning's update has created an issue with this plugin. When I try to reload the plugin after failing to load on server start, I am getting an error that says the following:

" Error while compiling OfflineRaidProtection: Base Player.Encrypted Value<ulong> does not contain a definition for 'HasPermission' and the best extension method overload 'ExtensionMethods.HasPermission(BasePlayer, string)' requires a receiver of type 'BasePlayer'

Any fix or update would be very much appreciated, currently all of my offline players are vulnerable.

 I will fix it when I get home tomorrow.

  • Like 1
Flint Monkey

Posted

23 hours ago, realedwin said:

 I will fix it when I get home tomorrow.

Same here:

OfflineRaidProtection - Failed to compile: 'BasePlayer.EncryptedValue' does not contain a definition for 'HasPermission' and the best extension method overload 'ExtensionMethods.HasPermission(BasePlayer, string)' requires a receiver of type 'BasePlayer' | Line: 2613, Pos: 69

 

  • Like 1
CsaszyKJ

Posted

[Offline Raid Protection] Config update detected! Update config values...

[Offline Raid Protection] There is an error in your configuration file. Using default settings

System.ArgumentNullException: Value cannot be null.

Parameter name: source

at System.Linq.Enumerable.Select[TSource,TResult] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x0000d] in <53d9c9e3ddfd44bba9f7bd7413478f07>:0

at Oxide.Plugins.OfflineRaidProtection.GetPrefabNames () [0x00000] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.GetBaseConfig () [0x0008f] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.UpdateConfigValues () [0x00010] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.LoadConfig () [0x0002e] in <84e925f34b06498ca164da77da6733fc>:0

Could not initialize plugin 'OfflineRaidProtection v1.1.14' (ArgumentNullException: Value cannot be null.

Parameter name: source)

at System.Linq.Enumerable.Select[TSource,TResult] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x0000d] in <53d9c9e3ddfd44bba9f7bd7413478f07>:0

at Oxide.Plugins.OfflineRaidProtection.GetPrefabNames () [0x00000] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.GetBaseConfig () [0x0008f] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.LoadDefaultConfig () [0x00000] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.LoadConfig () [0x00065] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0000f] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <795304323ac74a298b8ed190a1dfa739>:0

at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0028e] in <2251535bc8844098950abb2982661eaa>:0

at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00027] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00035] in <beb2b64691c64e2b95b99491bd85442c>:0

No previous version to rollback plugin: OfflineRaidProtection

realedwin

Posted

32 minutes ago, CsaszyKJ said:

[Offline Raid Protection] Config update detected! Update config values...

[Offline Raid Protection] There is an error in your configuration file. Using default settings

System.ArgumentNullException: Value cannot be null.

Parameter name: source

at System.Linq.Enumerable.Select[TSource,TResult] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x0000d] in <53d9c9e3ddfd44bba9f7bd7413478f07>:0

at Oxide.Plugins.OfflineRaidProtection.GetPrefabNames () [0x00000] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.GetBaseConfig () [0x0008f] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.UpdateConfigValues () [0x00010] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.LoadConfig () [0x0002e] in <84e925f34b06498ca164da77da6733fc>:0

Could not initialize plugin 'OfflineRaidProtection v1.1.14' (ArgumentNullException: Value cannot be null.

Parameter name: source)

at System.Linq.Enumerable.Select[TSource,TResult] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x0000d] in <53d9c9e3ddfd44bba9f7bd7413478f07>:0

at Oxide.Plugins.OfflineRaidProtection.GetPrefabNames () [0x00000] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.GetBaseConfig () [0x0008f] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.LoadDefaultConfig () [0x00000] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Plugins.OfflineRaidProtection.LoadConfig () [0x00065] in <84e925f34b06498ca164da77da6733fc>:0

at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0000f] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <795304323ac74a298b8ed190a1dfa739>:0

at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x0028e] in <2251535bc8844098950abb2982661eaa>:0

at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00027] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00035] in <beb2b64691c64e2b95b99491bd85442c>:0

No previous version to rollback plugin: OfflineRaidProtection

Back up your config and delete it from the config directory, then reload the plugin. Which version are you upgrading from? 

CsaszyKJ

Posted

4 hours ago, realedwin said:

Back up your config and delete it from the config directory, then reload the plugin. Which version are you upgrading from? 

Hi mate,

1.1.12 - was for me. 

I'll do it as you mentioned now. 

Thanks for your quick reply.

realedwin

Posted

On 6/25/2024 at 11:35 PM, EasyServer said:

1. Is the protection TC bound? (also in the team)  2. And does protection restart for a team if the last member of the team goes offline?

 

1. A base requires a TC and at least one authorised player at the TC for ORP. All members of an authorised player's team are members of the base.
2. Protection never restarts, but a player's offline time does.

 

On 6/26/2024 at 12:04 PM, EasyServer said:

3. And what command do you have to enter as an admin if a change has been made to the plugin so that it has to be reloaded and every player should get new protection? (I'm sorry I can only speak German)

3. You can reload the plugin with o.reload OfflineRaidProtection or c.reload OfflineRaidProtection.
You can use the orp.fill.onlinetimes command to reset the players' offline time, or delete the data/OfflineRaidProtection/LastOnlineData.json file and reload the plugin.

  • Love 1
EasyServer

Posted

Thank you for your understanding ! And answering my questions! You have created a very good plugin!

  • Love 1
realedwin

Posted

On 6/27/2024 at 5:53 PM, Stark said:

I'm having this exact same issue. I've configued everything and yet nothing has changed. No Game Tips show. The Time Zone didn't even change. 

I can't even check protection status it gives me Synatx Error with the command 

OfflineRaidProtection.json 15.41 kB · 3 downloads

All I can say is that everything works for me with your configuration. Have you configured the permissions?

realedwin

Posted

On 7/3/2024 at 10:51 PM, Flint Monkey said:

I am looking to use this plugin with a PvE plugin (in my case, Simple PvE), such that:

  1. PvP is enabled the last 12 hours of a wipe cycle
  2. Offline raid protection is enabled for players who are not online during that last 12 hour period.
  3. If a player logs offline, their base can only be damaged for 15 minutes after they log off.

From what I can tell, this plugin will work to cover that time period if I:

  1. Set no values for
    "Scale of damage depending on the offline time in hours": {}
  2. And 
    "Cooldown in minutes": 15,

Do I have this right?

 

Have you configured "Scale of damage depending on the current hour of the real day"? I need more information about how you use the plugin.
Setting no values for "Scale of damage depending on offline time in hours" does not currently work, i.e. no protection at all, because "Scale of damage between the cooldown and the first configured time".

My recommendation would be to use the "Scale of damage depending on the current hour of the real day" option and set the 12 hour range there.

Hoss the Farmer

Posted

can you change it to cost scrap per foundation?

hid333

Posted

No matter what I change the timezone to,

/raidprot sometimes shows up in UTC.

Is there anything else I should set?

hid333

Posted

1 hour ago, hid333 said:

No matter what I change the timezone to,

/raidprot sometimes shows up in UTC.

Is there anything else I should set?

Solved. I had overlooked the fact that Windows has another time zone setting.

jayinwww

Posted

1 hour ago, hid333 said:

Solved. I had overlooked the fact that Windows has another time zone setting.

Once again windows being selfish. Only cares about its own time zone and no one else's.

chroma

Posted

Would anyone be able to add me or my friend on discord and go through how to set this up having a little bit of trouble  .chroma and starplat7112 would be really appreciated. 

MAJYDO

Posted (edited)

I know it's a long shot but could there be an addition that if a player is being raided and then proceed to get offline, the plugin creates a window where players can continue raiding opposed to when the "cooldown" engages?
Edit:  I want to keep the original cooldown period; but would like an add on measure as previously described 

Edited by MAJYDO
realedwin

Posted

On 11/4/2024 at 3:56 AM, MAJYDO said:

I know it's a long shot but could there be an addition that if a player is being raided and then proceed to get offline, the plugin creates a window where players can continue raiding opposed to when the "cooldown" engages?
Edit:  I want to keep the original cooldown period; but would like an add on measure as previously described 

Currently, the plugin offers a configurable cooldown period after a player logs off, during which their base remains vulnerable to raids. 

Your suggestion involves implementing a feature where, if a player logs off during an active raid, the plugin would extend the vulnerability window, allowing raiders to continue their efforts.

 

Can you please explain how it should work?

Bear Grills

Posted

On 11/5/2024 at 9:24 AM, realedwin said:

Currently, the plugin offers a configurable cooldown period after a player logs off, during which their base remains vulnerable to raids. 

Your suggestion involves implementing a feature where, if a player logs off during an active raid, the plugin would extend the vulnerability window, allowing raiders to continue their efforts.

 

Can you please explain how it should work?

The free plugin on umod 'anti offline raid' has this feature. In the config its

"MinutesSinceLastAttackToProtect": -1

For example, if you set that to 10, the base won't have protection until it has been 10 minutes since it last recieved damage.

  • Like 1
MAJYDO

Posted

On 11/5/2024 at 4:24 AM, realedwin said:

Currently, the plugin offers a configurable cooldown period after a player logs off, during which their base remains vulnerable to raids. 

Your suggestion involves implementing a feature where, if a player logs off during an active raid, the plugin would extend the vulnerability window, allowing raiders to continue their efforts.

 

Can you please explain how it should work?

 

On 11/6/2024 at 4:46 AM, Bear Grills said:

The free plugin on umod 'anti offline raid' has this feature. In the config its

"MinutesSinceLastAttackToProtect": -1

For example, if you set that to 10, the base won't have protection until it has been 10 minutes since it last recieved damage.

Exactly this, if a player that isn't getting raided, a normal 20 minute window would be applied before the protection engages.
Now, if the player is being raided, I want it to have a two-hour window before it kicks on, so players could potentially finish their raid. I've had a few players go offline once they realized they lost the online raid and abused the protection.

  • Like 1
MAJYDO

Posted

Also noticed it has an issue with RaidableBases and will severely lag the server

realedwin

Posted

21 hours ago, MAJYDO said:

Also noticed it has an issue with RaidableBases and will severely lag the server

Please send me your configuration file.

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 6

User Feedback

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.