if u know those two things u should be able to create a running total
with time stamps for total buildings. might be in the replay i dont
know.
example:
1 building :0
2 building :25
3 building 1:40
4 building 2:52
3 building 2:54 (cancelled)
4 building 3:15
5 building 4:12
6 building 3:30
5 building 3:45 (building killed)
4 building 3:55 (building killed)
3 building 4:05 (building killed)
(this is where i don't know if a player leaves does the count go to 0
instantly? or does it stay at 3?)
now for the logic side.
player is the first person to leave the game
if player leaves:
check opponent building history
(1.2.3.4.5.6.7.8.7.8.9.8.7.6.7.8.0?)VS(1.2.3.4.5.6.7.6.7.6.5.4.3.2.1.0)
if former odds are VERY good that player lost
if ladder odds are good that player won and left first at score screen
can double check with:
check player building history
(1.2.3.4.5.6.7.8.7.8.9.8.7.6.7.8.0?)VS(1.2.3.4.5.6.7.6.7.6.5.4.3.2.1.0)
if former then former should match ladder of previous history if it
does then player left before losing all his buildings
if ladder then ladder should match former of previous history if it
does then player lost and left first
if both formers are true then quitter quit
if both ladders are true then some simultaneous nuke happened... or
can't track building history like i thought.
i know i have a weird way of explaining things but numbers for build
orders were arbitrary was just trying to get a point across
the other thing it could do is destroy all buildings instantly so
(1.2.3.4.5.6.7.8.7.8.9.8.7.6.7.8.0?) while parsed would look like
(1.2.3.4.5.6.7.8.7.8.9.8.7.6.7.8.[7.6.5.4.3.2.1.0]) but the bracketed
part would be within like .5 seconds
if this is the case would have to add a latency cap and a building cap
and do double checks to make logical guesses. (in theory a player
could nuke an opponent's last three
buildings)(1.2.3.4.5.6.7.8.7.8.9.8.7.6.7.8.7.6.5.4.[3.2.1.0]) so they
all died within .5 seconds however then so would the other players and
i'd go with a most buildings lost in the last .5 seconds is the winner
cuz blizz destroyed all theirs not a nuke. barr some rediculous low
building nuke strat vs condensed buildings i think it'd be close to
100% aka 99.9%
If u don't understand parts of my theory or there are holes like u
can't get building counts with respect to time. please let me know and
i'll try to come up with something else. ty for all that you've done
and can't wait to see what u come up with :-)