View Full Version : Is the server stuck on endurance settings ?
Swiss_Tony
2nd April 2007, 22:05
Races are really quite long for a Monday night (Aston club rev was 36 laps) I wouldn't mind so much if there was a compulsory pitstop of about 20 minutes or so to break it up a bit and go get some groceries :)
Becky Rose
2nd April 2007, 22:32
Considering that even with admin access it can be quite hard to get onto servers it would really have helped to find out which server Tony :(. I think though, 35 laps of Aston Cadet is just over half hour on STCC2 isn't it? So it's typical of endurance length, it just shouldn't be endurance on STCC2 tonight. The races (no SO) do seem unusually long on STCC2 as it should not be endurance night. I'm not sure why that is happening, but...
I'm about to launch an update of significant proportions and I dont want to go ahead with until i've got somebody on the server itself to monitor CPU/RAM loading and bandwidth usage etc because i've just made quite a significant new feature.
Atm, I can't relaunch the manager without the update that is poised to go starting up, because I already uploaded the $relaunch files before I saw this post. If I relaunch now the update goes live.
So i'll sort this later tonight.
It's no use me changing laps with admin commands, unless I close the server the manager will set them back again.
On the plus side, you get LOTS of points for endurance races :)
Swiss_Tony
3rd April 2007, 13:05
Yes, sry, it was STCC2 server, oops !
I agree, you do get lots of points on endurance and it certainly has it's place but I usually have to take a lie down for the rest of the night after one of those events, so it evens out :shrug:
Dark Elite
5th April 2007, 17:11
I think this sort of thing is happening again... As I post, both STCC1 servers are using Endurance-type lap counts. In STCC1a, Endurance Day is said to be Tuesday, and in 1b it should be Monday... Now, today is Thursday, so I'm utterly flummoxed as to why the servers are using endurance settings, especially at the same time. It's annoying to say the least, coming in to get a few points in fifteen minutes or so, only to see a race on lap three of seventeen.
Any ideas why this is happening?
DE
Becky Rose
5th April 2007, 17:53
Something is wrong with my day function and I dont know what, it is returning a '2' for today - it should be returning a 4. Server 1a is set to '2' which is Tuesday (I think).
Anyway, this is the code
If y<=1752 Then calendar=0 Else calendar=1 ;Julian/Gregorian
If m<3
m=m+12
y=y-1
EndIf
d=(d+(2*m)+(6*(m+1)/10)+y+(y/4)-(y/100)+(y/400)+calendar) Mod 7
If anyone brighter than me can figure out what is wrong with it, or suggest an alternative method lol.
Have I a bracket in the wrong place? I've no idea, tbh calculating the day of the week is all a bit Einstein to me. I thought i'd cracked it, but apparently not.
ChiliFan
5th April 2007, 18:44
I've got no idea how to help, but the STCC 1 S1 server just put itself to 18 laps at SO Classic. Last night on SO Sprint 2, races were at 12 laps which is fine, but the server put the length up to 24 after a few races.
I hope you can work out how to fix it. :)
Shotglass
5th April 2007, 19:05
or suggest an alternative method lol.
polling system time ?
oh wait im guessing youre already doing this and dividing it to get months and years ?
Becky Rose
5th April 2007, 19:10
Yes, polling the system time gives me a date that I turn into d for day, m for month and y for year, I then need to turn that into a 7 day calendar to get the day of the week which is what the function above does, allegedly. I think it's wrong somewhere though.
I thought I was being all smug by including support for the Julian calendar (I wrote it so I could use the function again in the future), but as it doesnt work all traces of smugness have been replaced by 'wtf'.
Shotglass
5th April 2007, 19:19
well that bit of code doesnt really help trying to figure out whats wrong without showing how you calc y and m
generally id guess it goes haywire due to leap years
Becky Rose
5th April 2007, 19:25
y is the year, 2007, m is a value from 1 - 12, and d is the date. That part is working correctly.
the_angry_angel
5th April 2007, 19:36
Something is wrong with my day functionConsider taking a look at the formulae on this page:
http://en.wikipedia.org/wiki/Calculating_the_day_of_the_week
I do have a formula I can dig out, but it's rather nasty. The ones above rely on lookups, but they do work. And they are quick.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.