Dear reader,
I have a couple of question in regard to the MMO source and networking in general. My idea was to let the server send every client the local server time on startup, and let the day/night cycle run on that, as well as other time-triggered effects, such as owls only appearing at night... (No accelerated time ingame; and no effects of different time-zones on day/night ingame).
Firstly, and by far most important: Is it wise to let a server send the local server time realtime to every client? Or should I just send the time from the server on client-start just once and let the day/night-cycle continue from there from within the client?
(so in update function: hour+=Time.d()*(1/86400); //86400 = second in a day)
Secondly, I have been working with
Code:
DateTime().getLocal().asText(false)
on the client ONLY (so not received from server). I cannot find a way to get the starting hour in a float like "5.25" indicating 5:15AM instead of the format YYYY-MM-DD HH:MM.
Thirdly, I would like to have the time only, and not the date included, did I miss something somewhere? (In format HH:MM).