I saw that one yesterday as well.
Here is a temp fix, I'll fix it with next release...
Untested.... I cant right now.

Factions
A Faction system with Leaders, Taxes, Trades, Ranks, Kill Rewards, and MORE!
Total Downloads: 2,712 - First Release: May 20, 2016 - Last Update: Oct 27, 2017
- 5/5, 24 likes
-
Attached Files:
Last edited by a moderator: May 29, 2016 -
-
[Oxide] 23:42 [Error] Failed to call hook 'OnDispenserGather' on plugin 'Factions v1.3.0' (KeyNotFoundException: The given key was not present in the dictionary.)
[Oxide] 23:42 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.Factions+FactionPlayerData].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Factions.OnDispenserGather (.ResourceDispenser Dispenser, .BaseEntity entity, .Item item) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Factions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
[Oxide] 23:42 [Error] Failed to call hook 'OnDispenserGather' on plugin 'Factions v1.3.0' (KeyNotFoundException: The given key was not present in the dictionary.)
[Oxide] 23:42 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.Factions+FactionPlayerData].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Factions.OnDispenserGather (.ResourceDispenser Dispenser, .BaseEntity entity, .Item item) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Factions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
[Oxide] 23:42 [Error] Failed to call hook 'OnLootEntity' on plugin 'Factions v1.3.0' (KeyNotFoundException: The given key was not present in the dictionary.)
[Oxide] 23:42 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.Factions+FactionPlayerData].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Factions.OnLootEntity (.BasePlayer player, System.Object lootable) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Factions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
[Oxide] 23:42 [Error] Failed to call hook 'OnLootEntity' on plugin 'Factions v1.3.0' (KeyNotFoundException: The given key was not present in the dictionary.)
[Oxide] 23:42 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.Factions+FactionPlayerData].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Factions.OnLootEntity (.BasePlayer player, System.Object lootable) [0x00000] in <filename unknown>:0
at Oxide.Plugins.Factions.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 -
If you could attach your config, I'll try to test it. That would be awesome.
I wonder if most of these issues involve people in "no faction at all". Meaning not Rebels or anything. This should never happen...
I am looking to put in more checks to prevent errors if a player is not registered in a faction to prevent NREs.
[DOUBLEPOST=1464566158][/DOUBLEPOST]
I can very easily make it so everyone joins rebels by default. Maybe I'll make it a config option as some would prefer the selection from the start.Last edited by a moderator: May 30, 2016 -
If anyone wants to test the newest version PM me. I made some major changes and would like the warm and fuzzy.
Thanks! -
Well seems like this plugin has issues with chathandler at the same time.
-
I like the feel of everyone talking with "faction" tags but you may not. If that is the case you can disable this setting. No sweat. -
NVM. I really appreciate alternate features of chat handler and I'd prefer not to lose them,
-
-
factions is not recognized as a command anymore... weird.
-
-
-
Is there a possibility to add the ability to make factions invite only, and default users to the non faction?
-
-
-
Thanks for that Fix. and just to say. Great work.
Maybe a suggestion- An option to The leader // not handled with playtime. - Handled like in Devilsisland. if leader goes off, There is a new one. also when leader gets killed .. Or just for the most kills ., Like..... If someone is Afk the whole day.... he doesnt deserve to be leader. -
I have a major release coming very soon probably tonight that will make the leader even more important and I'll look to modify leader attributes in the next release following. -
-
a quick question. i have disabled the tax system because i feel it can be abused. right now a leader can set a extremely high tax and the faction members cant do a shit about it :S could you add somekind of vote system so the faction members can kick the leader or strip him from the tax powers? i like the fact that the leader is chosen by playtime while i also hate it. another idea is that the leader could be chosen by a vote. but thats just an idea, i dont think that would work well xD
Edit: sorry i diddent saw your post 2 post up xD. a vote would be awesomeLast edited by a moderator: May 30, 2016 -
Modify Leader Attributes? Well I Modified The "Devils Island" Plugin For myself // Code not only from myself . To modify the Boss Attributes. Maybe you wanna have a look here. Maybe it gives you some ideas
Ps - Your Fast Fix -.... did somehow wierd things xD players get unassigned.- or assigned somehow in the wrong faction....
Code:void OnPlayerAttack(BasePlayer player, HitInfo hitInfo) { var weapon = hitInfo?.Weapon?.GetItem()?.GetHeldEntity() as BaseProjectile ?? null; if (!weapon) return; string ammoType = weapon.primaryMagazine.ammoType?.displayName.english ?? "Melee"; //Puts(Convert.ToString(ammoType)); Rust.DamageType explodeDamage = Rust.DamageType.Explosion; Rust.DamageType flameDamage = Rust.DamageType.Heat; Rust.DamageType elecDamage = Rust.DamageType.ElectricShock; if(State.IsBoss(player)) { if (ammoType=="HV 5.56 Rifle Ammo") { Effect.server.Run(("assets/prefabs/locks/keypad/effects/lock.code.shock.prefab"), hitInfo.HitPositionWorld); dealDamage(hitInfo.HitPositionWorld, 13f, 0f, elecDamage); } if (ammoType=="Explosive 5.56 Rifle Ammo") { Effect.server.Run(("assets/bundled/prefabs/fx/survey_explosion.prefab"), hitInfo.HitPositionWorld); dealDamage(hitInfo.HitPositionWorld, 6f, 5f, explodeDamage); } if (ammoType=="Incendiary 5.56 Rifle Ammo") { Effect.server.Run(("assets/prefabs/weapons/torch/effects/attack_lit.prefab"), hitInfo.HitPositionWorld); dealDamage(hitInfo.HitPositionWorld, 10f, 2f, flameDamage); } } } private void dealDamage(Vector3 deathPos, float damage, float radius, Rust.DamageType type) { List<BaseCombatEntity> entitiesClose = new List<BaseCombatEntity>(); List<BaseCombatEntity> entitiesNear = new List<BaseCombatEntity>(); List<BaseCombatEntity> entitiesFar = new List<BaseCombatEntity>(); Vis.Entities(deathPos, radius / 3, entitiesClose); Vis.Entities(deathPos, radius / 2, entitiesNear); Vis.Entities(deathPos, radius, entitiesFar); foreach (BaseCombatEntity entity in entitiesClose) { entity.Hurt(damage, type, null, true); // notifyPlayer(entity); } foreach (BaseCombatEntity entity in entitiesNear) { if (entitiesClose.Contains(entity)) return; entity.Hurt(damage / 2, type, null, true); // notifyPlayer(entity); } foreach (BaseCombatEntity entity in entitiesFar) { if (entitiesClose.Contains(entity) || entitiesNear.Contains(entity)) return; entity.Hurt(damage / 4, type, null, true); //notifyPlayer(entity); } }
-
[DOUBLEPOST=1464645813][/DOUBLEPOST]
If I get sometime today I'll try to shove a vote system in before this release. Also tax is capped at 25%. Shame on abusive faction leaders!!!
[DOUBLEPOST=1464646157][/DOUBLEPOST]
The leader could tax still and the war captain can set raid rally spawns (coming in this update)
Maybe the war captain will get moded attributes like your example provides. We will see!
As per quick fix, this update should hopefully resolve your issue!Last edited by a moderator: May 30, 2016