For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com
Level.DayOfWeek on a Server
- Bleeder91[NL]
- OldUnreal Member
- Posts: 1062
- Joined: Sun Oct 04, 2009 7:22 pm
Level.DayOfWeek on a Server
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?
Last edited by Bleeder91[NL] on Sun Jun 30, 2019 7:15 am, edited 1 time in total.
- []KAOS[]Casey
- OldUnreal Member
- Posts: 4497
- Joined: Sun Aug 07, 2011 4:22 am
- Location: over there
Re: Level.DayOfWeek on a Server
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.
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.
- Bleeder91[NL]
- OldUnreal Member
- Posts: 1062
- Joined: Sun Oct 04, 2009 7:22 pm
Re: Level.DayOfWeek on a Server
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.
Last edited by Bleeder91[NL] on Sun Jun 30, 2019 11:11 am, edited 1 time in total.
- Jaden Darchon (Pcube)
- OldUnreal Member
- Posts: 13
- Joined: Mon Apr 08, 2019 8:08 pm
Re: Level.DayOfWeek on a Server
CAPTAIN MINIGAMING here --
wait a Second (get it?) couldn't you just Poll the level Variables continuously and Save them.. basically you need to Advance a Day Variable every time hours or whatever Wraps...
Save it in a cfg file too. Basically, as long as the Server stays Up then it will be All Good...
wait a Second (get it?) couldn't you just Poll the level Variables continuously and Save them.. basically you need to Advance a Day Variable every time hours or whatever Wraps...
Save it in a cfg file too. Basically, as long as the Server stays Up then it will be All Good...
- Bleeder91[NL]
- OldUnreal Member
- Posts: 1062
- Joined: Sun Oct 04, 2009 7:22 pm
Re: Level.DayOfWeek on a Server
Nah don't need it anymore. I figured out that the engine is christian and prefers sunday as the first day of the week, hence 0. I tested this on a sunday which is why it kept coming back as 0 but was expecting a 6 or 7.
Last edited by Bleeder91[NL] on Tue Aug 13, 2019 8:43 am, edited 1 time in total.
- Hyper
- OldUnreal Member
- Posts: 3514
- Joined: Fri Oct 11, 2002 5:41 pm
- Contact:
Re: Level.DayOfWeek on a Server
There never was an universal agreement about what the first day of the week should be.
https://www.timeanddate.com/calendar/days/monday.html
There is an ISO standard in which the week begins with a Monday, but it is not universally used.
https://en.wikipedia.org/wiki/ISO_8601
https://www.timeanddate.com/calendar/days/monday.html
There is an ISO standard in which the week begins with a Monday, but it is not universally used.
https://en.wikipedia.org/wiki/ISO_8601