Page 1 of 1

Bug in galaxy

Posted: Mon 27 Oct 2008, 06:49:26
by Modern
There is a bug in galaxy - the rank of players and alliances is not displayed when there is a destroyed planet in the system. I think the bug concerns every language version because I play english (ogame.org) and my native (ogame.pl).

Re: Bug in galaxy

Posted: Tue 28 Oct 2008, 13:07:13
by cedricpc
Well, I've found the problem. (Thanks for the source code.)

If you want to solve it quickly, search in OperaGame_Core this line in operaGame_Galaxy_Rank() function :

Code: Select all

if ((row.childNodes.length < 7) || (row.childNodes[5].childNodes.length < 2) || (row.childNodes[5].name == 'Player')) continue;
And replace it by this one :

Code: Select all

if ((row.childNodes.length < 7) || (row.childNodes[5].childNodes.length < 2) || (row.childNodes[5].getElementsByTagName('a').length < 1) || (row.childNodes[5].name == 'Player')) continue;
Otherwise, it will be fixed in the next release - but I don't know when I'll release it.

Thanks for the bug report. ;)

Re: Bug in galaxy

Posted: Tue 28 Oct 2008, 15:14:39
by Modern
Thanks. I've found it and corrected - now everything is fine :-)

Re: Bug in galaxy

Posted: Tue 28 Oct 2008, 19:54:01
by cedricpc
Cool. :)

Problem solved, I close this topic.