Author Topic: BANLIST.txt format[Solved]  (Read 2227 times)

i understood what you meant perfectly then

except that could be five days starting at any time

what time does it start?
Unix started January 1st 1970 at 0 seconds
So that is the reference point

Unix started January 1st 1970 at 0 seconds
So that is the reference point
40k seconds is not referenced to today

my calculator suggests it's hardly over .5 days
the guy wasn't banned for .5 days though?



oops, 40620soemthing accounts to 4.69938 days

not .5


my point still stands that 01/1/70 is nowhere near 5 days from today
« Last Edit: October 06, 2012, 11:41:21 PM by Lugnut »

40k seconds is not referenced to today

my calculator suggests it's hardly over .5 days
the guy wasn't banned for .5 days though?
what

Read my explanation again, because mine works perfectly now.
I may just be misunderstanding you, if so please explain further


neeeveerrrmind

anywho, january 1st 1970 is the reference point from HOW long the ban is

5 day ban = 5 days AFTER january 1st

the time is not correctly proportioned to today

if it correlated to the time when they are unbanned, then it should read something like this: 1325376000

you suggest that the time is time in seconds from when unix time started when they will be unbanned

the number is 4 place values too short to be that

instead, it correlates to the duration of the ban in seconds, however, there is no reference point for when the ban is defined
what

Read my explanation again, because mine works perfectly now.
I may just be misunderstanding you, if so please explain further


neeeveerrrmind

anywho, january 1st 1970 is the reference point from HOW long the ban is

5 day ban = 5 days AFTER january 1st
forget man no

if your statement was true, then victims would be unbanned 0 seconds after ban, because 1/1/70 has already passed!

the time is not correctly proportioned to today

if it correlated to the time when they are unbanned, then it should read something like this: 1325376000

you suggest that the time is time in seconds from when unix time started when they will be unbanned

the number is 4 place values too short to be that

instead, it correlates to the duration of the ban in seconds, however, there is no reference point for when the ban is definedforget man no

if your statement was true, then victims would be unbanned 0 seconds after ban, because 1/1/70 has already passed!
Completely just realized this when I ran a test
aaaaaaaaa

I think it's in some way related to January 5th 1970

When I did a ten minute ban it gave me 403204

Which is Monday January 5, 1970 16:00:04 GMT

assuming you're working with unix time

that could be anything

406027 //five minute ban
403204 //ten minute ban



wtf

Finally got it.

I feel dumb about it as well.

Just do

(minutes of ban) + 403200 = BANLIST.txt time


Still loving wrong.
Aaaaaa
« Last Edit: October 07, 2012, 12:04:58 AM by ¥ola »

Finally got it.

I feel dumb about it as well.

Just do

(minutes of ban) + 403200 = BANLIST.txt time


Still loving wrong.
Aaaaaa
From my banlist.txt:
233328

oh ninja

run this and post results

for(%i = 0; %i < 10; %i++) { banBLID(%i + 2, %i, "Banned for science!"); }

run this and post results

for(%i = 0; %i < 10; %i++) { banBLID(%i + 2, %i, "Banned for science!"); }

Quote from: BANLIST.txt
CONSOLE   -1      2      Banned for science!   12   403222
CONSOLE   -1      3      Banned for science!   12   403223
CONSOLE   -1      4      Banned for science!   12   403224
CONSOLE   -1      5      Banned for science!   12   403225
CONSOLE   -1      6      Banned for science!   12   403226
CONSOLE   -1      7      Banned for science!   12   403227
CONSOLE   -1      8      Banned for science!   12   403228
CONSOLE   -1      9      Banned for science!   12   403229
CONSOLE   -1      10      Banned for science!   12   403230
CONSOLE   -1      11      Banned for science!   12   403231

Exact results, this can't be UNIX.

Oh!

It's the number of minutes into the year the ban will end.

The value before it is the year.

403231 is 280 days into 2012, and today is 279/280.
« Last Edit: October 07, 2012, 12:16:14 AM by otto-san »

Oh!

It's the number of minutes into the year the ban will end.

The value before it is the year.
wot

uh, what happened up there? it looks like it banned bl_id -1 for %i amount of time?


did you modify the command? that's cool, just wondering though
Oh!

It's the number of minutes into the year the ban will end.

The value before it is the year.

403231 is 280 days into 2012, and today is 279/280.
this adds up. why do you get a different number though?