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



Posts: 84
Joined: May 11th, 2004
PHP Warcraft III Replay Parser
May 14th, 2004 at 11:48pm
Post Tools
The newest version of the parser is available at http://w3rep.sourceforge.net/
« Last Edit: Jan 6th, 2008 at 1:09pm by Julas.wtfwrongpass »  
Back to top
WWWICQ  
IP Logged
 
Ruffy
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jun 14th, 2004
Re: PHP Warcraft III Replay Parser
Reply #1 - Jun 14th, 2004 at 9:33pm
Post Tools
Hi, I have the follow Problem with your parser Script:

[...]
replays is not an array, we've got trouble.
Warning: Invalid argument supplied for foreach() in /www/path/replays/example.php on line 97
[...]

I can upload a file but this file is not stored after the session ... And many array errors comes ... 

A other Problem is this after i try to upload a Replay:

[...]
Warning: array_search() [function.array-search]: Wrong datatype for second argument in /www/path/replays/example.php on line 137 [...]

I see the Replay with the Stats ... but the Replay is not saved and the Script says "Replay folder contains no replays!" (Yes, the database and replay folder are created and the webserver has the right permissions to this folders)

I have this Problems on 3 different Servers with different OS (+Apache+PHP+...)

Sorry for my bad english Smiley

Bye
Avalon

PS: I use w3g-julas-1.9.zip
  
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 #2 - Jun 15th, 2004 at 11:38am
Post Tools
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

Have u a solution ?

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



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #3 - Jun 15th, 2004 at 1:47pm
Post Tools
Quote:
[...]
replays is not an array, we've got trouble.
Warning: Invalid argument supplied for foreach() in /www/path/replays/example.php on line 97
[...]


Sorry for the late answer - I've got your mail but didn't have time to reply (end of the semester so I was trying to get better marks).
Have you modified the source of my parser or example in any way?
  
Back to top
WWWICQ  
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #4 - Jun 15th, 2004 at 1:49pm
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

Have u a solution ?


The rep seems very weird. Even though W3GMaster parses it, both players seem to have over 600 APM, which iis the biggest value I've seen. I've tried modifing max block size but that didn't help... I'll try to find some more 1.15 tournament reps and find out what's going on (but if Nagger and Blue read this they'll be probably faster Smiley)
  
Back to top
WWWICQ  
IP Logged
 
