Building Grades

Allows admins to easily upgrade or downgrade an entire building

Total Downloads: 21,383 - First Release: Apr 3, 2015 - Last Update: Apr 19, 2018

5/5, 49 likes
  1. Only seems to upgrade 1 wall at a time now.
     
  2. Anyone else getting the above issue?
     
  3. I get this error
    Code:
    07:17 [Error] Failed to call hook 'CanAffordUpgrade' on plugin 'BuildingGrades v0.3.9' (InvalidCastException: Cannot cast from source type to destination type.)
    07:17 [Stacktrace]   at Oxide.Plugins.BuildingGrades.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  4. same errors here on oxide build 2.0.3291
     
  5. if you go in to the CS file and change CanAffordUpgrade to CanAffordToUpgrade it works.. Thanks @Wulf
     
  6. Thanks so much works perfectly :)
     
  7. big bug
    Code:
    (22:06:08) | at Oxide.Plugins.BuildingGrades.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  8. You neeed to go in to the oxide folder and finde the error in the log file.. the start of the error is missing a line :)
     
  9. Code:
    (16:32:00) | Failed to call hook 'CanAffordUpgrade' on plugin 'BuildingGrades v0.3.9' (InvalidCastException: Cannot cast from source type to destination type.)
    (16:32:00) | at Oxide.Plugins.BuildingGrades.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    Changed the CanAffordUpgrade but still only seeing it upgrade 1 thing at a time.
     
  10. Code:
    Failed to call hook 'CanAffordUpgrade' on plugin 'BuildingGrades v0.3.9' (InvalidCastException: Cannot cast from source type to destination type.
     
  11. Wulf

    Wulf Community Admin

    Wulf updated Building Grades with a new update entry:

    0.3.10

     
  12. ,,woow ,,,thank you Wulf
     
  13. Have you fixed the hook OnStructureUpgrade yet?
     
  14. Wulf

    Wulf Community Admin

    What is wrong with it?
     
  15. Maybe I need to update oxide?

    Code:
    Failed to call hook 'CanAffordUpgrade' on plugin 'AutoGrades v0.0.15' (InvalidCastException: Value is not a convertible object: BuildingBlock to System.Int32)  at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in :0
      at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in :0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0 
     
  16. Wulf

    Wulf Community Admin

    Wrong thread, but already updated. ;)
     
  17. Ahhhhhh... D'oh!
     
  18. Wulf

    Wulf Community Admin

    Wulf updated Building Grades with a new update entry:

    0.3.11

     
  19. @Wulf Any chance this could support clanshare?
     
  20. Wulf

    Wulf Community Admin

    What is clanshare?