User Pass
Home Sign Up Contact Log In
Forum > Discuss GLB Issues With Catch22 > RESOLVED BUGS > Team avatars not resizing in flash replays - FIX UPLOADED
Page:
 
Hokiemon
offline
Link
 
Agreed
BUG - NEEDS VERIFICATION
Moving to QA NEEDS DETERMINATION
 
Djmr
offline
Link
 
Im having problems replicating this. I have two examples of times where this occurred, but those arent from today, and when I visit the same plays now, im not getting the big pics. I'll try clearing temporary internet files and see if that helps.
 
Djmr
offline
Link
 
Ok, I cleared my cache, and I tried the two examples given on the first page, both didnt work.

Then I tried the first replay that I found which caused the problem - http://goallineblitz.com/game/replay.pl?game_id=1204204&pbp_id=1790771

The first time I opened that play after deleting my cache, the play looked like this:
http://img517.imageshack.us/img517/6547/flashpicslookinghuge3.jpg

The second time I opened that play, it looked like this:
http://img514.imageshack.us/img514/660/flashpicslookinghuge4.jpg

I used google chrome, but since its flash it should be the same for all browsers. I won't give a vertification though until someone else has tried this.

Edit: A bit about what I think the problem may be. When images are loaded first-time, they're loaded directly from the server, which may store them at their original size. When they are saved to the temp. internet files and loaded from there, they are kept to the 75x75 image limit, so hence why they show up in that format. I think LostPeon still gets this problem as he may not use caching.

Extra edits to make more sense
Edited by Djmr on Jun 4, 2010 12:58:53
Edited by Djmr on Jun 4, 2010 12:57:48
Edited by Djmr on Jun 4, 2010 12:56:46
 
MC_Hammer
offline
Link
 
One easy fix (imo) is to change the code to ONLY allow proper sized avatars, then remove any that are larger than that and post an admin announcement stating for any teams/users affected to re-upload their avatars at the proper size.
 
Djmr
offline
Link
 
I think that'd be too extreme of a fix just to solve the bug though

The problem just lies in flash's resizing. Im sure you can resize a downloaded image inside flash. I think the fix should be code like this:

if (cookie.teamNumImageExists == false) {
teamImage1 = new Image("http:://goallineblitz.com/teamavatars/"+teamNum);
teamImage1._height = 75;
teamImage1._width = 75;
} else {
teamImage1 = new Image(cookie.teamNumImage);
}

Only presuming though as I dont know what version of actionscript used, and its been a while since I used it. Thats pretty much OOP though, so should be relevant (I hope).

Another example, just because I stumbled across it:
http://goallineblitz.com/game/replay.pl?game_id=1211890&pbp_id=3460384
http://img715.imageshack.us/img715/4973/flashpicslookinghuge5.jpg
 
MC_Hammer
offline
Link
 
Originally posted by Djmr
I think that'd be too extreme of a fix just to solve the bug though


That may be true, but would definitively fix the issue without the possibility of it occurring again.

Edit: It is a bug though as it stands within the Flash replays so I am reclassing as BUG - FIRST VERIFICATION
Edited by MC_Hammer on Jun 4, 2010 14:12:54
 
kuaggie
offline
Link
 
I can't replicate this as I don't have Opera. Can any QA mod give an ACTUAL second verification?
 
Djmr
offline
Link
 
Originally posted by kuaggie
I can't replicate this as I don't have Opera. Can any QA mod give an ACTUAL second verification?


Its not dependant on browser because I've shown it happens in google chrome and a user has seen it happen in mozilla firefox (check first page). I dont want to give it a second verification until another QA mod verifies this. Ive changed the title for you to make the problem clearer, kuaggie
 
RMiller517
offline
Link
 
i don't have opera. i have a test machine at work that i could install it on to try, but i'm at a conference for work until wednesday.
 
Djmr
offline
Link
 
Originally posted by RMiller517
i don't have opera. i have a test machine at work that i could install it on to try, but i'm at a conference for work until wednesday.


Not dependant on opera, changed title to reflect this
 
NiborRis
offline
Link
 
Originally posted by Djmr
Ok, I cleared my cache, and I tried the two examples given on the first page, both didnt work.

Then I tried the first replay that I found which caused the problem - http://goallineblitz.com/game/replay.pl?game_id=1204204&pbp_id=1790771

The first time I opened that play after deleting my cache, the play looked like this:
http://img517.imageshack.us/img517/6547/flashpicslookinghuge3.jpg

The second time I opened that play, it looked like this:
http://img514.imageshack.us/img514/660/flashpicslookinghuge4.jpg

I used google chrome, but since its flash it should be the same for all browsers. I won't give a vertification though until someone else has tried this.

Edit: A bit about what I think the problem may be. When images are loaded first-time, they're loaded directly from the server, which may store them at their original size. When they are saved to the temp. internet files and loaded from there, they are kept to the 75x75 image limit, so hence why they show up in that format. I think LostPeon still gets this problem as he may not use caching.

Extra edits to make more sense


These steps duplicate the problem for me as well, I'm using Firefox 3.6.3 so this is browser-neutral.
Verifying as a bug and sending to be filed. Since it's a flash bug, Catch may want to just forward "to the flash guy" as he's done with some other flash bugs.
 
HouseRules
offline
Link
 
Let's see if Catch wants this filed in Bugzilla or send to the flash programmer directly before filing.
 
Deadpool55
offline
Link
 
Originally posted by lhouse
Let's see if Catch wants this filed in Bugzilla or send to the flash programmer directly before filing.


Edited by Deadpool55 on Jun 4, 2010 19:41:44
 
HouseRules
offline
Link
 
Catch is going to send this directly to the flash programmer. Thread moved to NEEDS BUG ADMIN DETERMINATION for Catch.
Edited by lhouse on Jun 4, 2010 20:34:13
 
Catch22
offline
Link
 
New version has been uploaded that should correct this issue. Please report back if it's still happening.
 
Page:
 


You are not logged in. Please log in if you want to post a reply.