ShadowFlare's Realm
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl
ShadowFlare's Realm Forums >> Program Development >> Finding dupplicated items within action $10
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl?num=1115379477

Message started by wulfskin on May 6th, 2005, 1:37pm

Title: Finding dupplicated items within action $10
Post by wulfskin on May 6th, 2005, 1:37pm

Hello,

as Julas did in his great Replay Parser, I also want to list the buildings/heros/units/items build/used.
Like him I only analyse action $10 for it. Unfortunately there are often duplicated actions within the same second of which I can't find out if they're real or just a cause of lag.
To find out duplicated abilities, Julas used this:
Code:
if (($this->time - $this->players[$player_id]['heroes'][$hero]['ability_time'] > $this->action_delay || !$this->players[$player_id]['heroes'][$hero]['ability_time']) && $this->players[$player_id]['heroes'][$hero]['abilities'][$ability] < 3) {
But the problem is that there not only duplicated abilities but also duplicated units and so on.

So has anyone an idea how to find out if a unit/building was really built or not?

Regards,
Hape

Title: Re: Finding dupplicated items within action $10
Post by Julas.wtfwrongpass on May 6th, 2005, 2:01pm

In the upcoming version I've improved the algorithm a bit. But generally we don't know how to distinguish lag actions from real actions.

ShadowFlare's Realm » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.