Mods / NDL TimeTracker

Tags: #Utility
Author: NateDoesLife
Side: Client
Created: Jan 27th at 8:26 AM
Last modified: Jun 8th at 4:46 PM
Downloads: 1017
Follow Unfollow 30

Recommended download (for Vintage Story 1.20.0 - 1.20.3, 1.20.4, 1.20.5 - 1.20.7, 1.20.8 - 1.20.10 and 1.20.11 - 1.20.12):
ndltimetracker_3.2.0.zip  1-click install


I WILL NOT BE UPDATING THIS MOD FOR ANY PRE-RELEASES/RELEASE CANDIATES.
IF IT BREAKS IN ANY 1.21.X PRE RELEASES FEEL FREE TO REPORT THE BREAK/BUG BUT I WILL NOT FIX UNTIL 1.21 FULL RELEASES!



***I always recommend you write down your world times before updating versions just incase. There should be no loss of time with any updates (other then a full game reinstall) but you never know!***


About Mod:
This mod tracks your playtime on any given world (hours and minutes). I know it the game tracks for singleplayer but I wanted a mod that tracks time played on multiplayer worlds since there is no built in system for that.
     - Displays time on screen via HUD in upper right next to mini-map


Hotkey:
     - default key - num8 (8 key on the numberpad)
          - can be changed in the controls menu

 

Commands:
.playtime - type this command in chat and it will display your time!


.playtime "<playername> <hr> <min>" This command allows you to set your time (for if you have been keeping track before you added this mod like I have)
     - example: ".playtime natedoeslife 1 20" This sets your playtime to 1hr 20mins
     - WARNING: If you do "/playtime <playername>" and don't put in the hours or minutes it will act like you put in 0 0 and reset your playtime.

 

Planned Workings:
- none at the moment

 

Feedback/Suggestions/Support:
I livestream on Twitch or Youtube (ad-free) monday-thursday (6pm est - 10pm est) Typically I play vintage story but on occasion might dive into a random game. I welcome suggestion and feedback on the mod in chat there or you can leave a comment below.
     - You can also join my personal discord channel via - https://discord.gg/6qQZYPU
     - Please use the channel #ndl-timetracker for any comments/chat regarding this mod! (going to be at the bottom of the channel list, in the VS-MODS Category)


Other Mods By Author:

NDL Expanded Growth Icon  NDL WoodenTorchHolders NDL ChiselPicks

Mod Version For Game version Downloads Release date Changelog Download 1-click mod install*
3.2.0
1.20.0 - 1.20.3 1.20.5 - 1.20.7 1.20.8 - 1.20.10 1.20.11 - 1.20.12
386 Feb 28th at 5:43 PM ndltimetracker_3.2.0.zip 1-click install

New Features:
- Tracker is now moveable on screen
- Tracker can be closed now
- Hotkey added to open/close Tracker
     - Default is "8" on the numberpad
     - You can change in the controls menu


Updates:
- GUI Redesign


Bug Fixes:
- None

***I always recommend you write down your world times before updating just incase. There should be no loss of time with any updates but you never know!***

3.1.2 198 Feb 4th at 10:26 PM ndltimetracker_3.1.2.zip 1-click install

New Features:
- None


Updates:
- Overhauled the HUD Display
     - Now has a box around it to help view the time better
     - Font should be a slightly bit larger now


Bug Fixes:
- None

3.0.2 58 Feb 3rd at 4:39 PM ndltimetracker_3.0.2.zip 1-click install

New Features:
- None


Updates:
- Removed the chat notification for the 1 minute save function (Thanks PandaPants200)
     - the 30min chat notification should still appear


Bug Fixes:
- None

3.0.1 38 Feb 3rd at 4:14 AM ndltimetracker_3.0.1.zip 1-click install

New Features:
- None


Updates:
- None


Bug Fixes:
- Fix for crash when saving player data for the first time (hopefully)

3.0.0 42 Feb 2nd at 11:46 PM ndltimetracker_3.0.0.zip 1-click install

New Features:
- None


