Jump to content

removing ownership doesnt work

Closed 1.1.9 2.0.1

Ondraasek
Ondraasek

Posted

Hi, it worked in previous versions, but now I have

"Remove Ownership From Bases": true,

But when abandoned event is started, ownership is not removed and TruePVE and Raid plugin is blocking damage on the building.

Can you advise? it worked like week ago.

Thanks a lot.

This is my whole config:

{
  "Purge Settings": [
    {
      "Permission": "abandonedbases.vip",
      "Lifetime (Days)": "2",
      "Conversions Before Destroying Base": 1
    },
    {
      "Permission": "abandonedbases.veteran",
      "Lifetime (Days)": "2",
      "Conversions Before Destroying Base": 1
    },
    {
      "Permission": "abandonedbases.basic",
      "Lifetime (Days)": "2",
      "Conversions Before Destroying Base": 1
    }
  ],
  "Abandoned Settings": {
    "Automatic Conversions Disabled Between These Times": [
      {
        "Enabled": false,
        "Start Time": "00:00",
        "End Time": "12:00"
      },
      {
        "Enabled": false,
        "Start Time": "12:00",
        "End Time": "00:00"
      }
    ],
    "Auto Turrets": {
      "Enabled": false,
      "Aim Cone": 5.0,
      "Ammo": 256,
      "Infinite Ammo": false,
      "Minimum Damage Modifier": 1.0,
      "Maximum Damage Modifier": 1.0,
      "Start Health": 1000.0,
      "Sight Range": 30.0,
      "Double Sight Range When Shot": false,
      "Set Hostile (False = Do Not Set Any Mode)": true,
      "Has Power": false,
      "Requires Power Source": false,
      "Remove Equipped Weapon": false,
      "Random Weapons To Equip When Unequipped": [
        "rifle.ak"
      ]
    },
    "Blacklisted Commands": [
      "command1",
      "command2",
      "command3"
    ],
    "BotSpawn Profile Names": [
      "profile_name_1",
      "profile_name_2"
    ],
    "Allow PVP": true,
    "Block RestoreUponDeath Plugin For PVP Bases": false,
    "Block RestoreUponDeath Plugin For PVE Bases": false,
    "Block RestoreUponDeath Plugin For Sleepers": true,
    "Cooldown Between Conversions": 3600.0,
    "Economics Cost To Manually Convert (0 = disabled)": 0.0,
    "ServerRewards Cost To Manually Convert (0 = disabled)": 0,
    "Marker Name (Minutes)": "Abandoned Player Base [{time}m]",
    "Marker Name (Seconds)": "Abandoned Player Base [{time}s]",
    "Foundations Required": 4,
    "Walls Required": 3,
    "Include Twig Structures": false,
    "Sphere Amount": 10,
    "Sphere Radius": 50.0,
    "Use Dynamic Sphere Radius": false,
    "Max Dynamic Radius": 75.0,
    "Min Custom Sphere Radius": 25.0,
    "Max Custom Sphere Radius": 75.0,
    "Players Cannot Loot Wounded Players": true,
    "PVP Delay": 15.0,
    "Despawn Timer": 1800.0,
    "Reset Despawn Timer When Base Is Attacked": true,
    "Do Not Destroy Base When Despawn Timer Expires": false,
    "Do Not Destroy Manually Converted Base When Despawn Timer Expires": false,
    "Backpacks Can Be Opened": true,
    "Corpses Can Be Looted By Anyone": true,
    "Backpacks Can Be Looted By Anyone": false,
    "Time To Wait Between Spawns": 15.0,
    "Use Map Marker": true,
    "Require Event Be Finished Before It Can Be Canceled": true,
    "Check If Abandoned Bases Are Too Close Together": true
  },
  "Messages": {
    "Advanced Alerts UI": {
      "Enabled": true,
      "Anchor Min": "0.35 0.85",
      "Anchor Max": "0.65 0.95",
      "Time Shown": 5.0
    },
    "Notify Plugin - Type (-1 = disabled)": 0,
    "UI Popup Interval": 1.0,
    "Send Messages To Player": true
  },
  "Run Once On Server Startup": false,
  "Run Every X Seconds": 10800,
  "Kill Inactive Sleepers": false,
  "Let Players Kill Abandoned Sleepers": false,
  "Remove Ownership From Bases": true,
  "Steam Chat ID": 0
}

 

nivex

Posted (edited)

TruePVE is not blocking it so it must be the raid plugin. Plugins must use the EventTerritory API from this plugin to be compatible. TruePVE is told by this plugin what it can and cannot do, so it can't be TruePVE. Rules and flags are ignored

it is intended that this option only removes ownership from boxes atm

I will change this and add another separate option to only remove from boxes

 

Edited by nivex
nivex

Posted

            private void SetupEntities()
            {
                float invokeTime = 0f;

                foreach (var e in entities)
                {
                    if (e.IsKilled() || e.net == null) continue;
                    Instance.AbandonedReferences[e.net.ID] = this;
                    if (e is AutoTurret) Instance.timer.Once(invokeTime += 0.1f, () => SetupTurret(e as AutoTurret));
                    if (config.Abandoned.DespawnTime <= 0f) continue;
                    if (config.RemoveOwnership) e.OwnerID = 0;
                }

                Instance.Subscribe();
            }

you can replace the existing method in the .cs with this one for the time being

Ondraasek

Posted

thank you I will try it tomorrow, thanks a lot. I have the main problem, that I couldnt do any damage on building. Will try your fix. Thanks a lot! really appreciate your help

  • Like 1
Ondraasek

Posted

Works as hell. thanks a lot! add it to the next updates, thanks a lot again

  • Like 1
nivex

Posted

no problem. it is in the next update

nivex

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

Ondraasek

Posted

Hi Nivex,

I have:  

"Remove Ownership From Bases": true,
 "Remove Ownership From Containers": true,

 

btu the problem is when ppl are building at that zone with NoRaid and True PVE plugin, so others cant destroy their structure.

Like if ppl will put their own doors to the abandoned base, nobody can destroy these doors.

Is possible to remove ownership on all items once deployed by player during the event?

Thanks a lot

 

nivex

Posted

yes i will add this thanks for letting me know

  • Like 1
Ondraasek

Posted

thank you so much

13 hours ago, nivex said:

yes i will add this thanks for letting me know

THi Nivex,

I have:  

"Remove Ownership From Bases": true,
 "Remove Ownership From Containers": true,

 

btu the problem is when ppl are building at that zone with NoRaid and True PVE plugin, so others cant destroy their structure.

Like if ppl will put their own doors to the abandoned base, nobody can destroy these doors.

Is possible to remove ownership on all items once deployed by player during the event?

Thanks a lot

 

nivex

Posted

Changed Fixed In from 2.0.0 to Next Version

Ondraasek

Posted

12 hours ago, nivex said:

Changed Fixed In from 2.0.0 to Next Version

so its fixed now? thanks

nivex

Posted

yes, in the next version as the message says 😃 

Ondraasek

Posted

and when new version will be released? 😄

nivex

Posted

when it's ready =p

Ondraasek

Posted

still doesnt work since august 😞

nivex

Posted

this most definitely works. post your config

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.1k

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.