UpdateChecker

Moved

Total Downloads: 21,403 - First Release: Oct 24, 2014 - Last Update: Feb 1, 2018

5/5, 48 likes
  1. Works fine for me, no more errors :), thank you.
     
  2. Wulf

    Wulf Community Admin

    That's with the old I assume, not the attachment?
     
  3. nope that's the attachment
     
  4. Actually spoke too soon, manual update check is not working, /update in chat or update in console, no output and getting following error as well in console:
    Code:
    [Oxide] 12:11 AM [Info] [Updater] ### Update check started!
    [Oxide] 12:11 AM [Error] Failed to call hook 'ConsoleCommand' on plugin 'Updater'
    File: Updater.lua Line: 53 attempt to call method 'SendChatMessage' (a string 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
     
  5. Wulf

    Wulf Community Admin

    Try the below version. I need to figure out why the other method doesn't work.
     

    Attached Files:

  6. Thanks, appears ok with 0.4.3, no errors with both chat and console commands:
    Code:
    > update
    [Oxide] 12:48 AM [Info] [Updater] ### Update check started!
    [Oxide] 12:48 AM [Info] [Updater] Supported plugin count: 15
    [Oxide] 12:48 AM [Info] [Updater] Using the latest version of all plugins!
    [Oxide] 12:48 AM [Info] [Updater] ### Update check finished!
     
  7. works great now
     
  8. And it broke again, I'm assuming due to latest updates for Rust itself:
    Code:
    [Oxide] 12:09 PM [Info] Unloaded plugin Updater v0.4.3 by Wulf / Luke Spragg
    [Oxide] 12:09 PM [Info] Loaded plugin Updater v0.4.3 by Wulf / Luke Spragg
    [Oxide] 12:09 PM [Info] [Updater] ### Update check started!
    [Oxide] 12:09 PM [Info] [Updater] Supported plugin count: 18
    [Oxide] 12:09 PM [Info] [Updater] Using the latest version of all plugins!
    [Oxide] 12:09 PM [Info] [Updater] ### Update check finished!
    [Oxide] 12:09 PM [Error] Exception raised in web request callback
    File: Updater.lua Line: 43 invalid use of '%' in replacement string:
      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 NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0
      at LuaGeneratedClass2.CallFunction (Int32 , System.String ) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
    [DOUBLEPOST=1435572803][/DOUBLEPOST]Although the only occurrence of '%' is in line 150, not in 43, so I'm guessing these are related, or not :), well I had to check, I'll leave this to you Wulf :)
    Thanks, and sorry to be a pain, I just don't like errors in logs :).
     
  9. Wulf

    Wulf Community Admin

    Try resetting your config, it sounds like there is an issue with one of your messages.
     
  10. Now that you've mentioned it, I checked, and config file is completely empty, but I can't reset it, I tried removing it and reloading the plugin but to no avail, I've even tried removing both config and plugin and installing it from scratch but it still just creates empty config file...
    Any idea?
     
  11. Wulf

    Wulf Community Admin

    Try the attachment below please.
     

    Attached Files:

  12. Still someting off:
    Code:
    [Oxide] 6:39 PM [Error] Failed to load plugin Updater
    File: Updater.lua Line: 17 syntax error near 'self':
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.LoadString (System.String chunk, System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.Load () [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPluginLoader.Load (System.String directory, System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.LoadPlugin (System.String name) [0x00000] in <filename unknown>:0
     
  13. Wulf

    Wulf Community Admin

    Oops, was in a rush! Here's the fix.
     

    Attached Files:

  14. Np, loads fine now and created default config:
    Code:
    {
      "Messages": {
        "ChatHelp": "Use '/update' to check for plugin updates",
        "CheckFailed": "{plugin} update check failed!",
        "CheckFinished": "Update check finished!",
        "CheckStarted": "Update check started!",
        "ConsoleHelp": "Use 'update' to check for plugin updates",
        "NoPermission": "You do not have permission to use this command!",
        "NotifySubject": "{count} update(s) available on {hostname}",
        "NoUpdates": "Using the latest version of all plugins!",
        "Outdated": "{plugin} is outdated! Installed: {current}, Latest: {latest}",
        "Supported": "Supported plugin count: {count}",
        "UpToDate": "{plugin} is up-to-date, currently using version: {version}"
      },
      "Settings": {
        "CheckInterval": 3600,
        "Command": "update",
        "EmailNotifications": "false",
        "PushNotifications": "false",
        "ShowUpToDate": "false"
      }
    }
    But the error is the same or rather similar:
    Code:
    Oxide] 6:47 PM [Info] Loaded plugin Updater v0.4.3 by Wulf / Luke Spragg
    [Oxide] 6:47 PM [Info] [Updater] ### Update check started!
    [Oxide] 6:47 PM [Info] [Updater] Supported plugin count: 18
    [Oxide] 6:47 PM [Info] [Updater] Using the latest version of all plugins!
    [Oxide] 6:47 PM [Info] [Updater] ### Update check finished!
    [Oxide] 6:47 PM [Error] Exception raised in web request callback
    File: Updater.lua Line: 45 invalid use of '%' in replacement string:
      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 NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0
      at LuaGeneratedClass2.CallFunction (Int32 , System.String ) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
     
  15. Wulf

    Wulf Community Admin

    Could you show me a list of plugins you are using?
     
  16. Wulf

    Wulf Community Admin

  17. Yes, sure, here is the list:
    FriendsAPI
    Helptext
    Teleportation System
    Day & Night System
    Plugin List
    Updater
    Death Notes
    Notifier
    Rust:IO for Oxide
    AirdropControl
    BetterLoot
    Build
    Building Owners
    Crafting Controller
    Easy Airdop
    Gathering Manager
    Give
    Godmode
    LimitedLadders
    MazeGen
    NoDecay
    Prod
    RemoverTool
    Sign Artist
    Stack Sizes
    ZoneManager
    RanksAndTitles
    Enhanced Ban System

    Let me know if you need any more info.
    Thanks.
     
  18. Wulf

    Wulf Community Admin

    What's your server's hostname?
     
  19. You're the man :), I had % in the hostname, never even thought of it :), removed it and no more errors.
    Cheers
     
  20. Wulf

    Wulf Community Admin

    Weird, I'll see if I can escape that somehow.