Updates:
- Mod is now completely CLIENT SIDE.
     - You no longer need this on a server to run


Bug Fixes:
- Black 50% of screen when on server with more then 1 person (thanks PandaPants for reporting)

2.0.0 84 Jan 30th at 10:26 PM ndltimetracker_2.0.0.zip 1-click install

New Features:
- HUD display shows your current playtime on screen so you no longer have to use the command to view it
     - This feature does not work for multiplayer servers at the moment, I am working on a fix
     - I am working on a better HUD but this one works for now.


Updates:
- TimeTracker now saves every minute so avoid time loss gradually over time
     - I tested it a good bit and never noticed any lag/hiccuping. If you happen to please let me know/provide logs
- Add a chat notificiation every 30mins so that you know the mod is actually saving within the hour


Bug Fixes:
- None

1.1.0 99 Jan 28th at 7:12 PM ndltimetracker_1.1.0.zip 1-click install

v1.1.0 update

New Features:
- You get a join message that will also show you current playtime on said world


Updates:
- TimeTracker now saves every 5 mins
     - you will get a chat notification when it does this with the time it last saved at


Bug Fixes:
- Time not saving when you leave a world
     - for some reason the onplayerleave event is not triggering properly/saving updated playtime
     - I changed the mod to just save every 5mins for the time being until I can investigate this further

1.0.0 112 Jan 27th at 8:27 AM ndltimetracker_1.0.0.zip 1-click install

v1.0.0
First release of NDL TimeTracker


17 Comments (oldest first | newest first)

💬 NateDoesLife , Feb 13th at 2:38 PM

So the triple message could be you have more then one saved time session for that world.

One possible way to fix that is to write down your time (for any worlds you want the time for)
- go to your base installation folder for vintage story
- you should see a "playtime" folder in there
- clear all the entires and then when you go into the world do the .playtime


(.playtime NateDoesLife 5 25) and just set your playtime that way.
- This might also fix your crash as it looks like your crashing when its trying to save your playtimedata.

For a followup question, does this crash everyone on the server at the same time or just yourself?

If its easier you can message me on discord, my tag is NateDoesLife with a crown emoji in front of it. You should be able to search it in the VS discord and I should come up easily. 

DanceOfBlood

💬 DanceOfBlood, Feb 13th at 2:06 PM

Here's a new one

Crash: https://pastebin.com/37tL7vkv

Client Main: https://pastebin.com/SspGCeCQ

 

Another one

Crash: https://pastebin.com/vE2rQcYu

Client Main: https://pastebin.com/NTuCBGDS

 

Here's the the triple message I meant:

💬 DanceOfBlood, Feb 11th at 3:17 PM

For that error, there were only two of us in the server and weirdly enough it crashed both of us.

I'll let you know if I managed to get it happen again

💬 NateDoesLife , Feb 11th at 2:17 PM

Awesome! Thank you for the error, I will take a look at that method that gets flagged and see if I can find out whats causing it. Just out of curiousity did someone leave the server at the time of the crash?

Also if it happens again, could you send me a pastebin of your client-main log as well? Sorry it just helps me pinpoint exactly whats causing the crash instead of trying to guess. 

DanceOfBlood

💬 DanceOfBlood, Feb 11th at 12:23 PM

Somehow I got a crash again, I was just waiting for my tools to cool off.

https://pastebin.com/C3Ch1Zfk

💬 DanceOfBlood, Feb 11th at 12:10 AM

I'll get back to you on it when I play with my friends to recreate the situation.
Just tried to replicate now but the triple welcome message didn't happen.

Wish I had the crash log saved for it.

💬 NateDoesLife , Feb 10th at 4:53 PM

Hmmm interesting, I will see what I can do to adjust that from happening.

Any chance you can send me a copy of the log file from when you join the server along with the crash your getting.

Can use Pastebin.com - #1 paste tool since 2002! to send them.

DanceOfBlood

💬 DanceOfBlood, Feb 10th at 2:24 PM

Hey! Great mod.

I found myself getting three "welcome your current playtime is x" when joining my server.
I'm guessing this is because the server had gone through three different versions.

