Race, APM, Color, Team not showing up

38 views
Skip to first unread message

HermesBird

unread,
Feb 26, 2012, 6:17:21 PM2/26/12
to phpsc2replay
So I got this to work, but the only things it show are Map, Time and
winner. Everything else is blank... What's going on?

HermesBird

unread,
Feb 26, 2012, 6:35:13 PM2/26/12
to phpsc2replay
I think the problem lies with ::: Fatal error: Call to undefined
method SC2Replay::parseDetailsValue()
in my upload_file.php
Suggestions on how I can fix this?

Kyle Fletcher

unread,
Feb 27, 2012, 6:16:48 AM2/27/12
to phpsc2replay
do you have the bzip2 module installed? That is probably why some of
the values are not showing up. Also i think the upload_file.php file
that is included in the zip is a bit out of date. There is no
function named parseDetailsValue() anymore. Have a look here
http://code.google.com/p/phpsc2replay/wiki/Overview on how to use the
parser.

HermesBird

unread,
Feb 27, 2012, 10:39:06 AM2/27/12
to phpsc2replay
Ok, so should I be using this with a certain CMS? Right now I'm just
running it bare-bones on my server. I downloaded http://bzip.org/ and
threw the files into the same folder as my sc2replay then used the
upload_file.php to upload a file but still get the same result. Is
there an install tutorial somewhere in the docs?

On Feb 27, 5:16 am, Kyle Fletcher <kfletche...@gmail.com> wrote:
> do you have the bzip2 module installed?  That is probably why some of
> the values are not showing up.  Also i think the upload_file.php file
> that is included in the zip is a bit out of date.  There is no
> function named parseDetailsValue() anymore.  Have a look herehttp://code.google.com/p/phpsc2replay/wiki/Overviewon how to use the

spa...@sc2buddy.net

unread,
Feb 27, 2012, 10:41:52 AM2/27/12
to phpsc2replay
lack of bzip2 won't be what's causing the error. if it is installed,
then the script is more efficient, but if it isn't it will still work,
just a bit messy.



On Feb 27, 3:39 pm, HermesBird <axel.mille...@gmail.com> wrote:
> Ok, so should I be using this with a certain CMS? Right now I'm just
> running it bare-bones on my server. I downloadedhttp://bzip.org/and
> threw the files into the same folder as my sc2replay then used the
> upload_file.php to upload a file but still get the same result. Is
> there an install tutorial somewhere in the docs?
>
> On Feb 27, 5:16 am, Kyle Fletcher <kfletche...@gmail.com> wrote:
>
>
>
>
>
>
>
> > do you have the bzip2 module installed?  That is probably why some of
> > the values are not showing up.  Also i think the upload_file.php file
> > that is included in the zip is a bit out of date.  There is no
> > function named parseDetailsValue() anymore.  Have a look herehttp://code.google.com/p/phpsc2replay/wiki/Overviewonhow to use the

Kyle Fletcher

unread,
Feb 27, 2012, 1:19:54 PM2/27/12
to phpsc2replay
Lack of bzip2 is tho most likely what is causing some values not to be
parsed at all tho. Happened to me once had to change hosts.

I'm assuming you are trying to use this locally, what OS are you on?
Most likely you will have to reinstall php with bzip2 support because
I don't think there is a way to enable it without doing so.

On Feb 27, 9:41 am, "spa...@sc2buddy.net" <spa...@sc2buddy.net> wrote:
> lack of bzip2 won't be what's causing the error.  if it is installed,
> then the script is more efficient, but if it isn't it will still work,
> just a bit messy.
>
> On Feb 27, 3:39 pm, HermesBird <axel.mille...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Ok, so should I be using this with a certain CMS? Right now I'm just
> > running it bare-bones on my server. I downloadedhttp://bzip.org/and
> > threw the files into the same folder as my sc2replay then used the
> > upload_file.php to upload a file but still get the same result. Is
> > there an install tutorial somewhere in the docs?
>
> > On Feb 27, 5:16 am, Kyle Fletcher <kfletche...@gmail.com> wrote:
>
> > > do you have the bzip2 module installed?  That is probably why some of
> > > the values are not showing up.  Also i think the upload_file.php file
> > > that is included in the zip is a bit out of date.  There is no
> > > function named parseDetailsValue() anymore.  Have a look herehttp://code.google.com/p/phpsc2replay/wiki/Overviewonhowto use the

HermesBird

unread,
Feb 27, 2012, 1:28:33 PM2/27/12
to phpsc2replay
Thanks for your help btw.

No I'm running it on a PHP server (5.2.17) and mysql (5.1.49) just
standard.

Though I haven't edited the original sc2replay files. I just
downloaded the sc2replay from the site here and uploaded it. Do I need
to change any setup settings? Is there any way to check if bzip2 is
installed like via phpinfo() or something similar?

