AntiOfflineRaid

Moved

Total Downloads: 6,124 - First Release: Nov 17, 2015 - Last Update: Mar 1, 2018

5/5, 32 likes
  1. Here are our first tests results for the wipe we do tomorrow.

    No problem with direct and indirect damages : and we tried flamethrower, inciandary ammo and rockets as well ( protection text is poping on the screen and is flashing during the time flames are trying to make damages )

    Just a small remark : we put a bed between a stone fondation and a wood fundation, and a cupboard tool on a wooden fundation : Then we ignited fire from the outside, flames were below the fundation, the fundation do not take any damages but the cupboard tool or bed or anything else I suppose can be destroyed through the action of flames below the base ( wood fondations ). I know people do not let wood very long but it must be known ;-) Don't know what could prevent that when clan members are offline.

    Here is the config I use for the test :

    Code:
    "afkMinutes": 60,
      "clanFirstOffline": true,
      "clanShare": true,
      "cooldownMinutes": 2,
      "damageScale": {
        "1": 1,
        "12": 1,
        "3": 1,
        "48": 1,
        "6": 1
      },
      "interimDamage": 0.0,
      "minMembers": 1,
      "playSound": false,
      "prefabs": [
        "door.hinged",
        "door.double.hinged",
        "window.bars",
        "floor.ladder.hatch",
        "floor.frame",
        "wall.frame",
        "shutter",
        "wall.external",
        "gates.external"
      ],
      "protectionMessage": "This building is protected: {amount}%",
      "showMessage": true,
      "sound": "assets/prefabs/weapon mods/silencers/effects/silencer_attach.fx.prefab",
      "VERSION": "0.2.1"
    ATTENTION !

    I am on the server with another admin ( same clan ) and I make a /ao to check :

    [​IMG]

    Why is it player status offline : we are online and playing ( and afk minutes is set to 60 )

    Player status is not showing the reality. Player status are offline from time to time and online from time to time...I tried to change the value ( 45 instead of 60 )
    If I am right, player status should be online until the end of the period we set in the config : 60 or 45

    Last test we did : We built a base together with different parts placed by me and by him.
    I disconnected at 6.50pm ( 2 min cooldown and protection 1hour until 7.50pm ))
    He disconnected 20 minutes later : 7.10pm ( protection until 8.10pm)

    First I set clanFirstOffline": false, but with that, when I disconnected, my part was protected even if the other admin was connected in the clan. ( not normal ? ). Then I set the clanFirstOffline to true and then it was possible for him to make damages on the parts I built.

    We asked other player to check the base at different times to make damages :

    1) 7.15 pm : My player status and the other admin (same clan ) : player offline/clan offline - player offline/clan offline
    Protection is working 100% on every structure ( straw - wood - stone - metal - armored )

    2) 8.00 pm = ( my personal protection was passed ( 6.50-7.50 ) but the one of my clan mate was not ( 7.10 - 8.10 )
    Protection is working 100% on every structure ( mine and the one of the other player )

    3) 8.15 pm = ( my personal protection was passed ( 6.50-7.50 ) and the one of my clan mate as well ( 7.10 - 8.10 )
    Protection is not working anymore and damages can be done to all structures.

    So Everything is working 100% concerning the protection and the setting.

    I only have one question concerning the player status : offline / online that does not seem to work properly in respect of the number set in the config ?

    Thx
     
    Last edited by a moderator: Jun 15, 2016
  2. Calytic

    Calytic Community Admin Community Mod

    Do you want precision or do you want speed, you can't have both.
     
  3. Disreagard ;-)
     
    Last edited by a moderator: Jun 23, 2016
  4. Failed to load Plugin No source found
     
  5. when I /ao PLAYERNAME if the player is offline it says "No player found" how do i check how long they're offline if I can't find them
     
  6. I changed the dmg scale but when in game it stays as the default one, And yes i reloaded the Plugin.
     
  7. Just making sure I'm not doing someting wrong, but do I have to update the permissions everytime a new person joins the server? Or will it automatically update so their base is protected by this plugin? Thank you.
     
  8. Please. On my server this mod not work. :(
    Full protect player building first 48 hours. But not work. :(
    Code:
    {
      "afkMinutes": 5,
      "clanFirstOffline": false,
      "clanShare": false,
      "cooldownMinutes": 5,
      "damageScale": {
        "1": 0.0,
        "12": 0.0,
        "3": 0.0,
        "48": 0.0,
        "6": 0.0
      },
      "interimDamage": 0.0,
      "minMembers": 1,
      "playSound": false,
      "prefabs": [
        "door.hinged",
        "door.double.hinged",
        "window.bars",
        "floor.ladder.hatch",
        "floor.frame",
        "wall.frame",
        "shutter",
        "wall.external",
        "gates.external"
      ],
      "protectionMessage": "Budova je chránená: {amount}%",
      "showMessage": true,
      "sound": "assets/prefabs/weapon mods/silencers/effects/silencer_attach.fx.prefab",
      "VERSION": "0.2.1"
    }
    Code:
    Group 'default' permissions:
    betterchat.group.default, signartist.url, antiofflineraid.protect, bounty.use, wheresmycorpse.canuse, crosshair.use, canusemostonline
     
  9. fixe 07/07 please
     
  10. It seems like the plugin is still working, but the UI is not showing up.
     
  11. Does anyone has a fix for this yet ?
     
  12. GUI don't work anymore !
     
  13. Could you please update the plugin ?
     
  14. To operate a pop-up window with the text, in the script text, remove the HUD/ .
    Code:
            private string jsonMessage = @"[{""name"":""AntiOfflineRaidMsg"",""parent"":""HUD/Overlay"",""components"":[{""type"":""UnityEngine.UI.Image"",""color"":""0 0 0 0.78""},{""type"":""RectTransform"",""anchormax"":""0.64 0.88"",""anchormin"":""0.38 0.79""}]},{""name"":""MessageLabel{1}"",""parent"":""AntiOfflineRaidMsg"",""components"":[{""type"":""UnityEngine.UI.Text"",""align"":""MiddleCenter"",""fontSize"":""19"",""text"":""{protection_message}""},{""type"":""RectTransform"",""anchormax"":""1 1"",""anchormin"":""0 0""}]}]";
    
     
  15. I can't seem to make it work :s
     
  16. no work ? please send me you antioffraid.cs
     
  17. Attached Files:

  18. not work :/
     
  19. Plugin dosn't work at all noww
     
  20. Running into the following error. Any help would be greatly appreciated..

    AntiOfflineRaid.cs(556,40): error CS1061: Type `BaseCombatEntity' does not contain a definition for `LookupShortPrefabName' and no extension method `LookupShortPrefabName' of type `BaseCombatEntity'