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. Copy the Newtonsoft.Json.dll file from the Oxide build again to your server, Rust comes with an older version so it will throw that error if it isn't the one from with the Oxide builds.
     
  2. may have been my oxide out of date :p
     
  3. I have an Error on every start my Server. The Clock is not in game. Hope you have time to fix it.
    Thx for the Plugin and your time.

    Code:
    11:38 AM [Error] Failed to call hook 'OnPluginLoaded' on plugin 'IngameClockGUI v0.0.32' (NullReferenceException: Object reference not set to an instance of an object)
    11:38 AM [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 
     
  4. anyway to add a line of text above the time stating "Server Time" or "In-Game Time"?
     
  5. edit the CS file, find (""text"": ""%time%"",) alter to ((""text"": ""Server Time: %time%"",)
     
  6. Code:
    [Oxide] 3:12 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] 3:12 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&)
    
    Clocks aren`t shown in game(. Any solutions. Occured after last update. Tried to remove old data file and config (no changes). Thank you!
     
  7. As i understood this plugin is no more maintained. Maybe then it must be marked as UNMANTAINED?
     
  8. Wanted AM / PM so I change the plugin file:

    Code:
    private void ShowTime()
            {
                if((bool)Config["ShowSeconds"])
                    // time = dt.ToString("HH:mm:ss");
                    time = dt.ToString("h:mm:ss tt");
                   
                else
                    // time = dt.ToString("HH:mm");
                    time = dt.ToString("h:mm tt");
            }
    [DOUBLEPOST=1442375044][/DOUBLEPOST]Changed the position ( in config ) added AM / PM and Server / InGame.

    Please improve upon ! :)
     

    Attached Files:

  9. Okay. I'm back aaaaand I will try to solve all issues!
     
  10. deer_SWAG updated Ingame Clock GUI with a new update entry:

    0.0.34

     
  11. Thank you for your work on this plugin! I'm getting the following error even after removing the config file:
    Code:
    [Oxide] 8:14 AM [Error] Failed to call hook 'OnServerInitialized' on plugin 'IngameClockGUI v0.0.34' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 8:14 AM [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.OnServerInitialized () [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
     
  12. When error appears? When starting server or when server is running?
     
  13. Happens on oxide.load/reload as well as at server restart when trying to load the plugin
     
  14. Unload the plugin, delete data file and try this.
     

    Attached Files:

  15. Code:
    [Oxide] 9:18 AM [Error] Failed to call hook 'OnPluginLoaded' on plugin 'IngameClockGUI v0.0.35' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 9:18 AM [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
    [DOUBLEPOST=1442703566,1442672351][/DOUBLEPOST]Never mind. I'm a moron who forgot to remove the data file, and only removed the config file. The version you posted in the forum works fine.

    Thanks for your help!!!
     
  16. Some requests:

    1. In addition to this
    Code:
        Prefix/Postfix — text before/after clock 
    Can we also get a setting for the text to display if the current clock setting is set to ingame/server time ?

    Example: 4:13 PM - InGame Time or 4:13 PM Server Time

    2. How about some settings to show specific text (on a new line) during a time range:

    Example:
    2:30AM - Server Time
    (Server reboots at 3:00 AM)
    *** would show between 2 - 3 AM server time )

    4:14 PM - InGame Time
    ( Mass airdrop at 10 PM )
    *** Would show between 3pm - 8 pm ingame time
     
    Last edited by a moderator: Sep 22, 2015
  17. I'm working on it. Don't know about supporting a 12-hours time format (maybe not in first version).
    Syntax: "[13:00 - 23:35] Something gonna happen".
    Hmmm... I think it's not so important, but... I don't know about this.
     
  18. deer_SWAG updated Ingame Clock GUI with a new update entry:

    0.0.38

     
  19. It may not be to you. It is to me. People could use the setting or not use it. Easy enough to add.

    You asked for feedback and what was important to us ( community ) and I so I answered.

    BTW, Thanks for this "— Added timed notifications"
    [DOUBLEPOST=1443486845][/DOUBLEPOST]
    BTW, this time range is ingame. Right? Is there a way to configure multiple messages for either ingame or server time ?