Forged Alliance Forever Forged Alliance Forever Forums 2012-07-05T09:26:32+02:00 /feed.php?f=3&t=1406 2012-07-05T09:26:32+02:00 2012-07-05T09:26:32+02:00 /viewtopic.php?t=1406&p=15244#p15244 <![CDATA[Re: bug allows guaranteed win once enemy commander under 2.5]]>
In the log :

player 1 : info: GAMERESULT : \000defeat 0
player 2 : info: GAMERESULT : \000defeat -1

While in custom it's indeed resulting in one of the player winning, in ladder, the counting of points is slightly different, and should result in a draw.

Here is the code in the server :

Code:
def addResultPlayer( player, faresult, score):
   
    if player in self.gameFaResult :
        if  gameFaResult[player] == "score" :
            # the play got not decicive result yet, so we can apply it.
            gameFaResult[player] = faresult
            #self.gameResult[player] = score
        else :
            if faresult == "defeat" and gameFaResult[player] == "victory" :
                if not player in self.invalidPlayers :
                    invalidPlayers.append(player)
                #if we try to set a defeat, but the player was victory.. We've got a disparity problem !
                #
            else :
                if faresult != "score" :
                    self.gameFaResult[player] = faresult
                    if faresult == "defeat" :
                        gameResult[player] = -1
                    if faresult == "victory" :
                        gameResult[player] = 1
                    if faresult == "draw" :       
                        gameResult[player] = -1                 
    else :
        gameFaResult[player] = faresult
        gameResult[player] = score   


You can check it with python :

addResultPlayer( player1, defeat, 0)
will result in "-1" for player1 :
Code:
                    if faresult == "defeat" :
                        gameResult[player] = -1

for player two :
addResultPlayer( player1, defeat, -1)
Same.

So this replicate nothing, and according to the logs, the ladder is fine.

Statistics: Posted by Ze_PilOt — 05 Jul 2012, 09:26


]]>
2012-06-15T19:32:12+02:00 2012-06-15T19:32:12+02:00 /viewtopic.php?t=1406&p=14792#p14792 <![CDATA[Re: bug allows guaranteed win once enemy commander under 2.5]]>
Koecher wrote:
Was it counted as a win for you (Ladder Points)?
Maybe its just displayed in a confusing way?

Following THIS the result "makes sense" even if it doesn't following what actually happened.

I gained 13 ladder points and it did say I won

Statistics: Posted by noobymcnoobcake — 15 Jun 2012, 19:32


]]>
2012-06-15T19:16:06+02:00 2012-06-15T19:16:06+02:00 /viewtopic.php?t=1406&p=14791#p14791 <![CDATA[Re: bug allows guaranteed win once enemy commander under 2.5]]> Maybe its just displayed in a confusing way?

Following THIS the result "makes sense" even if it doesn't following what actually happened.

Statistics: Posted by Koecher — 15 Jun 2012, 19:16


]]>
2012-06-15T15:48:04+02:00 2012-06-15T15:48:04+02:00 /viewtopic.php?t=1406&p=14787#p14787 <![CDATA[Re: bug allows guaranteed win once enemy commander under 2.5]]>
:lol: joking :lol:

------> [x]

Statistics: Posted by Fok — 15 Jun 2012, 15:48


]]>
2012-06-15T15:33:12+02:00 2012-06-15T15:33:12+02:00 /viewtopic.php?t=1406&p=14786#p14786 <![CDATA[bug allows guaranteed win once enemy commander under 2.5k]]>
However here is the bug. He did not kill my commander. I killed it myself. So he dont get +1 for that. However I killed his commander. I get a +1. But I also lost my commander so I get -1. Result is XBX-DilliDalli -1and noobymcnoobcake 0. I won.

He understood i did not know about this bug and just wanted draw as it was clear it was gonna be draw or loss and anyone in my situation would have gone for draw. But this bug needs to be fixed. As soon as your opponent is under 2.5K hp then just kill your own commander and its guaranteed win.

Statistics: Posted by noobymcnoobcake — 15 Jun 2012, 15:33


]]>