Welcome Guest ( Log In | Register )

6 Pages V < 1 2 3 4 5 > »   
Closed TopicStart new topic
> Tearlow's Auction Countdown Timer, Want to have a Countdown on your Auction?

 
post Mar 5 2011, 19:36
Post #41
grumpymal



I hate everything >:C
***********
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08
Level 362 (Godslayer)


QUOTE(Dlaglacz @ Mar 5 2011, 04:45) *

Perhaps the parser is assumming that '08' is an octal base number? In C/C++ , numbers starting with 0x are hexadecimal, numbers starting with 0 are octal, number starting with other digits are decimal.
See for example here on numerical bases: [www.cplusplus.com] http://www.cplusplus.com/doc/hex/

Probably, since parseInt() has a radix parameter that assumes the base is octal if the string starts with 0. Technically, I don't even really need to parse them as numbers since the url doesn't care whether its an int or char/string and I'm reassembling them into a string anyway.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 8 2011, 04:00
Post #42
Tearlow



I brained my damage!
***
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09
Level 484 (Dovahkiin)


Why the heck won't this forum send me an email to me when people post in subscribed topics? I will look into this issue later on. But this really does look out of order...

CODE

    if ($detail == 1) $years = round($cdown/YSECS);
    else $years = floor($cdown/YSECS);
    $cdown %= YSECS;
    if ($detail == 2) $days = round($cdown/DSECS);
    else $days = floor($cdown/DSECS);
    $cdown %= DSECS;
    if ($detail == 3) $hours = round($cdown/HSECS);
    else $hours = floor($cdown/HSECS);
    $cdown %= HSECS;
    if ($detail == 4) $minutes = round($cdown/MSECS);
    else $minutes = floor($cdown/MSECS);
    $cdown %= MSECS;


I really don't see how that can mess up dates though. Like I said, I will look into it a bit later as im heading to bed now.

This post has been edited by Tearlow: Mar 8 2011, 04:05
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 8 2011, 04:04
Post #43
grumpymal



I hate everything >:C
***********
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08
Level 362 (Godslayer)


There's nothing wrong with the timer on your end, its a thing with my script and its been resolved. You'll need to change the link in the OP, though, and I'll probably have to post another update to deal with DST, depending on how I decide to go about it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 8 2011, 04:16
Post #44
Tearlow



I brained my damage!
***
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09
Level 484 (Dovahkiin)


Actually I tested it straight away and saw the link was broken so It's already fixed (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 1 2011, 00:23
Post #45
KamuiSeph



Rehabilitated Former Cheater
*******
Group: Gold Star Club
Posts: 2,076
Joined: 29-August 08
Level 461 (Godslayer)


Why is it that I can't see the auction countdown timer?

(IMG:[thenexus.servegame.com] http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=Test&month=04&day=30&year=2011&hour=00&minute=00)

I'm posting the link, but I see nothin. Wtf?

Is it just me?

This post has been edited by (Cheater) KamuiSeph: Apr 1 2011, 00:23
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 1 2011, 00:34
Post #46
Sayo Aisaka



I have no Item Sluts :(
********
Group: Members
Posts: 4,556
Joined: 27-September 08
Level 197 (Destined)


Works for me, must be a problem on your end.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 1 2011, 14:52
Post #47
KamuiSeph



Rehabilitated Former Cheater
*******
Group: Gold Star Club
Posts: 2,076
Joined: 29-August 08
Level 461 (Godslayer)


FUCKING finally.
Apparently NOD32 hates the shit out of the auction clock.

FUCK YOU NOD

This post has been edited by (Cheater) KamuiSeph: Apr 1 2011, 15:03
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 1 2011, 23:02
Post #48
hitokiri84



Legendary Poster
***********
Group: Gold Star Club
Posts: 10,945
Joined: 24-December 07
Level 496 (Godslayer)


There seems to be an error in the script now. It's off by an hour.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 1 2011, 23:29
Post #49
grumpymal



I hate everything >:C
***********
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08
Level 362 (Godslayer)


QUOTE(hitokiri84 @ Apr 1 2011, 17:02) *

There seems to be an error in the script now. It's off by an hour.

Probably DST shenanigans. Can you be more specific than "off by an hour". I can't really diagnose a bug from just that.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 1 2011, 23:32
Post #50
hitokiri84



Legendary Poster
***********
Group: Gold Star Club
Posts: 10,945
Joined: 24-December 07
Level 496 (Godslayer)


QUOTE
QUOTE
Hey there, just thought I'd let you know, your auction counter is off by 2 hours. According to the auction time, there's a little over 3 hours left. That would put the end of your auction at 23:00 UTC on April 1st. I believe your auction description says the auction should end at 01:00 UTC April 2nd.

Well when I looked at it, it was off by one hour. It seems to be an error in the timer script all of a sudden, because it's definitely set for April 2nd UTC 01:00:00.

CODE
http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=This%20Auction%20Ends%20In&month=4&day=2&year=2011&hour=1&minute=00&expire=This%20Auction%20Has%20Expired


(IMG:[thenexus.servegame.com] http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=This%20Auction%20Ends%20In&month=4&day=2&year=2011&hour=1&minute=00&expire=This%20Auction%20Has%20Expired)

As you can see, the timer is showing UTC 00:00:00, not 01:00:00.

This post has been edited by hitokiri84: Apr 1 2011, 23:34
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 1 2011, 23:52
Post #51
Sayo Aisaka



I have no Item Sluts :(
********
Group: Members
Posts: 4,556
Joined: 27-September 08
Level 197 (Destined)


Seems to be running on British Summer Time (GMT+1) or some equivalent. Our clocks went forward at the start of this week.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 1 2011, 23:56
Post #52
grumpymal



I hate everything >:C
***********
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08
Level 362 (Godslayer)


QUOTE(hitokiri84 @ Apr 1 2011, 17:32) *

Well when I looked at it, it was off by one hour. It seems to be an error in the timer script all of a sudden, because it's definitely set for April 2nd UTC 01:00:00.

CODE
http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=This%20Auction%20Ends%20In&month=4&day=2&year=2011&hour=1&minute=00&expire=This%20Auction%20Has%20Expired


(IMG:[thenexus.servegame.com] http://thenexus.servegame.com/E-Hentai/EH-Cdwn.png?auctionname=This%20Auction%20Ends%20In&month=4&day=2&year=2011&hour=1&minute=00&expire=This%20Auction%20Has%20Expired)
As you can see, the timer is showing UTC 00:00:00, not 01:00:00.

I have no idea. That shouldn't be an issue with the script, since it works fairly simply whenever UTC is used (none of this timezone to mess with). Manually configuring the link results in the same thing, so this may be something on the backend. We'll have to wait for Tearlow to take a look at it. My guess is it is DST shenanigans.

QUOTE(Sayo Aisaka @ Apr 1 2011, 17:52) *

Seems to be running on British Summer Time (GMT+1) or some equivalent. Our clocks went forward at the start of this week.

Yep, probably DST shenanigans.

This post has been edited by cmal: Apr 1 2011, 23:57
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 6 2011, 09:52
Post #53
Tearlow



I brained my damage!
***
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09
Level 484 (Dovahkiin)


Sorry guys! But for some reason this forum just don't like me much as it wont send me notifications on replies!

Yes- The server is running on a GMT+1 area where DST is active during 27 Mar - 30 Oct. I guess I could either add a function to counter this if it's needed. I think most of us Hate DST unless it pushes us back an hour *Chuckles*
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 7 2011, 00:59
Post #54
Tearlow



I brained my damage!
***
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09
Level 484 (Dovahkiin)


Alright. The fix is in the pipeline.

The more people that test this little thing and see if anything is wrong is more then apriciated. I think It's nailed though.

[thenexus.servegame.com] http://thenexus.servegame.com/E-Hentai/lab...0&seconds=0

Change the 0's to add time. There is no real function to decrease yet.

Just remember this is a simple test to test first.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 7 2011, 10:25
Post #55
Tearlow



I brained my damage!
***
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09
Level 484 (Dovahkiin)


This may turn into a full rewrite as I've used some odd timer functions here *Chuckles*

[thenexus.servegame.com] Testing Area

This should now be fully customizable- This link will both add and subtract time within the same function. Go ahead and give it a spin and see if you find any errors- Otherwise I will implement this in the lab version of the timer and then make a full release out of it.

EDIT: Added all options. Now I just need to wait for anyone to reply back how it goes.

This post has been edited by Tearlow: Apr 7 2011, 10:49
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 22 2011, 01:11
Post #56
Azure009



Lurker
Group: Lurkers
Posts: 1
Joined: 28-March 11
Level 24 (Apprentice)


I think it pointless but I want to change the title to give update style
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jul 27 2011, 09:42
Post #57
Tearlow



I brained my damage!
***
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09
Level 484 (Dovahkiin)


Hey, Today there might be some issues with my script as I'am working on implementing my new domain. Right now the old domain is running as a Virtual domain- This should work though.

I've not gotten any problem reports lately from anyone so should I expect the script itself have been running as it should? Does the UTC conversion work better now?

Cheers guys/gals (IMG:[invalid] style_emoticons/default/wink.gif)

EDIT: *Cough* The new domain that will eventually take full effect will be "DarknessFall.com"

This post has been edited by Tearlow: Jul 27 2011, 09:44
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jul 28 2011, 00:18
Post #58
grumpymal



I hate everything >:C
***********
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08
Level 362 (Godslayer)


Its been disappearing here and there, but no real problems. I think time is still off, though (when I last made a counter the other day, you might have changed it since then), since I had to add an hour to get UTC 00:00.

Just let us know when to change links accordingly.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jul 28 2011, 15:53
Post #59
Tearlow



I brained my damage!
***
Group: Catgirl Camarilla
Posts: 244
Joined: 16-October 09
Level 484 (Dovahkiin)


QUOTE(cmal @ Jul 28 2011, 00:18) *

Its been disappearing here and there, but no real problems. I think time is still off, though (when I last made a counter the other day, you might have changed it since then), since I had to add an hour to get UTC 00:00.

Just let us know when to change links accordingly.


To my knowledge my server should only been down 2-3 times. One due to Power outage and 2-3 due to Updates requiering reboots. Otherwise I guess my ISP could have gone down at times- As long as It's not for too long it's all good but do shout if it is down for longer periods.

Also, I applied an Update, 1.0.3.3, this should Squash the darned UTC Bug as I changed the way I calculate time, Hopefully this should also stop the GMT+1 to be applied as well. Could I hear if it works as intended? (IMG:[invalid] style_emoticons/default/smile.gif)

Oh, Don't forget the template support was added- There are currently only three I think that you can use though.

EDIT: How odd, Karma+ don't have reserves anymore? I remember training up my 50% save...

This post has been edited by Tearlow: Jul 28 2011, 15:59
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jul 28 2011, 23:40
Post #60
grumpymal



I hate everything >:C
***********
Group: Gold Star Club
Posts: 10,923
Joined: 2-April 08
Level 362 (Godslayer)


Yeah, I was guessing that the disappearances, which were brief and pretty sparse, were due to server downtime.

And the DST thing is fixed. Good work.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


6 Pages V < 1 2 3 4 5 > » 
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 6th July 2025 - 22:30