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
  1. Absolut updated Factions with a new update entry:

    1.7

     
  2. This must be the most frequently updated plugin XD
    Keep up the good work!
     
  3. thanks!
     
  4. Ever since the update by FacePunch yesterday I am seeing the notification " Your Tax Box has been destroyed" even though it hadn't. It is sporadic. Is anyone else seeing this behavior?

    Thanks!
     
  5. First off, Altimus, thank you for your work on this mod it's precisely what I was looking for.

    I have a feature request. My concern is faction balance. I would like a way to disable the option of joining a faction that has X (configurable) number more players than the faction with the least number of players. Even better would be if the number of players for each faction was calculated based on the number of players who have played within X (configurable) days/hours.
     
  6. So you would like a check to occur to say, you can't join this faction because the accumulated playtime is to great? Or because there are to many people on the faction. Even better perhaps the faction button doesn't show up because of the settings mentioned?
     
  7. The later, preventing a player from joining a faction because there are too many people in that faction. Based on some threshold difference of players.

    So lets say FactionA has 10 players, FactionB has 15 players and FactionC has 14 players. If the maximum allowed difference in players is 5, then FactionA would not be available for new players to select. If one more player got added to FactionC, then the only available faction choice would be FactionA.

    I think better than making the faction button not show up would be to somehow mark it as full either in the faction selection screen or as a response when they attempt to select it. This way the player can still see the list of available factions, but know why one isn't available.
     
  8. Edit : I made a big mistake. Faction finally works perfectly... Sorry for convenience
     
    Last edited by a moderator: Jun 5, 2016
  9. I'm glad it is working!
    [DOUBLEPOST=1465083808][/DOUBLEPOST]
    Let me see what I can do!
     
  10. You're awesome, let me know if you need help testing.
     
  11. Any way to prevent the double messages when someone types in chat?
     
  12. What other plugins are you using? You can turn usepluginchatcontrol false to stop faction branded chat. The option maybe called something different but you should find it in the factions.json config file.
     
  13. Maybe an idiot question but...
    Is the spawnfile created automatically for :
    "FactionB_Spawnfile": "AudacieuxSPAWN",
    ?
    Edit : And any idea to show the user's Faction in Betterchat ? (Maybe wrong place to ask this I know...)

    Thanks
     
    Last edited by a moderator: Jun 5, 2016
  14. Oh shoot I think that is old config options that don't have a purpose. At one point I had made spawns use the Spawns Plugin. I'll need to clean that up. Instead as an admin you just create the spawn points using chat commands /faction spawn new/remove. It stores it in a data file called factions_spawns.json

    If you need further help I will not be at a computer for the next 8-10 hours.
     
  15. Oh thanks, it's just what I wanted to know !
    [DOUBLEPOST=1465137613][/DOUBLEPOST]And to show player's Faction in Betterchat, an idea ? :)
     
  16. Code:
    [Oxide] 22:32 [Info] Factions was compiled successfully in 1252ms
    [Oxide] 22:32 [Info] Loaded plugin Factions v1.7.0 by K1lly0u & Absolut
    [Oxide] 22:32 [Info] [Factions] Leader has more time then Starche
    [Oxide] 22:32 [Info] [Factions] Leader has more time then patimeyker
    [Oxide] 22:32 [Info] [Factions] Leader has more time then SJ9
    [Oxide] 22:32 [Info] [Factions] Leader has more time then #L1D2
    [Oxide] 22:32 [Error] Failed to call hook 'OnServerInitialized' on plugin 'Factions v1.7.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 22:32 [Debug]   at Oxide.Plugins.Factions.CheckLeader () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Factions.OnServerInitialized () [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 (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 22:32 [Warning] Calling 'OnServerInitialized' on 'Factions v1.7.0' took 378ms [GARBAGE COLLECT]
     
  17. Code:
    [Oxide] 21:27 [Error] Failed to call hook 'cmdfaction' on plugin 'Factions v1.7.0' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 21:27 [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.cmdfaction (.BasePlayer player, System.String command, System.String[] args) [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 (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  18. This would require a request from BetterChat. There is a hook to check a players faction; I'd be happy to work with the plugin developer if they feel there is enough demand to do the work.
     
  19. Code:
    [06/07/2016 00:42:01] [Oxide] 00:42 [Warning] [Updater]
    Following plugins are outdated:# Factions | Installed: 1.7.0 - Latest: 2.0.2 | http://oxidemod.org/plugins/5/
     
  20. Only thing I can think of is that this is erroring because the player executing /faction isnt in any faction (this includes REBELS - NO FACTION). If that is the case, I have a solution. Confirm if you can and I'll make the fix in this upcoming update.
    [DOUBLEPOST=1465244446][/DOUBLEPOST]
    This will sound stupid.. I never knew what the number coincided with... so prior to release I just made one up.

    In this update Ill change /5/ to /1919/ so updater looks at the right plugin and works effectively.

    I can't tell you enough how much I appreciate you letting me know this...