1. KeyboardCavemen submitted a new resource:

    RotateOnUpgrade - Allows you to rotate and/or demolish your building part after upgrading it from twigs.

    Read more about this resource...
     
  2. Neat.

    What would you set the value of amountOfMinutesAfterUpgrade to if you want to allow builders to permanently rotate (other than a really large integer)?
     
  3. Haven't implemented this because raiders could get cupboard access and rotate all your walls to the weak side to make the continuing raid easier for them. This is the main reason why Garry made them lock after 10 minutes in the first place.
     
  4. KeyboardCavemen updated RotateOnUpgrade with a new update entry:

    1.1.0

     
    Last edited by a moderator: Jul 29, 2015
  5. BaK

    BaK

    As soon as I updated I started getting a new error

    Code:
    [Oxide] 6:42 PM [Info] Loaded plugin RotateOnUpgrade v1.1.0 by KeyboardCavemen[Oxide] 6:42 PM [Error] Failed to call hook 'Init' on plugin 'RotateOnUpgrade' (InvalidCastException: Null object can not be converted to a value type.)
    [Oxide] 6:42 PM [Debug]   at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type)
    [0x00000] in <filename unknown>:0
      at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0
      at Oxide.Core.Configuration.DynamicConfigFile.ConvertValue (System.Object value, System.Type destinationType) [0x00000] in <filename unknown>:0
      at Oxide.Core.Configuration.DynamicConfigFile.ConvertValue[Boolean] (System.Object value) [0x00000] in <filename unknown>:0
      at Oxide.Core.Configuration.DynamicConfigFile.Get[Boolean] (System.String[] path) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RotateOnUpgrade.Init () [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.G
    lobalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
  6. [7/29/2015 8:19:15 PM] [Oxide] 8:19 PM [Error] Failed to call hook 'Init' on plugin 'RotateOnUpgrade' (InvalidCastException: Null object can not be converted to a value type.)
     
  7. Don't forget to remove your old config.
     
  8. ah ok ... most plg do that on their own :D
     
  9. Hmm, didn't know that's possible. Will look into that, thanks for the tip. :)
     
  10. BaK

    BaK

    Ah didn't see that at the end of your post. thanks :)
    [DOUBLEPOST=1438307063,1438197232][/DOUBLEPOST]new warning,

    Code:
    [Oxide] 2:41 AM [Warning] RotateOnUpgrade plugin is using deprecated hook: OnBuildingBlockUpgrade
     
  11. Thanks for the report, apparently yesterday's new Oxide patch has changed the hookname from "OnBuildingBlockUpgrade" to "OnStructureUpgrade". The old version will still work but if you want to get rid of the warning message, I'll post an update in a second. Thanks again for the report!
     
  12. KeyboardCavemen updated RotateOnUpgrade with a new update entry:

    1.1.1

     
  13. doesnt seem to work anymore
     
  14. Wulf

    Wulf Community Admin

    Try the attached version below.
     

    Attached Files:

  15. works once again thank you!
     
  16. KeyboardCavemen updated RotateOnUpgrade with a new update entry:

    1.1.2

     
  17. how to disable the spam in the console?
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      13.2 KB
      Views:
      19
  18. Wulf

    Wulf Community Admin

    Try the attachment below. Also fixed the compiler warning for LoadDefaultConfig.
     

    Attached Files:

  19. Oops sorr about that putline.. forgot about it. will update it. thnx again ^^
     
  20. KeyboardCavemen updated RotateOnUpgrade with a new update entry:

    1.1.3