Jump to content

I'm not able to make it work

Not a Bug 1.1.2 1.1.2

Hello!

Awesome plugin, it looks like has everything i need, but its not working, i want this configs
15 cooldown after a player leaves the server (100% damage)
after 15 cooldown, till 30 hours, 100% protection
after 30 hours, 100% damage again

But now its not working, can you help me?

 

{
  "Raid Protection Options": {
    "Scale of damage depending on the current hour of the real day": {},
    "Scale of damage depending on the offline time in hours": {
      "1": 0.0,
      "30": 1.0
    },
    "Cooldown in minutes": 15,
    "Scale of damage between the cooldown and the first configured time": 0.0,
    "Protect all prefabs": true,
    "Protect vehicles": true,
    "Prefabs to protect": [
      "abovegroundpool.deployed",
      "advendcalendar.deployed",
      "andswitch.entity",
      "audioalarm",
      "autoturret_deployed",
      "barricade.concrete",
      "barricade.cover.wood",
      "barricade.metal",
      "barricade.sandbags",
      "barricade.stone",
      "barricade.wood",
      "barricade.woodwire",
      "bbq.deployed",
      "beachchair.deployed",
      "beachparasol.deployed",
      "beachtable.deployed",
      "beachtowel.deployed",
      "beartrap",
      "bed_deployed",
      "black_berry.entity",
      "blue_berry.entity",
      "boogieboard.deployed",
      "boombox.deployed",
      "box.wooden.large",
      "button",
      "cabletunnel",
      "campfire",
      "cardtable.deployed",
      "carvable.pumpkin",
      "cctv_deployed",
      "ceilinglight.deployed",
      "chair.deployed",
      "chair.icethrone",
      "chineselantern.deployed",
      "chippyarcademachine",
      "christmas_door_wreath_deployed",
      "clantable.deployed",
      "coffinstorage",
      "composter",
      "computerstation.deployed",
      "connectedspeaker.deployed",
      "corn.entity",
      "counter",
      "cupboard.tool.deployed",
      "cursedcauldron.deployed",
      "discoball.deployed",
      "discofloor.deployed",
      "discofloor.largetiles.deployed",
      "door.double.hinged.metal",
      "door.double.hinged.toptier",
      "door.double.hinged.wood",
      "door.hinged.industrial.a",
      "door.hinged.industrial.d",
      "door.hinged.metal",
      "door.hinged.toptier",
      "door.hinged.wood",
      "doorcloser",
      "doorcontroller.deployed",
      "doorgarland.deployed",
      "double_doorgarland.deployed",
      "dragondoorknocker.deployed",
      "drone.deployed",
      "dropbox.deployed",
      "drumkit.deployed",
      "easter_door_wreath_deployed",
      "electric.flasherlight.deployed",
      "electric.sirenlight.deployed",
      "electric.sprinkler.deployed",
      "electric.windmill.small",
      "electrical.blocker.deployed",
      "electrical.branch.deployed",
      "electrical.combiner.deployed",
      "electrical.heater",
      "electrical.memorycell.deployed",
      "electrical.modularcarlift.deployed",
      "electrical.random.switch.deployed",
      "electricfurnace.deployed",
      "elevator",
      "fireplace.deployed",
      "flameturret.deployed",
      "floor.grill",
      "floor.ladder.hatch",
      "floor.triangle.grill",
      "floor.triangle.ladder.hatch",
      "fluid.combiner.deployed",
      "fluidsplitter",
      "fluidswitch",
      "fogmachine",
      "frankensteintable.deployed",
      "fridge.deployed",
      "furnace",
      "furnace.large",
      "gates.external.high.stone",
      "gates.external.high.wood",
      "generator.small",
      "giantcandycane.deployed",
      "giantlollipops.deployed",
      "gravestone.stone.deployed",
      "gravestone.wood.deployed",
      "graveyardfence",
      "green_berry.entity",
      "guntrap.deployed",
      "hbhfsensor.deployed",
      "hemp.entity",
      "hitchtrough.deployed",
      "hobobarrel.deployed",
      "icewall",
      "igniter.deployed",
      "industrial.wall.lamp.deployed",
      "industrial.wall.lamp.green.deployed",
      "industrial.wall.lamp.red.deployed",
      "industrialcombiner.deployed",
      "industrialconveyor.deployed",
      "industrialcrafter.deployed",
      "industrialsplitter.deployed",
      "innertube.deployed",
      "innertube.horse.deployed",
      "innertube.unicorn.deployed",
      "jackolantern.angry",
      "jackolantern.happy",
      "kayak",
      "ladder.wooden.wall",
      "landmine",
      "lantern.deployed",
      "large.rechargable.battery.deployed",
      "largecandleset",
      "laserdetector",
      "laserlight.deployed",
      "lock.code",
      "lock.key",
      "locker.deployed",
      "mailbox.deployed",
      "medium.rechargable.battery.deployed",
      "microphonestand.deployed",
      "mining.pumpjack",
      "mining_quarry",
      "mixingtable.deployed",
      "mortarblue",
      "mortarchampagne",
      "mortargreen",
      "mortarorange",
      "mortarpattern",
      "mortarred",
      "mortarviolet",
      "newyeargong.deployed",
      "orswitch.entity",
      "paddlingpool.deployed",
      "photoframe.landscape",
      "photoframe.large",
      "photoframe.portrait",
      "piano.deployed",
      "planter.large.deployed",
      "planter.small.deployed",
      "pookie_deployed",
      "potato.entity",
      "poweredwaterpurifier.deployed",
      "pressurepad.deployed",
      "ptz_cctv_deployed",
      "pumpkin.entity",
      "reactivetarget_deployed",
      "red_berry.entity",
      "refinery_small_deployed",
      "repairbench_deployed",
      "researchtable_deployed",
      "rfbroadcaster",
      "rfreceiver",
      "romancandle",
      "romancandle-blue",
      "romancandle-green",
      "romancandle-violet",
      "rug.bear.deployed",
      "rug.deployed",
      "rustigeegg_a.deployed",
      "rustigeegg_b.deployed",
      "rustigeegg_c.deployed",
      "rustigeegg_d.deployed",
      "rustigeegg_e.deployed",
      "rustigeegg_f.deployed",
      "sam_site_turret_deployed",
      "scarecrow.deployed",
      "searchlight.deployed",
      "secretlabchair.deployed",
      "shelves",
      "shutter.metal.embrasure.a",
      "shutter.metal.embrasure.b",
      "shutter.wood.a",
      "sign.hanging",
      "sign.hanging.banner.large",
      "sign.hanging.ornate",
      "sign.huge.wood",
      "sign.large.wood",
      "sign.medium.wood",
      "sign.neon.125x125",
      "sign.neon.125x215",
      "sign.neon.125x215.animated",
      "sign.neon.xl",
      "sign.neon.xl.animated",
      "sign.pictureframe.landscape",
      "sign.pictureframe.portrait",
      "sign.pictureframe.tall",
      "sign.pictureframe.xl",
      "sign.pictureframe.xxl",
      "sign.pole.banner.large",
      "sign.post.double",
      "sign.post.single",
      "sign.post.town",
      "sign.post.town.roof",
      "sign.small.wood",
      "simplelight",
      "skull_door_knocker.deployed",
      "skull_fire_pit",
      "skullspikes.candles.deployed",
      "skullspikes.deployed",
      "skullspikes.pumpkin.deployed",
      "skulltrophy.deployed",
      "skulltrophy.jar.deployed",
      "skulltrophy.jar2.deployed",
      "skulltrophy.table.deployed",
      "skylantern.deployed",
      "skylantern.skylantern.green",
      "skylantern.skylantern.orange",
      "skylantern.skylantern.purple",
      "skylantern.skylantern.red",
      "sled.deployed",
      "sled.deployed.xmas",
      "sleepingbag_leather_deployed",
      "small_fuel_generator.deployed",
      "small_stash_deployed",
      "smallcandleset",
      "smallrechargablebattery.deployed",
      "smartalarm",
      "smartswitch",
      "snowmachine",
      "snowman.deployed",
      "sofa.deployed",
      "sofa.pattern.deployed",
      "solarpanel.large.deployed",
      "soundlight.deployed",
      "spiderweba",
      "spikes.floor",
      "spinner.wheel.deployed",
      "splitter",
      "spookyspeaker",
      "stocking_large_deployed",
      "stocking_small_deployed",
      "storageadaptor.deployed",
      "storagemonitor.deployed",
      "strobelight",
      "survivalfishtrap.deployed",
      "switch",
      "table.deployed",
      "telephone.deployed",
      "teslacoil.deployed",
      "timer",
      "trophy.deployed",
      "tunalight.deployed",
      "vendingmachine.deployed",
      "volcanofirework",
      "volcanofirework-red",
      "volcanofirework-violet",
      "wall.external.high.ice",
      "wall.external.high.stone",
      "wall.external.high.wood",
      "wall.frame.cell",
      "wall.frame.cell.gate",
      "wall.frame.fence",
      "wall.frame.fence.gate",
      "wall.frame.garagedoor",
      "wall.frame.netting",
      "wall.frame.shopfront",
      "wall.frame.shopfront.metal",
      "wall.window.bars.metal",
      "wall.window.bars.toptier",
      "wall.window.bars.wood",
      "wall.window.glass.reinforced",
      "watchtower.wood",
      "water.pump.deployed",
      "water_catcher_large",
      "water_catcher_small",
      "waterbarrel",
      "waterpurifier.deployed",
      "weaponrack_horizontal.deployed",
      "weaponrack_stand.deployed",
      "weaponrack_tall.deployed",
      "weaponrack_wide.deployed",
      "white_berry.entity",
      "windowgarland.deployed",
      "woodbox_deployed",
      "workbench1.deployed",
      "workbench2.deployed",
      "workbench3.deployed",
      "xmas.lightstring.deployed",
      "xmas_tree.deployed",
      "xorswitch.entity",
      "xylophone.deployed",
      "yellow_berry.entity",
      "_base_car_chassis.entity",
      "_basetrainwagon.entity",
      "_cardtable_base",
      "_snowmobilebase",
      "1module_cockpit",
      "1module_cockpit_armored",
      "1module_cockpit_with_engine",
      "1module_engine",
      "1module_flatbed",
      "1module_passengers_armored",
      "1module_rear_seats",
      "1module_storage",
      "1module_taxi",
      "2module_camper",
      "2module_car_spawned.entity",
      "2module_flatbed",
      "2module_fuel_tank",
      "2module_passengers",
      "3module_car_spawned.entity",
      "4module_car_spawned.entity",
      "attackhelicopter.entity",
      "blackjackmachine.caboose",
      "blackjackmachine.static",
      "car_2mod_01",
      "car_2mod_02",
      "car_2mod_03",
      "car_2mod_04",
      "car_2mod_05",
      "car_2mod_06",
      "car_2mod_07",
      "car_2mod_08",
      "car_3mod_01",
      "car_3mod_02",
      "car_3mod_03",
      "car_3mod_04",
      "car_3mod_05",
      "car_3mod_06",
      "car_3mod_07",
      "car_3mod_08",
      "car_3mod_09",
      "car_3mod_10",
      "car_3mod_11",
      "car_3mod_12",
      "car_4mod_01",
      "car_4mod_02",
      "car_4mod_03",
      "car_4mod_04",
      "car_4mod_05",
      "car_4mod_06",
      "car_4mod_07",
      "car_4mod_08",
      "car_4mod_09",
      "car_4mod_10",
      "car_4mod_11",
      "car_chassis_2module.entity",
      "car_chassis_3module.entity",
      "car_chassis_4module.entity",
      "cardtable.caboose",
      "cardtable.caboose_static",
      "cardtable.static_configa",
      "cardtable.static_configa_hidden",
      "cardtable.static_configb",
      "cardtable.static_configc",
      "cardtable.static_configd",
      "ch47.entity",
      "ch47scientists.entity",
      "chippyarcademachine.static",
      "locomotive.entity",
      "magnetcrane.entity",
      "minicopter.entity",
      "parachute",
      "rhib",
      "rowboat",
      "scraptransporthelicopter",
      "sedanrail.entity",
      "sedantest.entity",
      "snowmobile",
      "sofa.static",
      "sofa_pattern.static",
      "submarineduo.entity",
      "submarinesolo.entity",
      "testridablehorse",
      "tomahasnowmobile",
      "traincaboose.entity",
      "trainwagona.entity",
      "trainwagonb.entity",
      "trainwagonc.entity",
      "trainwagonunloadable.entity",
      "trainwagonunloadablefuel.entity",
      "trainwagonunloadableloot.entity",
      "tugboat",
      "workcart.entity",
      "workcart_aboveground.entity",
      "workcart_aboveground2.entity"
    ],
    "Prefabs blacklist": []
  },
  "Team Options": {
    "Enable team offline protection sharing": true,
    "Mitigate damage by the team-mate who was offline the longest": false,
    "Include players that are whitelisted on Codelocks": false,
    "Prevent players from leaving or disbanding their team if at least one team member is offline": false,
    "Enable offline raid protection penalty for leaving or disbanding a team": false,
    "Penalty duration in hours": 24.0
  },
  "Command Options": {
    "Commands to check offline protection status": [
      "ao",
      "orp"
    ],
    "Command to display offline raid protection information": "raidprot",
    "Command to fill the offline times of all players": "orp.fill.onlinetimes",
    "Command to change a player's offline time": "orp.test.offline",
    "Command to change a player's offline time to the current time": "orp.test.online",
    "Command to change a player's penalty duration": "orp.test.penalty"
  },
  "Permission Options": {
    "Permission required to enable offline protection": "offlineraidprotection.protect",
    "Permission required to check offline protection status": "offlineraidprotection.check",
    "Permission required to use admin functions": "offlineraidprotection.admin"
  },
  "Other Options": {
    "Play sound when damage is mitigated": false,
    "Asset path of the sound to be played": "assets/prefabs/locks/keypad/effects/lock.code.denied.prefab",
    "Display a game tip message when a prefab is protected": true,
    "Message duration in seconds": 3.0
  },
  "Timezone Options": {
    "Timezone": ""
  },
  "Version": {
    "Major": 1,
    "Minor": 1,
    "Patch": 2
  }
}

Share this comment


Link to comment

Just saw i'm getting this error on console

Failed to call hook 'OnEntityTakeDamage' on plugin 'OfflineRaidProtection v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.OfflineRaidProtection.GetCachedDamageScale (System.UInt64& targetID) [0x0002d] in <5aa376afdbb242a296e28837575ccec4>:0 
  at Oxide.Plugins.OfflineRaidProtection.OnStructureAttack (BaseCombatEntity& entity, HitInfo& hitInfo) [0x000de] in <5aa376afdbb242a296e28837575ccec4>:0 
  at Oxide.Plugins.OfflineRaidProtection.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f3b] in <5aa376afdbb242a296e28837575ccec4>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0 

Share this comment


Link to comment

Hello,
Your configuration is correct. You don't need '"1": 0.0,' in your config, it's not necessary. I cannot reproduce your error. You said it worked before and now it does not, what did you do on your server before the error occurred? Can you please send me the oxide\data\OfflineRaidProtection\LastOnlineData.json file? Whose base did you attack? Does this happen to all bases?

  • Like 1

Share this comment


Link to comment

Hello!

it was not working before, was my first time putting it in my server

I restarted server and its working fine now! thank you so much

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.7k

Files Sold

Total number of files sold.

1.6m

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.