Archean

Archean

Not enough ratings
Time Server
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
565.645 KB
25 Dec, 2024 @ 9:39am
1 Change Note ( view )

Subscribe to download
Time Server

Description
Doesn't do much on it's own, but will broadcast the current time as well as how many daylight hours (and night hours) you have left for tracking the current in-game time.

This build is very configurable and I've ensured that it works by merely yanking out the HDD and placing it into your own computer and build.

VERY IMPORTANT!

This MUST face within a few degress of west.

Example Time Server Client:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3391730677

CONCEPTS

The concept here is pretty simple, get the data, process it, and send it to the clients. Simple, right?

Yeah, it's a little more complex that that. Firstly without a date function to determine how to translate Linux time to a rational, formatted time took good old-fashioned code. I had to calculate how many years passed since Dec 31, 1970, then I had to account for leap-years, then calculate how many days are in each month, etc.

The cycle timer was a little easier and was done entirely in nodes. Essentially, I used a nav instrument to track the sun's position (accounting for pitch of the server being slightly off) and have XC watch for how fast the sun is moving and then calculate how much time it will take for the sun to make a transversal for 180 degrees.

The client is extremely simple, read beacons, put the data on a LCD screen.