Page Index Toggle Pages: 1 [2] 3 4 ... 7
Topic Tools
Very Hot Topic (More than 25 Replies) PHP Warcraft III Replay Parser (Read 111586 times)
Soar
Grunt
**
Offline


Soar Chin

Posts: 89
Joined: Feb 11th, 2003
Re: PHP Warcraft III Replay Parser
Reply #15 - Jun 25th, 2004 at 6:54pm
Post Tools
I forgot what I coded.
In my memory, I seperate blocks and actions, even when an action is incorrect, it will still skip to next block and ignore all unreconized actions.
Also if there is an unknown block number, I will move the block to next byte to analyse, this once caused some critical problems on initial versions, but later, it ensures the stability of parsing engine
  

Soar Chin
Back to top
WWW  
IP Logged
 
Nagger
Grunt
**
Offline



Posts: 50
Joined: Jun 10th, 2003
Re: PHP Warcraft III Replay Parser
Reply #16 - Jun 28th, 2004 at 11:34pm
Post Tools
Quote:
I try to parse this file :

http://replay-fr.com/20040520084000049-W3XP-solo.w3g

and i have this error message :
20040520084000049-W3XP-solo.w3g: Unhandled replay action: 0x63, previous was 0x0

I checked this replay with my program and it also failed. But after some debugging a got it and it looks like julas made the same mistake:

patch 1.14b (and later versions) shifted some action-ids. To distingish between 1.14 and 1.14b replays we had to check the build number (not only the minor version number as usual). 
Unfortunatly in official tournament replays the build number is set to zero. 
So with a simple build-number-check your replay was recognized as pre 1.14b and the action parsing failed.

@julas:
if ($this->header['build_v'] >= 6040)
should be replaced by
if ($this->header['build_v'] >= 6040 || $this->header['major_v'] >= 15)

I think there is no chance to differtiate between 1.14 and 1.14b official tournament replays (except parsing with both formats and taking the one that works Wink )
  
Back to top
 
IP Logged
 
Hesiode
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jun 15th, 2004
Re: PHP Warcraft III Replay Parser
Reply #17 - Jun 30th, 2004 at 7:46pm
Post Tools
OK, thx a lot !!!!
  
Back to top
 
IP Logged
 
Blue
Grunt
**
Offline


Think first.

Posts: 54
Location: Berlin, Germany
Joined: May 12th, 2003
Re: PHP Warcraft III Replay Parser
Reply #18 - Jul 1st, 2004 at 2:32pm
Post Tools
Quote:
I think there is no chance to differtiate between 1.14 and 1.14b official tournament replays (except parsing with both formats and taking the one that works Wink )

I just thought of an alternative: we could check the date of the game encoded in the name of an tournament replay vs. the release date of patch 1.14b.
I am not sure if the release dates in our docu are 100% accurate though.
But it should work for most replays.
  
Back to top
 
IP Logged
 
Unity
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Aug 15th, 2004
Re: PHP Warcraft III Replay Parser
Reply #19 - Aug 15th, 2004 at 10:12pm
Post Tools
Hey guys!

I got a little problem with your replay parser (surprise surprise  Grin )

I unzipped your package and, after having created a directory with Read/Write/Execute-flags, uploaded all of the files. As I spent some time on the example.php, I realized that I EITHER have to create the sub-directories replays/ and database/ OR change the script a little. After having done first, I experienced some errors looking like this:

By calling the example.php, it showes all replays in the replay folder with proper names and file-size, but it seems like the script is unable to extract the game data:

Warning: Wrong parameter count for fgets() in /data/rw/home/n/nick.pr/wrathofsquirrels/replaysection/example.php on line 104

Warning: Invalid argument supplied for foreach() in /data/rw/home/n/nick.pr/wrathofsquirrels/replaysection/example.php on line 108

So I downloaded some replays from your example site and tried these, but the errors stayed. By using the "Check your own replay!"-function there isn't any trouble with these replays; can u help me?
  
Back to top
 
IP Logged
 
Elven-ranger
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Oct 16th, 2004
Re: PHP Warcraft III Replay Parser
Reply #20 - Oct 16th, 2004 at 5:48pm
Post Tools
What is this? 

"Warning: array_search(): Wrong datatype for second argument in /home2/ranger/public_html/example.php on line 135"   

Its working but its anoying error.

Check my website: www.clangold.co.nr
  
Back to top
 
IP Logged
 
doicromoy
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Oct 23rd, 2004
Re: PHP Warcraft III Replay Parser
Reply #21 - Oct 23rd, 2004 at 7:48pm
Post Tools
hi. I have some problems. 

details about replays does not working. Sad nothing happens.
this is thelink. http://br2d.lx.ro/w3g-julas-2.0/example.php

Please help. Thanks a lot
  
Back to top
 
IP Logged
 
ubertheworld
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Feb 12th, 2005
Re: PHP Warcraft III Replay Parser
Reply #22 - Feb 12th, 2005 at 1:07pm
Post Tools
i got the same problem.. all works but the details... and thats what is the best thing which comes with ur script

http://www.flo.xados.de/wc3/example.php
  
Back to top
 
IP Logged
 
BuLdOzEr
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Feb 12th, 2005
Re: PHP Warcraft III Replay Parser
Reply #23 - Feb 12th, 2005 at 11:20pm
Post Tools
http://www.clanglb.com/~w3g/

"The page cannot be found 
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. "
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #24 - Feb 12th, 2005 at 11:47pm
Post Tools
http://toya.net.pl/~julas/w3g/
Hint: Use Google, Luke.
  
Back to top
WWWICQ  
IP Logged
 
BuLdOzEr
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Feb 12th, 2005
Re: PHP Warcraft III Replay Parser
Reply #25 - Feb 13th, 2005 at 12:22am
Post Tools
[bJulas.wtfwrongpass[/b]

Thanks a lot! Smiley

P.S.: Just i have no Power, Master Yoda!
 
  
Back to top
 
IP Logged
 
Greg
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 11th, 2005
Re: PHP Warcraft III Replay Parser
Reply #26 - Mar 11th, 2005 at 1:49am
Post Tools
Hi Julas!
First of all, thanks for the parser. But tell me how can i upload replays to server using your example. Because i now i can only view parsed results.
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #27 - Mar 11th, 2005 at 1:53pm
Post Tools
You can't -  you have to create your own frontend or modify the one I provided.
  
Back to top
WWWICQ  
IP Logged
 
Greg
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Mar 11th, 2005
Re: PHP Warcraft III Replay Parser
Reply #28 - Mar 12th, 2005 at 4:55pm
Post Tools
Hmm  ??? but it's impossible, because for listing stored replays your function needs mistery txt file in folder "database", so it won't help if i'll upload w3g replay by myself. What thing creates that txt file?
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #29 - Mar 12th, 2005 at 6:30pm
Post Tools
The thing is example.php and the function is serialize()
http://php.net/serialize

PS A quote from sbd's Battle.net profile description:
"Impossible is just a big word thrown around by small men who find it easier to live in the world they've been given than to explore the power they have to change it. Impossible is not a fact. It's an opinion. Impossible is not a declaration. It's a dare. Impossible is potential. Impossible is temporary. Impossible is nothing."
Wink
  
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 ... 7
Topic Tools