Oui-Oui
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Jun 17th, 2004
Re: PHP Warcraft III Replay Parser
Reply #5 - Jun 17th, 2004 at 10:38am
Post Tools
I have a problem uing the parser on my computer : I am working on a mac uing OS X, and i installed the parser under my apache server. I installed the latest version of php, but when i load the example (i didn't change anything), it tells me the replays i have are incomplete. I tested these replays on other servers without any problem :/ What can i do ?
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #6 - Jun 17th, 2004 at 1:49pm
Post Tools
Quote:
I have a problem uing the parser on my computer : I am working on a mac uing OS X, and i installed the parser under my apache server. I installed the latest version of php, but when i load the example (i didn't change anything), it tells me the replays i have are incomplete. I tested these replays on other servers without any problem :/ What can i do ?


Oh no, a Mac... ;p (I work on them in school... brr). Do you have zlib support in your PHP?
  
Back to top
WWWICQ  
IP Logged
 
Ruffy
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jun 14th, 2004
Re: PHP Warcraft III Replay Parser
Reply #7 - Jun 22nd, 2004 at 9:03pm
Post Tools
Quote:


Sorry for the late answer - I've got your mail but didn't have time to reply (end of the semester so I was trying to get better marks).
Have you modified the source of my parser or example in any way?


Thx for the Answer, and Sorry for email Spaming.

I dont do anything with the code, only unpack the .zip file, change the owner/group permissions and that is it.

Thats the Directory:
http://hlc.frankenmafia.info/replays/file_struct.txt

and here is a copy from the three main *.php Files in .phps, u can show the code:
http://hlc.frankenmafia.info/replays/example.phps
http://hlc.frankenmafia.info/replays/w3g-julas-convert.phps
http://hlc.frankenmafia.info/replays/w3g-julas.phps

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



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #8 - Jun 22nd, 2004 at 10:42pm
Post Tools
Quote:

I dont do anything with the code, only unpack the .zip file, change the owner/group permissions and that is it.


http://hlc.frankenmafia.info/replays/example.php
Well, isn't the first line there the answer? Shocked
  
Back to top
WWWICQ  
IP Logged
 
Ruffy
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jun 14th, 2004
Re: PHP Warcraft III Replay Parser
Reply #9 - Jun 22nd, 2004 at 11:49pm
Post Tools
Hi,

But when i try to upload some Test-Replays in the replays/ folder then i become much errors from the example.php:

Example 1:
Replay = 1vs1-Doombringer-Bubbel-01.w3g
URL = http://hlc.frankenmafia.info/replays/example.php
Error = 
1. 1vs1-Doombringer-Bubbel-01 » download(82 KB) 
Warning: Invalid argument supplied for foreach() in /www/hlc.frankenmafia.info/replays/example.php on line 108

------

Example 2 (same Script, but with a other Replay in the replay folder):
Replay = Fun-The_Great_Strategy_v1_17e-04.w3g
URL = http://hlc.frankenmafia.info/replays-2/example.php
Error =
Warning: unpack(): Type C: not enough input, need 1, have 0 in /www/hlc.frankenmafia.info/replays-2/w3g-julas.php on line 383
Warning: unpack(): Type C: not enough input, need 1, have 0 in /www/hlc.frankenmafia.info/replays-2/w3g-julas.php on line 383
Warning: unpack(): Type C: not enough input, need 1, have 0 in /www/hlc.frankenmafia.info/replays-2/w3g-julas.php on line 383
... endless loop

------

But W3GMasters can parse this Replays without any Problem.  All tested Replays (5 Replays) show me Error's ??? Undecided

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



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #10 - Jun 23rd, 2004 at 2:56pm
Post Tools
Quote:
But W3GMasters can parse this Replays without any Problem.  All tested Replays (5 Replays) show me Error's ??? Undecided


W3GMaster 1.9.9.105 says "Stream read error." when I try to parse the first replay. However, Warcraft plays the replay fine... Weird. What program are you using for uploading replays? Are you sure you send them in binary, not ASCII mode?
  
Back to top
WWWICQ  
IP Logged
 
Ruffy
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jun 14th, 2004
Re: PHP Warcraft III Replay Parser
Reply #11 - Jun 23rd, 2004 at 5:13pm
Post Tools
Quote:


W3GMaster 1.9.9.105 says "Stream read error." when I try to parse the first replay. However, Warcraft plays the replay fine... Weird. What program are you using for uploading replays? Are you sure you send them in binary, not ASCII mode?


I upload the first time with normally FTP, second time with scp (prot ssh) in binary mode ... but i try the same with only copy & paste on my local network (apache server). Same Problems.

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



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #12 - Jun 23rd, 2004 at 7:22pm
Post Tools
Quote:
I upload the first time with normally FTP, second time with scp (prot ssh) in binary mode ... but i try the same with only copy & paste on my local network (apache server). Same Problems.


What version of W3GMaster do you use? As I said the version I use (AFAIK the most recent) doesn't parse it too. So maybe there are some new undiscovered actions...
  
Back to top
WWWICQ  
IP Logged
 
Ruffy
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Jun 14th, 2004
Re: PHP Warcraft III Replay Parser
Reply #13 - Jun 23rd, 2004 at 7:45pm
Post Tools
Sorry,

It was not my WG3Masters, it was from a friend, he said he can parse the replays with it. I think he dont lie.  Smiley

Can u parse the other (big) Replay? It brings a other Error, please see the error'msg.

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



Posts: 84
Joined: May 11th, 2004
Re: PHP Warcraft III Replay Parser
Reply #14 - Jun 25th, 2004 at 12:36pm
Post Tools
Quote:
Sorry,

It was not my WG3Masters, it was from a friend, he said he can parse the replays with it. I think he dont lie.  Smiley

As I said it doesn't on my computer...

Quote:
Can u parse the other (big) Replay? It brings a other Error, please see the error'msg.

It's UMS, isnt it?. And I never tested my script with those... I just never thought anybody saves replays from UMS. It doesn't parse in my script because it contains some trigger actions that are present only in UMS games.
W3GMaster parses it because, as I noticed, it has some algorithm that can just evade actions it doesn't recognise. Soar, if you read this, how did you solve that problem?
  
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 7
Topic Tools