Page Index Toggle Pages: 1
Topic Tools
Normal Topic Observer treated like a player (Read 2719 times)
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Observer treated like a player
Dec 28th, 2004 at 10:07pm
Post Tools
http://toya.net.pl/~julas/wc3m.dbos.w3g
What the hell is odd with this one? My script sees WC3M.dbos as an observer and RepMaster just shows an error. Any ideas?
« Last Edit: Mar 13th, 2005 at 5:43pm by Julas.wtfwrongpass »  
Back to top
WWWICQ  
IP Logged
 
wulfskin
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 30
Location: Germany
Joined: Jan 4th, 2003
Re: Observer treated like a player
Reply #1 - Jan 12th, 2005 at 7:28pm
Post Tools
Hello Julas,

it works pretty well with my program "Replay Explorer". But I'll watch if I have changed anything in my program code. Have you watched at this replay with a hex editor?

Regards,
Hape!
  
Back to top
ICQ  
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Observer treated like a player
Reply #2 - Jan 12th, 2005 at 10:35pm
Post Tools
I have zero free time lately so it's impossible for me to analyze it.
  
Back to top
WWWICQ  
IP Logged
 
Nagger
Grunt
**
Offline



Posts: 50
Joined: Jun 10th, 2003
Re: Observer treated like a player
Reply #3 - Mar 13th, 2005 at 3:35pm
Post Tools
Hello guys, its been quite a while...


I had a look into the replay:
There is a playerrecord for 'WC3M.dbos' with id=12, but this player id never occure in the slotrecords.
Dont know why is that, maybe he left right before gamestart.

To fix your script change line 847 from
Code
Select All
// splitting teams
foreach($this->players as $player_id=>$info) {
  $this->teams[$info['team']][$player_id] = $info;
}
 


to
Code
Select All
// splitting teams
foreach($this->players as $player_id=>$info) {
  if (isset($info['team']))
    $this->teams[$info['team']][$player_id] = $info;
}
 


  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Observer treated like a player
Reply #4 - Mar 13th, 2005 at 6:23pm
Post Tools
Hi Nagger Cheesy
AFAIK you are one of the Waaagh!TV authors and this problem seems to occur only in reps saved by Waaagh!TV watchers.
http://toya.net.pl/~julas/waaagh.w3g
I've found another replay - from 1.18. There are four players who have no slot records. Warcraft doesn't see them in any way but I'm simply curious what are those player records.

I've tried to watch one game via Waaagh but got disced in the end. LastReplay didn't contain any weird player records. The only funny thing was that my nick was placed instead of mtw-Rax and it looked like he chatted with my nick Smiley

If you had a bit of free time, could you investigate what those player records are?
  
Back to top
WWWICQ  
IP Logged
 
Nagger
Grunt
**
Offline



Posts: 50
Joined: Jun 10th, 2003
Re: Observer treated like a player
Reply #5 - Mar 14th, 2005 at 9:50am
Post Tools
Quote:

this problem seems to occur only in reps saved by Waaagh!TV watchers.

This explains the behaviour. I have seen his in WaaaghTV before, but never in a replay.

If someone joins a game all other player get the playerrecord (which is name and id) of the new player.
And they get (as a second message) all slotrecords.
If a player leaves the game before gamestart only the updated slotrecord will be send to the others. There is no 'delete playerrecord'-message. So the zombie-player-record is kept.
This seems to be a bug in our WaaaghtV-Recorder Tongue


Quote:

The only funny thing was that my nick was placed instead of mtw-Rax and it looked like he chatted with my nick Smiley

Many people are confused by this. But we cannot change it. Warcraft replaces the name of the streamer with your own name. (Internally: If you join a game your warcraft takes only the playerrecords for the other players, your own playerrecord is created internally.)
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Observer treated like a player
Reply #6 - Mar 14th, 2005 at 4:06pm
Post Tools
Thanks for the reply. That explains everything Cheesy I'll use your solution to get rid of those zombie-records.
  
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools