Mods / Simple HUD Clock

Category: #Graphics #Utility
Author: Rhonen
Side: Client
Created: Mar 13th
Last modified: Jul 7th
Downloads: 3712

Shows a simple HUD Clock in the left upper corner with the current ingame time.

  • Client side only
  • Hotkeys available
    grafik.png.6957d4da422a97870113be9e68821c96.png

  • Customize what you want to see
    grafik.png.44920bb72d320310b76d9cfa74331e1a.png

  • all mod relevant data is saved in vintagestorydata/modconfig/hudclock
  • showing claim area you entered (requires server mod)
    claimifno.jpg.00ca42caf17f8f2bff99277c3d985e6b.jpg

Version For Game version Downloads Release date Changelog Download
v2.5.0 1519 Jul 7th Show hudclock-2.5.0.zip
v1.1.0 85 Jul 7th Show hudclockserver-1.1.0.zip
v2.4.2 1952 Mar 13th Show hudclock-2.4.2.zip
v1.0.1 156 Mar 13th Show hudclockserver-1.0.1.zip

4 Comments

OpPointBaker, Sep 1st

Would you add information on the local temporal stability? Possibly an output for your current stability. That way players don't have to stop and mouse over the gear.

Rhonen, Jul 25th

And again:
That warning for a leak comes from the game itself. that is no exture of my mod. Discussed already in discord. Thx.

Aledark, Jul 24th

Found this for your mod on a developer mode :

