"Lose Drafts on Leaving": true,Solved

"Lose Drafts on Leaving": true,   When I turn on this feature, if a player shares bp with a player in their own clan and the player in the clan leaves the clan, the bp's will be deleted, but if a player with full bp enters any clan and shares bp, if he leaves the clan, the bp will not be deleted from the players of that clan. 

So "Lose Blueprints on Leave": true,  feature is not working  players are selling full bp for 2000 sulfur, "Lose Drafts on Leaving": an update would be nice to make the feature work more fully

The "Lose Blueprints on Leave" feature works as intended as the player who leaves the clan loses all blueprints that were shared to them by members of the clan. I don't personally think it makes sense for clan members to lose blueprints that you shared to them as you have a choice as to whether or not you want to share blueprints. Not sure what you are refering to with "Lose Drafts on Leaving" as that is not an option in the plugin.

I mentioned Lost Blueprints on Leave, I think it can be very useful if you add a custom setting for it because blueprints are traded within the server.

 

I also got an error like this, but I couldn't make sense of it.
[Error] Failed to call hook 'OnTeamKick' on plugin 'BlueprintShare v1.3.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.BlueprintShare.OnTeamKick (RelationshipManager+PlayerTeam team, BasePlayer player, System.UInt64 target) [0x00018] in <26007b4c8ba044dc87cd20588170177a>:0

at Oxide.Plugins.BlueprintShare.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002bf] in <26007b4c8ba044dc87cd20588170177a>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0

With Clans Reborn and using "Lose Blueprints on Leave": true, I am not seeing players losing their blueprints when they are leaving or kicked from the clan.

Thanks for the additional information I will investigate these issues.

wX3apWEAf0QEjT6.jpg igreatwhite

With Clans Reborn and using "Lose Blueprints on Leave": true, I am not seeing players losing their blueprints when they are leaving or kicked from the clan.

Can you confirm that blueprints are being stored in the data file under the clans property?

ccreep

Can you confirm that blueprints are being stored in the data file under the clans property?

Ill be able to get back to you soon with a response currently have some downtime on our host platform. Will let you know soon though.

ccreep

Can you confirm that blueprints are being stored in the data file under the clans property?

It is not storing any data, the file is almost blank this is all it says.

{
"Players": {}
}

 

wX3apWEAf0QEjT6.jpg igreatwhite

It is not storing any data, the file is almost blank this is all it says.

{
"Players": {}
}

 

Clans plugin is faulty, no error in blueprint share

wX3apWEAf0QEjT6.jpg igreatwhite

It is not storing any data, the file is almost blank this is all it says.

{
"Players": {}
}

 

Odd I would expect to see more data there even if "Lose Blueprints on Leave" feature isn't working. I don't have access to the Clans Reborn plugin to test but it uses the same API as the free Clans plugin so it should work fine in theory.

YZyoi98ccOzhJJt.jpg BaranFarketmez

I mentioned Lost Blueprints on Leave, I think it can be very useful if you add a custom setting for it because blueprints are traded within the server.

 

I also got an error like this, but I couldn't make sense of it.
[Error] Failed to call hook 'OnTeamKick' on plugin 'BlueprintShare v1.3.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.BlueprintShare.OnTeamKick (RelationshipManager+PlayerTeam team, BasePlayer player, System.UInt64 target) [0x00018] in <26007b4c8ba044dc87cd20588170177a>:0

at Oxide.Plugins.BlueprintShare.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002bf] in <26007b4c8ba044dc87cd20588170177a>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0

If you only want new blueprints to be shared to clan members then you could disable the manual share command and share on join feature as this would prevent people from trading blueprints no?

ccreep

Odd I would expect to see more data there even if "Lose Blueprints on Leave" feature isn't working. I don't have access to the Clans Reborn plugin to test but it uses the same API as the free Clans plugin so it should work fine in theory.

{
  "Players": {
    "76561############": {
      "SharingEnabled": true,
      "LearntBlueprints": {
        "Team": [],
        "Clan": [
          1424075905
        ],
        "Friends": {}
      }
    },
    "76561############": {
      "SharingEnabled": true,
      "LearntBlueprints": {
        "Team": [],
        "Clan": [
          1424075905
        ],
        "Friends": {}
      }
    },
    "76561############": {
      "SharingEnabled": true,
      "LearntBlueprints": {
        "Team": [],
        "Clan": [
          1424075905
        ],
        "Friends": {}
      }
    }
  }
}
 
So three clan members, i left and still have the BP but it generated this.
wX3apWEAf0QEjT6.jpg igreatwhite
{
  "Players": {
    "76561############": {
      "SharingEnabled": true,
      "LearntBlueprints": {
        "Team": [],
        "Clan": [
          1424075905
        ],
        "Friends": {}
      }
    },
    "76561############": {
      "SharingEnabled": true,
      "LearntBlueprints": {
        "Team": [],
        "Clan": [
          1424075905
        ],
        "Friends": {}
      }
    },
    "76561############": {
      "SharingEnabled": true,
      "LearntBlueprints": {
        "Team": [],
        "Clan": [
          1424075905
        ],
        "Friends": {}
      }
    }
  }
}
 
So three clan members, i left and still have the BP but it generated this.

I have released an update with a potential fix for this issue. If you could test and let me know.

 

Locked automatically