Building Owners

Sets owners of houses when someone builds a house part

Total Downloads: 12,016 - First Release: Apr 3, 2015 - Last Update: Jul 30, 2016

5/5, 23 likes
  1. i can't fucking access my server cause of the EAC kick ... gary said that he just deactivated it for OS X users, but NO i still get kicked ... this is driving me crazy ... also all my players are complaining that the codes don't work after a restart !!! omg --'
     
  2. looks like deployerUserID is gone as a property for BuildingBlock...[DOUBLEPOST=1414805527][/DOUBLEPOST]
    Yea our players are dropping like a rock...just lost 50 players down from 90 to 40...on Rustafied we have seen it bounce all over...[DOUBLEPOST=1414805757][/DOUBLEPOST]
    Through rust...set server.secure 0

    it will disable eac...
     
  3. Yep. Locks are currently bugged and will disappear when you restart the server, the old locks with a key also disappear but as long as you still have the key in your inventory the door can still be used.
     
  4. what about coded locks?[DOUBLEPOST=1414807727][/DOUBLEPOST]Reneb we need a global lock remove process :) The locks are so fucked now...we either wipe just the locks or wipe the map...
     
    Last edited by a moderator: Nov 1, 2014
  5. i know ... i'm lost now
    my remover dons work, can't find a good way to fix it
    and the locks are fucked ... basically on every server restart players are fucked[DOUBLEPOST=1414809395][/DOUBLEPOST]might have found a way to make it work ... but still thinking about it ... i think i'm going to go to sleep and think about it during the night. i'll post an update tomorrow
     
    Last edited by a moderator: Nov 1, 2014
  6. Well let's put our heads together and solve this.

    We need to automate door security for now. Auto-locked doors with their stupid broken ass stuff!

    Door owner can open door and can share access to the door.

    The open door is handled through a private rpc but we might be able to tweak it with base.SetFlag(BaseEntity.Flags.Open, true); for a door object.

    I was investigating this but prod is broken too so I can't step through and evaluate the properties easily of the door object, etc.

    The best way through this problem is a complete end-run around it for now.
     
  7. well
    Code:
    function PLUGIN:cmdProd( player, cmd, args )
        local authlevel = player:GetComponent("BaseNetworkable").net.connection.authLevel
        local levelneeded = 2
        if(self.Config.ProdForModerators) then
            levelneeded = 0
        end
        if(self.Config.ProdForPlayers) then
            levelneeded = 0
        end
        if(authlevel and authlevel >= levelneeded) then
            local arr = util.TableToArray( { player.eyes:Ray()  } )
            local hits = UnityEngine.Physics.RaycastAll["methodarray"][1]:Invoke(nil,arr)
            local it = hits:GetEnumerator()
            local gotinfo = {}
            while (it:MoveNext()) do
                if(it.Current.collider:GetComponentInParent(global.BuildingBlock._type)) then
                    name = it.Current.collider:GetComponentInParent(global.BuildingBlock._type).blockDefinition.name
                end
            end
        end
    end
    
    can't test it, but i guess that should work.
     
  8. I will try it right now

    Yeah that code worked...i will start looking at how I can jump from door:hinged to the base and see if I can force it open.[DOUBLEPOST=1414810270][/DOUBLEPOST]ok so i can get the door clone no problem...but need some help getting to the methods in the base class of the clone...any suggestions?
     
    Last edited by a moderator: Nov 1, 2014
  9. Reneb updated Building Owners with a new update entry:

    update for new version

     
  10. changeowner not works unknown commands
     
  11. you didn't load the plugin then.
     
  12. Error while loading :

    Code:
    4:23 PM [Error] Failed to load plugin buildingowners (AmbiguousMatchException: Ambiguous matching in method resolution)
    4:23 PM [Debug]   at System.Reflection.Binder.FindMostDerivedMatch (System.Reflection.MethodBase[] match) [0x00000] in <filename unknown>:0
      at System.MonoType.GetMethodImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in <filename unknown>:0
      at System.Type.GetMethod (System.String name) [0x00000] in <filename unknown>:0
      at NLua.Extensions.TypeExtensions.HasMultiplyOpertator (System.Type t) [0x00000] in <filename unknown>:0
      at NLua.ObjectTranslator.RegisterOperatorsFunctions (LuaState luaState, System.Type type) [0x00000] in <filename unknown>:0
      at NLua.ObjectTranslator.PushNewObject (LuaState luaState, System.Object o, Int32 index, System.String metatable) [0x00000] in <filename unknown>:0
      at NLua.ObjectTranslator.PushObject (LuaState luaState, System.Object o, System.String metatable) [0x00000] in <filename unknown>:0
      at NLua.ObjectTranslator.Push (LuaState luaState, System.Object o) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaMethodWrapper.Call (LuaState luaState) [0x00000] in <filename unknown>:0
    4:23 PM [Info] Loaded plugin Custom Chat Commands (v2.1.1) by #Domestos
     
  13. doesn't matter it will still work.
     
  14. 12:01 AM [Error] buildingowners: field or property 'deployerUserID' does not exist
    at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
    at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
  15. not for me. The Plugin was not loaded. So the other Plugins dont work too :

    Code:
    4:23 PM [Info] To use the prod plugin you must have the buildingowners plugin
    4:23 PM [Info] Error in R-Remover, you must have the "Building Owners" plugin installed in order to use the option: RemoveForPlayers
     
  16. Code:
    12:41 AM [Info] Loading Oxide core...
    12:41 AM [Info] Loading extensions...
    12:41 AM [Info] Loaded extension Lua version 1.0.0 by Oxide Team
    12:41 AM [Info] Loaded extension Rust version 1.0.0 by Oxide Team
    12:41 AM [Info] Loaded extension Unity version 1.0.0 by Oxide Team
    12:41 AM [Info] Loading plugins...
    12:41 AM [Error] Failed to load plugin buildingowners (AmbiguousMatchException: Ambiguous matching in method resolution)
    12:41 AM [Debug]   at System.Reflection.Binder.FindMostDerivedMatch (System.Reflection.MethodBase[] match) [0x00000] in <filename unknown>:0
      at System.MonoType.GetMethodImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in <filename unknown>:0
      at System.Type.GetMethod (System.String name) [0x00000] in <filename unknown>:0
      at NLua.Extensions.TypeExtensions.HasMultiplyOpertator (System.Type t) [0x00000] in <filename unknown>:0
      at NLua.ObjectTranslator.RegisterOperatorsFunctions (LuaState luaState, System.Type type) [0x00000] in <filename unknown>:0
      at NLua.ObjectTranslator.PushNewObject (LuaState luaState, System.Object o, Int32 index, System.String metatable) [0x00000] in <filename unknown>:0
      at NLua.ObjectTranslator.PushObject (LuaState luaState, System.Object o, System.String metatable) [0x00000] in <filename unknown>:0
      at NLua.ObjectTranslator.Push (LuaState luaState, System.Object o) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaMethodWrapper.Call (LuaState luaState) [0x00000] in <filename unknown>:0 
     
  17. Man nice job ))) thx ))
     
  18. Reneb.... YOU'RE A HERO! :)