Welcome, Guest. Please Login
Back to main page
  News:
Welcome to the ShadowFlare's Realm Forums.  New registrations are by request only.  To be considered for a new forum account, send an e-mail with the user name and display name you want and the reason you want to register.
  Home SFRealm HelpSearchLogin  
 
Pages: 1 2 3 4 ... 7
Send Topic Print
PHP Warcraft III Replay Parser (Read 99195 times)
Soar
Grunt
**
Offline

Soar Chin

Posts: 89

Gender: male
Re: PHP Warcraft III Replay Parser
Reply #15 - Jun 25th, 2004, 7:54pm
 
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
Back to top
 
 

Soar Chin
WWW   IP Logged
Nagger
Grunt
**
Offline



Posts: 50

Re: PHP Warcraft III Replay Parser
Reply #16 - Jun 29th, 2004, 12:34am
 
[quote author=Hesiode  link=1084574897/0#2 date=1087299534]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
[/quote]
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

Re: PHP Warcraft III Replay Parser
Reply #17 - Jun 30th, 2004, 8:46pm
 
OK, thx a lot !!!!
Back to top
 
 
  IP Logged
Blue
Grunt
**
Offline

Think first.

Posts: 54
Berlin, Germany
Gender: male
Re: PHP Warcraft III Replay Parser
Reply #18 - Jul 1st, 2004, 3:32pm
 
[quote author=Nagger  link=1084574897/15#16 date=1088465672]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 )
[/quote]
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

Re: PHP Warcraft III Replay Parser
Reply #19 - Aug 15th, 2004, 11:12pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #20 - Oct 16th, 2004, 6:48pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #21 - Oct 23rd, 2004, 8:48pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #22 - Feb 12th, 2005, 1:07pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #23 - Feb 12th, 2005, 11:20pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #24 - Feb 12th, 2005, 11:47pm
 
http://toya.net.pl/~julas/w3g/
Hint: Use Google, Luke.
Back to top
 
 
WWW 64994211   IP Logged
BuLdOzEr
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 3

Re: PHP Warcraft III Replay Parser
Reply #25 - Feb 13th, 2005, 12:22am
 
[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

Re: PHP Warcraft III Replay Parser
Reply #26 - Mar 11th, 2005, 1:49am
 
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

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

I love YaBB 1G -
SP1!

Posts: 3

Re: PHP Warcraft III Replay Parser
Reply #28 - Mar 12th, 2005, 4:55pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #29 - Mar 12th, 2005, 6:30pm
 
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
 
 
WWW 64994211   IP Logged
Pages: 1 2 3 4 ... 7
Send Topic Print