1. Wulf

    Wulf Community Admin

    You can try using... global["BaseEntity+Flags"].Locked instead of global.Flags.Locked.
     
    Last edited: Feb 10, 2015
  2. Strange i just tested on the server with the oxide before 2.0.291 (1 version older) and it worked fine without errors.
    @Wulf that is already fixed?

    @Robo2929 what version of oxide you are running?
     
  3. Wulf

    Wulf Community Admin

    The older build did not have the same changes.
     

    Attached Files:

  4. NexusBR updated Admin Door Unlocker with a new update entry:

    Fix for new rust update, Oxide 2.0.291+


    [DOUBLEPOST=1423534673][/DOUBLEPOST]
    Thanks for the help @Wulf, You have been invaluable to the community, Without your help i couldn't not fix this plugin, Thanks a lot. :D
     
  5. For the latest update, you could alternatively do:
    door:SetFlag(door.flags.Locked, false)

    This is how I fixed your plugin temporarily =)
     
  6. And how did you discovered that?

    If even @Wulf did not knew that one.

    The latest update says: This fixes many of the global methods erroring for Lua plugins. Ex. plugins can now use either global.BaseEntity.Flags or global['BaseEntity+Flags'].

    It does not say anything about global.flags.
     
  7. I reverse engineered the BaseEntity class and saw it.
     
  8. Wulf

    Wulf Community Admin

    I gave the most obvious option and didn't dig around much.
     
  9. NexusBR updated Admin Door Unlocker with a new update entry:

    Minor improvement

     
  10. NexusBR updated Admin Door Unlocker with a new update entry:

    Minor improvements

     
  11. NexusBR updated Admin Door Unlocker with a new update entry:

    Changed License

     
  12. Code:
    [Oxide] 4:21 PM [Error] Failed to call hook 'CanOpenDoor' on plugin 'Admin door Unlocker'
    File: admin-door-unlocker.lua Line: 330 attempt to index field 'BasePlayer+Flags' (a nil value):
      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 
     
  13. You are using an outdated or modified version.

    Make sure to use an updated version, Because i just tested and A.D.U is still working fine, And on line 330 there is no BasePlayer+Flags.
     
  14. Good day,

    Getting below error with latest Rust+oxide v.700;
    [Oxide] 7:27 AM [Warning] AutoDoorCloser plugin is using deprecated hook: CanOpenDoor
     
  15. That is not related to Admin Door Unlocker but to AutoDoorCloser.
     
  16. sorry for wrong copy paste :)

    related error as follows;
    [4/10/2015 6:57:59 AM] [Oxide] 6:57 AM [Warning] admin-door-unlocker plugin is using deprecated hook: CanOpenDoor
     
  17. Small fix for CanOpenDoor.
     

    Attached Files:

  18. Thank you
     
  19. is there a way to make it so you can actually UNLOCK the lock? with copypaste plugin, when you copy a building with locks on them it pastes the locks as well with the codes still the same. i have forgotten some codes to doors, it would be great if i could unlock them and set a new code