logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Level.DayOfWeek on a Server (Read 93 times)
Bleeder91[NL]
Betatester
Online


Personal Text:

Posts: 993
Location: Location, Location, Location.
Joined: Oct 4th, 2009
Gender: Male
Level.DayOfWeek on a Server
Jun 30th, 2019 at 7:15am
Print Post  
I want to rotate some events on my server that depend on the day of the week. However it doesn't seem to be working on server-side and always returns 0. Is there a way to still get this info?
  
Back to top
 
IP Logged
 
[]KAOS[]Casey
Developer Team
Betatester
Offline


nedm

Posts: 3171
Joined: Aug 7th, 2011
Gender: Male
Re: Level.DayOfWeek on a Server
Reply #1 - Jun 30th, 2019 at 8:48am
Print Post  
a lot of those time related variables are never set.

my suggestion is use a tcplink/udplink and parse something, maybe an NTP server can simply be queried for a timestamp?

worst case is you host your own php/html page that returns day of week. I could host one of these (permanently) for you if you supply me with php page. In fact, might be worth making a mutator that can populate some of that stuff for us that aren't already updated.

do be wary of timezones, I suspect most/all NTP servers are UTC-/+ 0, or potentially offset by their physical location's timezone.
  
Back to top
 
IP Logged
 
Bleeder91[NL]
Betatester
Online


Personal Text:

Posts: 993
Location: Location, Location, Location.
Joined: Oct 4th, 2009
Gender: Male
Re: Level.DayOfWeek on a Server
Reply #2 - Jun 30th, 2019 at 11:11am
Print Post  
Myeah I was afraid of that, but you don't have to go through the trouble of hosting it just for me. I luckily have a backup plan by grabbing the day through the SQLite database I'm running, but the detour scripting is annoying. Oh well.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo