dswp.de
http://www.dswp.de/old/

DSWP Bar for Firefox
http://www.dswp.de/old/forum-gameserver-support/dswp-bar-for-firefox-t1139-60.html
Page 7 of 12

Author:  JRandomNoob [ 12.09.10 ]
Post subject:  Re: DSWP Bar for Firefox

You mean the bunch of undefineds? Now that I think of it, yes, sometimes. I suppose this happens when the refresh starts while a new map is loading. (Or was it all zeros -- scores and time left... Can't remember and can't check either right now, the server's empty.) I've got WinXP SP3 *blush* (haven't installed Linux yet on this box).

User feedback on usability: the fact that refresh freezes the browser means I run it in another window, in order to be able browse normally (when my 3G connection takes a break, the freeze can be really long), which kinda defeats it's purpose. And, of course, showing zero players as one undefined player is a bit annoying, though there's no real point in jumping at every passing guest at 3 AM in the morning:-)

Overall, I like this bar, together with the whole forum and community. It doesn't happen often that I register myself as a user after few days' lurking. Never before, in fact.

Author:  MilanFIN [ 12.09.10 ]
Post subject:  Re: DSWP Bar for Firefox

Did u fix it? Cause now i didn't got the message anymore.

if fixed, thanks

Edit: Nothing yet, still asks for updating, sorry i didn't wait long enough.

Author:  JRandomNoob [ 12.09.10 ]
Post subject:  Re: DSWP Bar for Firefox

So far, I haven't seen The Wursti Bug; when a new map is loading, the bar displays "Current map: Loading next map... Next map:" as presumably intended.

JRandomNoob wrote:
...the fact that refresh freezes the browser means I run it in another window, in order to be able browse normally (when my 3G connection takes a break, the freeze can be really long)...


As I write it now, my connection is fine, but the last refresh has taken more than ten minutes (in the task manager this FF process is shown as running and I can actually open files with it, just not scroll them or anything). In case it's caused by something on the -- 100% up and running -- server side, the freeze happened somewhere around 17:55 GMT +2 (the server is GMT +1?).

After killing the process it works fine once again.

Author:  Unclefragger [ 12.09.10 ]
Post subject:  Re: DSWP Bar for Firefox

yes there is no timeout in the refresh and the bar blocks all general input whilst the process is running fine
due too mad wifi and router problems I stopped using the bar since it rendered my browser useless ;)

Author:  JRandomNoob [ 12.11.10 ]
Post subject:  Re: DSWP Bar for Firefox

Aha! When SvaRoX tried to recruit another test user on IRC, UFF|Frag had suitable browser, but he had doubts about whether he can really use the bar as he has NoScript installed. Inspired by this, I too installed this addon, and whaddya know, The Wursti Bug manifested itself in all of its glory. After I log in (yes, the bar is usable, as it should be), there's the bunch of undefineds, after a refresh (either automatic or by hand) everything is OK. Can be repeated reliably and consistently.

EDIT: Funny thing is, now I can see TWB even after uninstalling both NoScript and AdBlock Plus (that I had installed along with NoScript). Decidedly weird. It doesn't appear to be any global change in environment caused by those add-ons, as after restarting both Firefox and Windows TWB is still there.

Attachments:
ye-olde-wursti-bug.png
ye-olde-wursti-bug.png [ 1.38 KiB | Viewed 4921 times ]

Author:  wurst [ 12.12.10 ]
Post subject:  Re: DSWP Bar for Firefox

can i do some in order to find the bug?

Author:  SvaRoX [ 12.13.10 ]
Post subject:  Re: DSWP Bar for Firefox

About the persistent update prompt, I know where it comes from so I will fix it.
Same for the undefined.
Regarding the freeze bug, I suspect it comes from the xmlHTTPrequest, so I will add a timeout and see what happens.

Another thing not directly related to the bar is the way it retrieves the data. The PHP page providing information about the current server status fetches data at regular intervals, despite the table is being written or not, so I think it needs a lock somewhere (account plugin and/or perso_friends.php). Wurst I'm sure you have an idea about how to do that in a clean way :)

Author:  JRandomNoob [ 02.22.11 ]
Post subject:  Re: DSWP Bar for Firefox

I know where this array bug hides! Well, approximately.

I've spent last three or four days poking at Python and writing a small plugin for Supybot (it's idling on #dswp as aimlessbot, allowing people to ask for !penis and !8ball while CuntBot is offline). After taking care for this vital stuff (and adding some silly custom stuff) I tried to emulate another useful command (namely, !status), and actually got the HTTP request part working perfectly (not surprising, it's very easy)... but apparently there's something really weird about how http://www.dswp.de/old/perso_friends.php is served, because with Python, I'm always getting the last line as "MAP:Array". No matter what, not matter which method I use and how fancy I make it. This occasionally happens with browser, too: In Firefox, everything's fine so far, but when opening http://www.dswp.de/old/perso_friends.php?etc=etc&etc=etc in IE, I got the array bug at first. And after refresh, it disappeared, exactly as in DSWP bar case.

BTW, I just refreshed the page in FF and saw "MAP:,,,,". Heh. After refresh, fine again.

Author:  SvaRoX [ 02.22.11 ]
Post subject:  Re: DSWP Bar for Firefox

As I said I think it needs a lock first (sad, wurst didn't read my last post :p), then we could debug further. I'm surprised python always get wrong data, how do you retrieve it ?
JRandomNoob wrote:
I've spent last three or four days poking at Python and writing a small plugin for Supybot (it's idling on #dswp as aimlessbot, allowing people to ask for !penis and !8ball while CuntBot is offline). After taking care for this vital stuff (and adding some silly custom stuff) I tried to emulate another useful command (namely, !status)

Too bad you don't code on CuntBot, it's open source you know ;)

Author:  wurst [ 02.22.11 ]
Post subject:  Re: DSWP Bar for Firefox

hmm lock?
what lock how upgrade 003? plz help.

Page 7 of 12 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/