Ingame Clock GUI

Displays ingame and server time

Total Downloads: 6,357 - First Release: Jul 18, 2015 - Last Update: Oct 27, 2017

5/5, 20 likes
  1. If player input in the chat commsnd "/clock" then plugin ceases to work until I remove the file in DATA directory and not a reload a plugin.
     
  2. About the config file- As soon as i change anything in the config file its get overwritten by the plugin !!!!! Cant even change the ShowSeconds.
     
  3. Don't know what is your problem. It's works just fine.
    [DOUBLEPOST=1439301887][/DOUBLEPOST]
    On my test server all works fine. So can't say anything about it.
     
    Last edited by a moderator: Aug 11, 2015
  4. Hi deer_SWAG,
    Love the plugin, very useful and appreciate your time in making this and keeping it up to date.

    Our server is having a similar issue with the clock stopping and not working until I unload the plugin, remove the file in the Data directory and load the plugin back in.

    I have tested a scenario and think have confirmed the cause.

    Once clock is working after unload, remove file from data and reload, if I type /clock in chat, it says disabled which is as expected.
    Problem is it also disables it for everyone else on the server.
    I am NOT logged in as admin, I am just a normal user in game.
    When I type /clock again, it turns my clock back on but now the clock is not working for anyone else.

    Anyone typing /clock in chat sees no message and gets no clock.
    There are also no errors in RCON

    We then reversed the role and had someone else do the same after unload, delete file from data and load back up.
    Once that 1 person used /clock, he had control over the clock for himself and no one else could see the clock anymore.

    It seems that whoever uses /clock 1st takes the clock offline for everyone, but then no one ever gets it back except that person who 1st used the /clock command.
    The file in the data directory has that person's SteamID and they can turn it on and off as much as they want, even after they leave and come back to the game.

    Hope that helps to sort out the issue.
    Thank you.
     
  5. I'm working on the fix.
     
  6. Thank you, tested it today and now working fine.
    Much appreciated.
     
  7. Hey Deer,

    I still got this Error:
    Code:
    [Oxide] 5:37 PM [Debug]  at Oxide.Plugins.IngameClockGUI.AddGUI () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.UpdateTime () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.Load () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.OnPluginLoaded () [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
    any idea what i did wrong?
     
  8. Can you provide all error text?
     
  9. i think thats all of it i will check it
    Code:
    [Oxide] 8:06 PM [Info] IngameClockGUI was compiled successfully in 173ms
    [Oxide] 8:06 PM [Info] Loaded plugin Ingame Clock GUI v0.0.32 by deer_SWAG
    [Oxide] 8:06 PM [Error] Failed to call hook 'OnPluginLoaded' on plugin 'Ingame Clock GUI' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 8:06 PM [Debug]  at Oxide.Plugins.IngameClockGUI.AddGUI () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.UpdateTime () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.Load () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.OnPluginLoaded () [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
    Better?
     
  10. Yeah. It's error seems similar to data file error. Then I don't know how to solve it.
     
    Last edited by a moderator: Aug 13, 2015
  11. Wulf we NEED you, come in!).
    We need to summon Wulf, because he can help to solve this problem for sure =))
     
  12. Yeah. Because this error (when whole data file becomes "null") occurs only with this plugin. And... hell I don't know.
     
  13. Got it again today, does anyone has any idea?
    Code:
    [Oxide] 12:59 PM [Error] Failed to call hook 'OnPluginLoaded' on plugin 'IngameClockGUI v0.0.32' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 12:59 PM [Debug]  at Oxide.Plugins.IngameClockGUI.AddGUI () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.UpdateTime () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.Load () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.IngameClockGUI.OnPluginLoaded () [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
    Maybe its an oxide problem, like i had before?
     
  14. Try to "clean" plugin install. Unload plugin, delete plugin, data and config file. Then just put plugin in plugins folder.
    [DOUBLEPOST=1439554611][/DOUBLEPOST]Because on my server plugin is working.
     
  15. Where do i find the Configuration File. We rented a server from Multiplay* and i cant finde en file so i can move the clock to another corner


    Edit * A Multiplay server not multigame server
     
    Last edited by a moderator: Aug 17, 2015
  16. In config folder.
    I never rented a dedicated servers especially on "Multigame".
     
  17. Ok but i cant seem to find the Configuration File in the Config folder om our Multiplay server. :(
     
  18. Compile failure:

    [SERVER] Started as service
    [SERVER] Running as service
    [SERVER] Got Message: Ready
    [SERVER] Got Message: Compile
    [SERVER] Console: error CS1705: Assembly `Oxide.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' references `Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version number than imported assembly `Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
     
  19. What is that? It's not plugin error. I think...