On Feb 27, 12:19 pm, Kyle Fletcher <kfletche...@gmail.com> wrote:
> Lack of bzip2 is tho most likely what is causing some values not to be
> parsed at all tho.  Happened to me once had to change hosts.
>
> I'm assuming you are trying to use this locally, what OS are you on?
> Most likely you will have to reinstall php with bzip2 support because
> I don't think there is a way to enable it without doing so.
>
> On Feb 27, 9:41 am, "spa...@sc2buddy.net" <spa...@sc2buddy.net> wrote:
>
>
>
>
>
>
>
> > lack of bzip2 won't be what's causing the error.  if it is installed,
> > then the script is more efficient, but if it isn't it will still work,
> > just a bit messy.
>
> > On Feb 27, 3:39 pm, HermesBird <axel.mille...@gmail.com> wrote:
>
> > > Ok, so should I be using this with a certain CMS? Right now I'm just
> > > running it bare-bones on my server. I downloadedhttp://bzip.org/and
> > > threw the files into the same folder as my sc2replay then used the
> > > upload_file.php to upload a file but still get the same result. Is
> > > there an install tutorial somewhere in the docs?
>
> > > On Feb 27, 5:16 am, Kyle Fletcher <kfletche...@gmail.com> wrote:
>
> > > > do you have the bzip2 module installed?  That is probably why some of
> > > > the values are not showing up.  Also i think the upload_file.php file
> > > > that is included in the zip is a bit out of date.  There is no
> > > > function named parseDetailsValue() anymore.  Have a look herehttp://code.google.com/p/phpsc2replay/wiki/Overviewonhowtouse the

Kyle Fletcher

unread,
Feb 27, 2012, 1:31:33 PM2/27/12
to phpsc2replay
Oh yea, I was going to add that. It does tell you if bzip2 support is
available in phpinfo().

What OS are you on?

HermesBird

unread,
Feb 27, 2012, 1:37:04 PM2/27/12
to phpsc2replay
Yeah all I have is zlib. bzip2 doesn't even show up in my file to tell
me if it's disabled so I'm assuming it doesn't exist. So what are my
alternatives to this? Could I contact my hosting provider or maybe do
a manual install of bzip2?

Kyle Fletcher

unread,
Feb 27, 2012, 1:48:32 PM2/27/12
to phpsc2replay
Yea you will need to contact your host and get it installed. Not sure
if they will or not. I know I had godaddy back in the day and they
would not do it for me, but I think they offered command line access
to my server and you could technically do it that way. Though I did
not want to be bothered with the trouble and just changed hosts. Here
is the issues link. http://code.google.com/p/phpsc2replay/issues/detail?id=26

Here are some other threads about it.
http://groups.google.com/group/phpsc2replay/browse_thread/thread/8d1a510e967e3611
http://groups.google.com/group/phpsc2replay/browse_thread/thread/8f9999ccc1699625

Basically it comes down to blizzard using the bzip2 algorithm to
compress the files so you need it to decompress them.

HermesBird

unread,
Feb 27, 2012, 2:23:32 PM2/27/12
to phpsc2replay
Gotcha. Ok I can check with my host hopefully it won't be a huge deal.
As far as the erorr I get though:

Fatal error: Call to undefined SC2Replay::parseDetailsValue()

parseDeatilsValue() is called on line 185 of upload_file.php

Should I just remove the function call entirely or does bzip2 use this
in some way?

On Feb 27, 12:48 pm, Kyle Fletcher <kfletche...@gmail.com> wrote:
> Yea you will need to contact your host and get it installed.  Not sure
> if they will or not.  I know I had godaddy back in the day and they
> would not do it for me, but I think they offered command line access
> to my server and you could technically do it that way.  Though I did
> not want to be bothered with the trouble and just changed hosts.  Here
> is the issues link.http://code.google.com/p/phpsc2replay/issues/detail?id=26
>
> Here are some other threads about it.http://groups.google.com/group/phpsc2replay/browse_thread/thread/8d1a...http://groups.google.com/group/phpsc2replay/browse_thread/thread/8f99...

Kyle Fletcher

unread,
Feb 27, 2012, 2:52:22 PM2/27/12
to phpsc2replay
No bzip2 has nothing to do with that. parseDetailsValue() is a old
function that I think was used for debugging purposes, but not totally
sure. You can try and comment it out and see what happens. I don't
use the upload_file.php that is included in the zip. It's there to
use for debugging/example. Do something like this to use the parser
without having to use upload_file.php.

$mpqfile = new MPQFile('filename.SC2Replay');
$replay = $mpqfile->parseReplay();
$gametype = $a->getTeamSize();
echo $gametype;

The majority list of parseables are located here.
http://code.google.com/p/phpsc2replay/wiki/Parseables

On Feb 27, 1:23 pm, HermesBird <axel.mille...@gmail.com> wrote:
> Gotcha. Ok I can check with my host hopefully it won't be a huge deal.
> As far as the erorr I get though:
>
> Fatal error: Call to undefined SC2Replay::parseDetailsValue()
>
> parseDeatilsValue() is called on line 185 of upload_file.php
>
> Should I just remove the function call entirely or does bzip2 use this
> in some way?
>
> On Feb 27, 12:48 pm, Kyle Fletcher <kfletche...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Yea you will need to contact your host and get it installed.  Not sure
> > if they will or not.  I know I had godaddy back in the day and they
> > would not do it for me, but I think they offered command line access
> > to my server and you could technically do it that way.  Though I did
> > not want to be bothered with the trouble and just changed hosts.  Here
> > is the issues link.http://code.google.com/p/phpsc2replay/issues/detail?id=26
>
> > Here are some other threads about it.http://groups.google.com/group/phpsc2replay/browse_thread/thread/8d1a......
Reply all
Reply to author
Forward
0 new messages