24.7.2021 14:47:35 [Warning] Texture with texture id 581 is leaking memory, missing call to Dispose. Allocated at at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Vintagestory.API.Client.LoadedTexture..ctor(ICoreClientAPI capi)
at Vintagestory.API.Client.GuiElementDynamicTextHelper.AddDynamicText(GuiComposer composer, String text, CairoFont font, EnumTextOrientation orientation, ElementBounds bounds, String key)
at hudclock.src.ui.ClaimAreaDialog.PrepareRenderBounds()
at hudclock.src.ui.ClaimAreaDialog..ctor(ICoreClientAPI capi)
at hudclock.src.busineslogic.ClaimDialogController..ctor(ICoreClientAPI clientApi, ClockModSettingsController clockModSettingsController)
at hudlock.src.HUDClockMod.PlayerReady(EnumHandling& handling)
at Vintagestory.Client.NoObf.ClientEventAPI.TriggerIsPlayerReady()
at Vintagestory.Client.NoObf.GeneralPacketHandler.HandlePlayerData(_rWZFASzOfrVfZu0KwuBAjmamQBq packet)
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _kWAroornC4OFzHEC3up4Bpv3bZr._56ZyhqUQRdVXcP01CGFRYWAAMlh(Single )
at _eJCiYuww7mZPzQbnKfiEtnI4MDD._EthRnPRd1tbvpv8nkAwvMnUFZzD(Single )
at _eJCiYuww7mZPzQbnKfiEtnI4MDD._B2re7Q8SHFC6kaTk8kmsYrPVaKB(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
at OpenTK.GameWindow.DispatchRenderFrame()
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at _DlY2IRaBbEwZdipnKtrb40WUzTZ._kVFD8SxIojOmGrxNtThdBHagQeh(_7hnpozI2lFsAA8Wa5CIiUgRAbXjA , String[] )
at _gCIDaxCwdS0mkZub2rV5ATdV3hOA._kVFD8SxIojOmGrxNtThdBHagQeh(ThreadStart )
at _DlY2IRaBbEwZdipnKtrb40WUzTZ._FYLYn4vIRGO1ai2ad7yF4iFZOlq(String[] ).
24.7.2021 14:47:35 [Warning] Texture with texture id 582 is leaking memory, missing call to Dispose. Allocated at at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Vintagestory.API.Client.LoadedTexture..ctor(ICoreClientAPI capi)
at Vintagestory.API.Client.GuiComposer..ctor(ICoreClientAPI api, ElementBounds bounds, String dialogName)
at _bsdjXNseag5jr7GxHmAMyU72BEY._edtmRCLArrY4BIOiGzQLLyEcJFp(String , ElementBounds )
at hudclock.src.ui.ClaimAreaDialog.PrepareRenderBounds()
at hudclock.src.ui.ClaimAreaDialog..ctor(ICoreClientAPI capi)
at hudclock.src.busineslogic.ClaimDialogController..ctor(ICoreClientAPI clientApi, ClockModSettingsController clockModSettingsController)
at hudlock.src.HUDClockMod.PlayerReady(EnumHandling& handling)
at Vintagestory.Client.NoObf.ClientEventAPI.TriggerIsPlayerReady()
at Vintagestory.Client.NoObf.GeneralPacketHandler.HandlePlayerData(_rWZFASzOfrVfZu0KwuBAjmamQBq packet)
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _kWAroornC4OFzHEC3up4Bpv3bZr._56ZyhqUQRdVXcP01CGFRYWAAMlh(Single )
at _eJCiYuww7mZPzQbnKfiEtnI4MDD._EthRnPRd1tbvpv8nkAwvMnUFZzD(Single )
at _eJCiYuww7mZPzQbnKfiEtnI4MDD._B2re7Q8SHFC6kaTk8kmsYrPVaKB(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
at OpenTK.GameWindow.DispatchRenderFrame()
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at _DlY2IRaBbEwZdipnKtrb40WUzTZ._kVFD8SxIojOmGrxNtThdBHagQeh(_7hnpozI2lFsAA8Wa5CIiUgRAbXjA , String[] )
at _gCIDaxCwdS0mkZub2rV5ATdV3hOA._kVFD8SxIojOmGrxNtThdBHagQeh(ThreadStart )
at _DlY2IRaBbEwZdipnKtrb40WUzTZ._FYLYn4vIRGO1ai2ad7yF4iFZOlq(String[] ).
24.7.2021 14:47:35 [Warning] Texture with texture id 579 is leaking memory, missing call to Dispose. Allocated at at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Vintagestory.API.Client.LoadedTexture..ctor(ICoreClientAPI capi)
at Vintagestory.API.Client.GuiElementDynamicTextHelper.AddDynamicText(GuiComposer composer, String text, CairoFont font, EnumTextOrientation orientation, ElementBounds bounds, String key)
at hudclock.src.ui.StormDialog.DefineGuiComposer()
at hudclock.src.ui.StormDialog.Build()
at hudclock.src.busineslogic.StormDialogController..ctor(ICoreClientAPI clientApi, ClockModSettingsController settings)
at hudlock.src.HUDClockMod.PlayerReady(EnumHandling& handling)
at Vintagestory.Client.NoObf.ClientEventAPI.TriggerIsPlayerReady()
at Vintagestory.Client.NoObf.GeneralPacketHandler.HandlePlayerData(_rWZFASzOfrVfZu0KwuBAjmamQBq packet)
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _kWAroornC4OFzHEC3up4Bpv3bZr._56ZyhqUQRdVXcP01CGFRYWAAMlh(Single )
at _eJCiYuww7mZPzQbnKfiEtnI4MDD._EthRnPRd1tbvpv8nkAwvMnUFZzD(Single )
at _eJCiYuww7mZPzQbnKfiEtnI4MDD._B2re7Q8SHFC6kaTk8kmsYrPVaKB(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
at OpenTK.GameWindow.DispatchRenderFrame()
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at _DlY2IRaBbEwZdipnKtrb40WUzTZ._kVFD8SxIojOmGrxNtThdBHagQeh(_7hnpozI2lFsAA8Wa5CIiUgRAbXjA , String[] )
at _gCIDaxCwdS0mkZub2rV5ATdV3hOA._kVFD8SxIojOmGrxNtThdBHagQeh(ThreadStart )
at _DlY2IRaBbEwZdipnKtrb40WUzTZ._FYLYn4vIRGO1ai2ad7yF4iFZOlq(String[] ).
24.7.2021 14:47:35 [Warning] Texture with texture id 580 is leaking memory, missing call to Dispose. Allocated at at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Vintagestory.API.Client.LoadedTexture..ctor(ICoreClientAPI capi)
at Vintagestory.API.Client.GuiComposer..ctor(ICoreClientAPI api, ElementBounds bounds, String dialogName)
at _bsdjXNseag5jr7GxHmAMyU72BEY._edtmRCLArrY4BIOiGzQLLyEcJFp(String , ElementBounds )
at hudclock.src.ui.StormDialog.DefineGuiComposer()
at hudclock.src.ui.StormDialog.Build()
at hudclock.src.busineslogic.StormDialogController..ctor(ICoreClientAPI clientApi, ClockModSettingsController settings)
at hudlock.src.HUDClockMod.PlayerReady(EnumHandling& handling)
at Vintagestory.Client.NoObf.ClientEventAPI.TriggerIsPlayerReady()
at Vintagestory.Client.NoObf.GeneralPacketHandler.HandlePlayerData(_rWZFASzOfrVfZu0KwuBAjmamQBq packet)
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _kWAroornC4OFzHEC3up4Bpv3bZr._56ZyhqUQRdVXcP01CGFRYWAAMlh(Single )
at _eJCiYuww7mZPzQbnKfiEtnI4MDD._EthRnPRd1tbvpv8nkAwvMnUFZzD(Single )
at _eJCiYuww7mZPzQbnKfiEtnI4MDD._B2re7Q8SHFC6kaTk8kmsYrPVaKB(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
at OpenTK.GameWindow.DispatchRenderFrame()
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at _DlY2IRaBbEwZdipnKtrb40WUzTZ._kVFD8SxIojOmGrxNtThdBHagQeh(_7hnpozI2lFsAA8Wa5CIiUgRAbXjA , String[] )
at _gCIDaxCwdS0mkZub2rV5ATdV3hOA._kVFD8SxIojOmGrxNtThdBHagQeh(ThreadStart )
at _DlY2IRaBbEwZdipnKtrb40WUzTZ._FYLYn4vIRGO1ai2ad7yF4iFZOlq(String[] ).

JohnnyDxo, Apr 4th

Suggestion: Pixelise the images a bit to make them fit better to the rest of the game.

delete edit