I remember reverting back to 1.1.0 after testing out one of the 3.0 versions (cant remember which)
and now I went to 3.1.2, it works but perhaps because of multiple versions that was used this came up.

Just saying it in case you could find some sort of fix to this. Also, I currently get some crashes in 3.1.2.
Could be the problem of multiple time saving

💬 PandaPants200, Feb 3rd at 3:18 PM

Looks like it fixed it and I was able to use the .playtime command as well.

💬 NateDoesLife , Feb 3rd at 4:16 AM

Ok, I just put up a new release with what I hope is a fix for that.

I believe it was happening when new players data was trying to be saved for the first time.

If it happens to keep happening or another error happens you can always shoot me a message on discord (NateDoesLife with a crown emoji in the front of it, if you search NateDoesLife in the VS discord you should find me easily). Then I can work with you a bit easier then uploading fresh releases each time. If you would like.

PandaPants200

💬 PandaPants200, Feb 3rd at 2:40 AM

Well my screen didn't go black but...

Running on 64 bit Windows 10.0.26100.0 with 16282 MB RAM
Game Version: v1.20.3 (Stable)
2/2/2025 9:39:22 PM: Critical error occurred in the following mod: ndltimetracker@3.0.0
Loaded Mods: aculinaryartillery@1.2.3, chiseltools@1.14.11, nailsmold@1.0.2, TA_plainsandvalleys@1.0.9, sustainableforestry@1.1.0, game@1.20.3, weaponpackalphaunoff@1.6.0, apegrapes@1.2.3, egocaribautomapmarkers@4.0.1, betterfirepit@1.1.5, carryon@1.8.0-pre.1, commonlib@2.6.1, expandedfoods@1.7.3, fromgoldencombs@1.8.6, ndltimetracker@3.0.0, prospecttogether@2.0.0, stonebakeoven@1.1.5, trailmodcupdate@1.2.1, creative@1.20.3, survival@1.20.3, stonequarry@3.4.3
System.Collections.Generic.KeyNotFoundException: The given key 'PandaPants200' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at ndltimetracker.ndltimetrackerModSystem.<>c__DisplayClass12_0.<SavePlaytimeData>b__0() in P:\NDL Mods VS\NDL-TimeTracker\ndltimetracker\ndltimetracker\ndltimetrackerModSystem.cs:line 149
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime) in VintagestoryLib\Client\ClientMain.cs:line 786
at Vintagestory.Client.GuiScreenConnectingToServer.RenderToDefaultFramebuffer(Single dt) in VintagestoryLib\Client\MainMenu\Screens\GuiScreenConnectingToServer.cs:line 254
at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 695
at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 670
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 88
at OpenTK.Windowing.Desktop.GameWindow.Run()
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 334
at Vintagestory.Client.ClientProgram.<>c__DisplayClass10_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 130
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 93

NateDoesLife

💬 NateDoesLife , Feb 2nd at 11:48 PM

Everything should be good to go in v3.0.0
- I converted it to a 100% client side mod so you shouldn't need it loaded on the server anymore.
- Let me know if for some reason the black screen issue comes back up and I will investigate further, could be the HUD creation method I am using. 

PandaPants200

💬 PandaPants200, Feb 2nd at 9:19 PM

I was using v2 but it didn't crash or show up in the logs. I will try with v1.1 later. NateDoesLife

💬 NateDoesLife , Feb 2nd at 1:38 AM

Any log errors, crashes or anything. What version are yall using.

Also if you could try using v1.1.0 and let me know if that happens as well that would be great. I added a HUD to v2.0.0 and I think that might be the cause of that.

PandaPants200

💬 PandaPants200, Feb 2nd at 1:19 AM

I just tried to us this on a LAN server and when another player joined the right half of our screens would go black.

💬 NateDoesLife , Jan 27th at 2:14 PM

I did not see any performance decreases so far while testing this.

MRGOOSE

💬 MRGOOSE, Jan 27th at 9:31 AM

does this affect performance?

 (edit comment delete)