Linux Does 7D2D store in-game time in its logs?

Hey there,

I've been working on a private bot that posts the last-known in-game time (e.g. Day 182, 15:22) found from a log into a Discord channel when prompted. However, when developing it I couldn't determine if time was logged linearly within the output logs. I thought of it was one of the two values, and to help provide context I'll sample this line from the log:

2025-07-04T08:15:09 259061.411 INF Time: 4316.57m FPS: 20.01 Heap: 1888.3MB Max: 3017.1MB Chunks: 856 CGO: 60 Ply: 2 Zom: 1 Ent: 6 (306) Items: 1 CO: 7 RSS: 4341.3MB

The log time (2025-07-04) isn't what I'm looking for, so I'll look past that. I thought that maybe either INF or Time: would be the value I'm looking for as they both tick ever-so-slightly upwards with each write (though Time: only shows up every so often. INF shows up every time.). INF being 259061.411 INF and Time: being Time: 4316.57m. However, after several calibrations, both INF and Time: drift away from the in-game time, leaving it inaccurate.

Are there any log values I can use to measure what the day and time is within the game? Or is it perhaps INF and/or Time: being the value I'm looking for and am just converting incorrectly?

Thanks in advance!
 
Have you checked any of the other files in the save folder so see if you can find any useful tidbits?

Thanks for the idea! I went to go look and unfortunately I couldn't find any references to TIME or CLOCK that resembled what I was looking for, so I don't think anything in the Saves folder will be of use to this project. I'm happy to be wrong, though.
 
If you have telnet enabled, a telnet connection will return the current state of the server as text with key+value pairs, including this information:

CurrentServerTime:62440;

This is the server's time in "ticks" -- I use 1,000 ticks per game hour.
 
If you have telnet enabled, a telnet connection will return the current state of the server as text with key+value pairs, including this information:

CurrentServerTime:62440;

This is the server's time in "ticks" -- I use 1,000 ticks per game hour.

This is what I was looking for! I didn't think to use telnet to access console commands. That made me think of the gettime command which is returning it in DAY HH:MM. After reviewing the command list I couldn't find a way to get it in ticks. I can work gettime into my script since it's better than what I've got, which is calibrating server time versus real life time and advancing based on real-life clock.

Thank you!
 
Back
Top