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 ... 7
Send Topic Print
PHP Warcraft III Replay Parser (Read 82541 times)
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84

PHP Warcraft III Replay Parser
May 15th, 2004, 12:48am
 
The newest version of the parser is available at http://w3rep.sourceforge.net/
Back to top
 
« Last Edit: Jan 6th, 2008, 1:09pm by Julas.wtfwrongpass »  
WWW 64994211   IP Logged
Ruffy
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 5

Re: PHP Warcraft III Replay Parser
Reply #1 - Jun 14th, 2004, 10:33pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #2 - Jun 15th, 2004, 12:38pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #3 - Jun 15th, 2004, 2:47pm
 
[quote author=Ruffy  link=1084574897/0#1 date=1087248809][...]
replays is not an array, we've got trouble.
Warning: Invalid argument supplied for foreach() in /www/path/replays/example.php on line 97
[...] [/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?
Back to top
 
 
WWW 64994211   IP Logged
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84

Re: PHP Warcraft III Replay Parser
Reply #4 - Jun 15th, 2004, 2:49pm
 
[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

Have u a solution ? [/quote]

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
 
 
WWW 64994211   IP Logged
Oui-Oui
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 1

Re: PHP Warcraft III Replay Parser
Reply #5 - Jun 17th, 2004, 11:38am
 
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

Re: PHP Warcraft III Replay Parser
Reply #6 - Jun 17th, 2004, 2:49pm
 
[quote author=Oui-Oui  link=1084574897/0#5 date=1087468698]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 ? [/quote]

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

I love YaBB 1G -
SP1!

Posts: 5

Re: PHP Warcraft III Replay Parser
Reply #7 - Jun 22nd, 2004, 10:03pm
 
[quote author=Julas.wtfwrongpass  link=1084574897/0#3 date=1087307227]

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? [/quote]

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

Re: PHP Warcraft III Replay Parser
Reply #8 - Jun 22nd, 2004, 11:42pm
 
[quote author=Ruffy  link=1084574897/0#7 date=1087938227]
I dont do anything with the code, only unpack the .zip file, change the owner/group permissions and that is it.
[/quote]

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

I love YaBB 1G -
SP1!

Posts: 5

Re: PHP Warcraft III Replay Parser
Reply #9 - Jun 23rd, 2004, 12:49am
 
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

Re: PHP Warcraft III Replay Parser
Reply #10 - Jun 23rd, 2004, 3:56pm
 
[quote author=Ruffy  link=1084574897/0#9 date=1087948161]But W3GMasters can parse this Replays without any Problem.  All tested Replays (5 Replays) show me Error's ??? Undecided [/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?
Back to top
 
 
WWW 64994211   IP Logged
Ruffy
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 5

Re: PHP Warcraft III Replay Parser
Reply #11 - Jun 23rd, 2004, 6:13pm
 
[quote author=Julas.wtfwrongpass  link=1084574897/0#10 date=1088002589]

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? [/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.

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



Posts: 84

Re: PHP Warcraft III Replay Parser
Reply #12 - Jun 23rd, 2004, 8:22pm
 
[quote author=Ruffy  link=1084574897/0#11 date=1088010809]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. [/quote]

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
 
 
WWW 64994211   IP Logged
Ruffy
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 5

Re: PHP Warcraft III Replay Parser
Reply #13 - Jun 23rd, 2004, 8:45pm
 
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

Re: PHP Warcraft III Replay Parser
Reply #14 - Jun 25th, 2004, 1:36pm
 
[quote author=Ruffy  link=1084574897/0#13 date=1088019939]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 [/quote]
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
 
 
WWW 64994211   IP Logged
Pages: 1 2 3 ... 7
Send Topic Print