It is currently January 21st, 2019, 3:54 am


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: idle kicker and removal of time
PostPosted: December 4th, 2011, 9:21 am 
User avatar

Joined: May 29th, 2011, 8:12 am
Posts: 74
Location: Sydney, AUSTRALIA
I'm not quite sure how the idle time remover works, But it appears to know the correct active time but not display that correct that time in /info, instead it displays the time + idle time there.

eg a player with 2.5 hrs active time showed 6.5 hrs total time and when I used setinfo to remove time (Because I thought it was clearly wrong it said changing from 2.5h to 4h).

I am confused.

_________________
"Excuse me, have you got a spare $10?".... Yeah I do. So would you if you had a job.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: idle kicker and removal of time
PostPosted: December 4th, 2011, 11:46 am 
fCraft Developer
User avatar

Joined: May 21st, 2011, 10:53 pm
Posts: 1386
Players' "totalTime" record gets updated when a player disconnects. Until then, /info takes the old totalTime value and adds length of the current session. In your case, I'll assume that the player in question was online and idle. They were probably online for 4 hours, and had 2.5 hours previously on record. So /Info showed (2.5 + 4) = 6.5 hours total.

When you did /SetInfo, it changed the totalTime from 2.5 to 4, so /Info now showed (4 + 4) = 8 hours.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: idle kicker and removal of time
PostPosted: December 4th, 2011, 9:32 pm 
User avatar

Joined: May 29th, 2011, 8:12 am
Posts: 74
Location: Sydney, AUSTRALIA
Yes, that's correct. So if the player has a totaltime of 6.5 hours but 2.5 of that is idle time does autorank (unsupported I know) use the total 6.5 or just the 3 hours of non idle time?

_________________
"Excuse me, have you got a spare $10?".... Yeah I do. So would you if you had a job.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net