Sharing Levels with Team members?

Is there possibly a way (maybe with editing the configs/plugin itself. To share experience across teams either automatically (meaning anyone in my team will automatically get experience when another member of the team is mining) or Manually (Meaning I can get a teams SteamIDs and group them, then somehow share the Experience between the 3.Β 

Im hosting a Rust server for me and about 10 friends, most of them noobs. I want to have the leveling system but I don't want to discourage 1 person from going out to mine, just because someone else on their team is a higher level. So I am looking for a way to have a set level per team.Β 

https://pastebin.com/TSZMZR2A


Save as ZLevelsRemastered.cs

this might work, or it might screw everything up. make a backup of oxide/data/ZLevel files before installing

this will however only work with rust teams, so your friends must be in the same team for them to share xp

if you need you can increase the team size with relationshipmanager.maxteamsize convar

so for example in server console type relationshipmanager.maxteamsize 10

if it doesn't work,

delete plugin from server
restore backed up data files
reinstall version from umod

Thanks! Will attempt and give feedback πŸ‘

Would'nt that lead to some complication ? , If player "A" joines one team and inherites *levels from other team members and stays in that team for several days, then exits that team and joins another team with different (lower/higher )levelsΒ  do they inherit player "A's" higher levels or does player "A" lose levels if the other team members are at a much lower level ?
IF you have a high pop server with many changes of team members how would that work ?

I have not tested it yet, But I assume the best way to work around that is making it that the Team Leader is the Parent of the group, and the memebers are the Child, Meaning that all the XP the child gathers/earns will go into a Parent pool, then if someone leaves the team and joins another, They inherit off of the Parent, rather than setting the whole teams level higher.Β 

I personally won't have this issue as I will be on a low pop friends server where we will remain in the teams. But I get where you are coming from.

i threw this together in a few mins for him to use on his server so his buds would have more fun

i have no time to fully implement it yet. i have several pending changes that need tested first

not to mention i have 25 other projects i work on :p

nivex

i threw this together in a few mins for him to use on his server so his buds would have more fun

i have no time to fully implement it yet. i have several pending changes that need tested first

not to mention i have 25 other projects i work on :p

No problems , i was just wondering about the implementation/complications that might arise, personally i am quite happy the way the plugin is working (for me since 2016) and the benefits it brings to the server.

nivex

i threw this together in a few mins for him to use on his server so his buds would have more fun

i have no time to fully implement it yet. i have several pending changes that need tested first

not to mention i have 25 other projects i work on :p

So when running the new plugin I get this being spammed in console and some errors popping up on screen.Β 

1489164[1489164] died (Generic)
Failed to call hook 'OnEntityDeath' on plugin 'ZLevelsRemastered v3.0.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ZLevelsRemastered.OnEntityDeath (BasePlayer player, HitInfo hitInfo) [0x0003d] in <083fba0811884235bc8460f3044974c4>:0 prs                                                                                 0b/s in, 0b/s out
  at Oxide.Plugins.ZLevelsRemastered.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x007bc] in <083fba0811884235bc8460f3044974c4>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <0fbce81d88d64454b3e7abb24df7026b>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <0fbce81d88d64454b3e7abb24df7026b>:0

Β 

Β 

Unsure whats causing itΒ 

not sure how I missed this message. refresh the pastebin link and download it again @Prejudice