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



Posts: 84

Re: PHP Warcraft III Replay Parser
Reply #45 - Jun 20th, 2005, 10:40pm
 
[quote author=w3g_parser_rox  link=1084574897/30#42 date=1119261791]you're right and I'm wrong sorry to have offended you, obviously this is a great contribution out of your own time. I have a quick question though, do you get upset if you see this script on a random website with no copyright or mention of you? I know I would >< [/quote]

It doesn't upset me that much. But it's simply stupid to not tell others about a thing that you find useful, isn't it?
Back to top
 
 
WWW 64994211   IP Logged
Gamer_man
Peon
*
Offline

http://nwco.fre e.fr

Posts: 2

Gender: male
Re: PHP Warcraft III Replay Parser
Reply #46 - Jun 21st, 2005, 12:10am
 
Ho, thx, i didn't knew this function (error_reporting()).
Next to a try, i saw that we can use it several times.

Thx you again, and nice job for your class, it will be very usefull to me Smiley
Back to top
 
 
WWW   IP Logged
w3g_parser_rox
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 7

Re: PHP Warcraft III Replay Parser
Reply #47 - Jul 5th, 2005, 6:43pm
 
Hi again I have a quick question,
While I was stumbling across the net looking for another script I came across this page

http://warcraft.kliegman.com/

Is this also you?
Back to top
 
 
  IP Logged
Nagger
Grunt
**
Offline



Posts: 50

Re: PHP Warcraft III Replay Parser
Reply #48 - Jul 5th, 2005, 8:25pm
 
warcraft.kliegman.com is the mother of all war3 replay analysis  Cheesy

kliegs was the first one who starts with analysing and documenting the replay format. His work was the base for blue's and my further format descriptions and also for all the replay tools - like julas' script - out there.
Back to top
 
 
  IP Logged
w3g_parser_rox
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 7

Re: PHP Warcraft III Replay Parser
Reply #49 - Jul 8th, 2005, 4:36am
 
oooooo k then ^^
Back to top
 
 
  IP Logged
_seym.
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 4

Re: PHP Warcraft III Replay Parser
Reply #50 - Sep 6th, 2005, 4:11pm
 
hi all!
ive got some problems running the replay parser on my webserver. does php safe mode have to be turned off?

mfg,
_seym.
Back to top
 
 
  IP Logged
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84

Re: PHP Warcraft III Replay Parser
Reply #51 - Sep 6th, 2005, 7:41pm
 
No, it should work fine even with Safe mode on.
Back to top
 
 
WWW 64994211   IP Logged
_seym.
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 4

Re: PHP Warcraft III Replay Parser
Reply #52 - Sep 7th, 2005, 12:10am
 
bloed. then i dunno what to do ^^
running the script locally it works but trying to run it on the webserver it doesnt. well it does but it does not create the database files because (i think ^^) as the parseheader()-function read the first 48bytes it gets some really weird data.
e.g. ["header_v"]=> int(16777216)
...
can this be caused by a php misconfiguration?

mfg,
_seym.
Back to top
 
 
  IP Logged
tiagojco
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 2

Re: PHP Warcraft III Replay Parser
Reply #53 - Sep 7th, 2005, 10:54am
 
hi.
i tried to acces http://toya.net.pl/~julas/w3g/, but it show an error message when i try, something like 'page not found'. am i the only who get this message when trying to browse such page ?! (probally a problem with my ISP ?)

Furthermore, i took a look ( Roll Eyes) in w3g_format.txt that lies in warcraft.kliegman.com CVS repository, and got a question. How do i decompress in ZLIB inflate using PHP5 ? i tried a lot today with gzinflate($str), where $str is a substr of a usual replay (CG GAME @ BNET) turned into a string, from position 0x4C (the start of the compressed data block) with a lenght value equal to the word @ 0x44 (e.g. substr($replay,0x4C,0x**), but i always get a null returned value.

sorry my bad english.

i hope i let myself clear  Undecided

p.s.: U did a nice thing with this parser. gj.  8)
p.s.2: Really need to take a look at ur source code. Can u mail me them ?
Back to top
 
 
  IP Logged
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84

Re: PHP Warcraft III Replay Parser
Reply #54 - Sep 7th, 2005, 2:36pm
 
The page works fine, it must be your ISP.
A replay file is divided into more than a single compressed block and you have to uncompress them separately, one by one.
Back to top
 
 
WWW 64994211   IP Logged
_seym.
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 4

Re: PHP Warcraft III Replay Parser
Reply #55 - Sep 7th, 2005, 3:24pm
 
ok. ty, then.
if anyone encounteres the same problem and knows how to solve it or even did already solve it, please notify me! i'd really like to run this great script on my website.
btw.: i do know that the replay is split into compressed and uncompressed data. to problem is the header['header_size'] field which contains the complete filesize and makes the file position indicator go --> eof. so theres no data left to gzinflate();

as mentioned above, it would be great if anyone was able to help me ^^

mfg,
_seym.
Back to top
 
 
  IP Logged
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84

Re: PHP Warcraft III Replay Parser
Reply #56 - Sep 7th, 2005, 5:26pm
 
Erm... my last answer was for tiagojco Wink I don't know why you get different values on different servers and unforunately I don't have time now to investigate.
Back to top
 
 
WWW 64994211   IP Logged
_seym.
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 4

Re: PHP Warcraft III Replay Parser
Reply #57 - Sep 7th, 2005, 5:43pm
 
Embarrassed
omg... sry...
...
whatever. okay. i'll try to solve it on my own. i'll tell u if i find a fix or something else.
ty anyway.

_seym.
Back to top
 
 
  IP Logged
tiagojco
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 2

Re: PHP Warcraft III Replay Parser
Reply #58 - Sep 7th, 2005, 7:17pm
 
since i cant browse ur page, can u mail me the files i would have access to ?! it would be of great help.

thnx
Back to top
 
 
  IP Logged
Hesiode
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 3

Re: PHP Warcraft III Replay Parser
Reply #59 - Sep 8th, 2005, 12:49am
 
Hi,

How add some word to chat ?

I know it's impossible with your script, but have you a idea for make that ?

Many thanks.
Back to top
 
 
  IP Logged
Pages: 1 2 3 4 5 6 7
Send Topic Print