Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Custom Player Stats v1.3B53 (MOVED)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
muukis
Veteran Member
Join Date: Apr 2009
Old 12-15-2009 , 15:55   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#171

Quote:
Originally Posted by tom_joad View Post
Sorry to bother you, I have l4d1 and l4d2 running on the same linux server using 2 different users. I have installed ranking in both but only the l4d1 works. I have 2 web dirs, 2 different db, but when I start l4d2 it doesn't even create the l4d_stats.cfg file.
I use sourcemod-1.3.0-hg2871 and mmsource-1.8.0-hg689. How can I test if there is something wrong?

Thank you
Lelle.
Check your error logs. That's the first step I'd propose.
Quote:
Originally Posted by dacomb View Post
I may have missed the answer to this question in reading through this post but I'm curious if this can be installed over the top of an existing msleeper stats database and website or do I need to set up a fresh install for it?

Thanks!
You can install this over the original, msleeper version of the stats.
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-15-2009 , 15:57   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#172

One more update to fix some bad coding. Sorry for the trouble. Uploaded to the first post.

The new friendly fire feature was giving me some hard time.
muukis is offline
harmgsn
Member
Join Date: Nov 2009
Old 12-15-2009 , 15:58   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#173

Quote:
Originally Posted by dacomb View Post
I may have missed the answer to this question in reading through this post but I'm curious if this can be installed over the top of an existing msleeper stats database and website or do I need to set up a fresh install for it?

Thanks!

Yes, it can be installed on top of. Just download the webstats file from the first post of this thread and run the 'updatetable.php' script. DO NOT RUN THE CREATE TABLE.

This will update your database to be compatible with this plugin.
harmgsn is offline
tom_joad
Junior Member
Join Date: Dec 2009
Old 12-15-2009 , 17:33   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#174

Quote:
Originally Posted by muukis View Post
Check your error logs. That's the first step I'd propose.
ok but my left4dead2/left4dead2/addons/sourcemod/logs directory is empty and during the server startup there is no error message about the stats (that should be marked with [SM]).

Lelle.
tom_joad is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-16-2009 , 01:51   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#175

Quote:
Originally Posted by tom_joad View Post
ok but my left4dead2/left4dead2/addons/sourcemod/logs directory is empty and during the server startup there is no error message about the stats (that should be marked with [SM]).

Lelle.
Are you sure you have SourceMod running? (type "meta" and/or "sm" to server console to find out)

I had problems getting MetaMod up in my L4D2 server. I had to go the gameinfo.txt way. And sometimes the game overwrites the file and leaves the Meta out of the run.
muukis is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 12-16-2009 , 02:15   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#176

Quote:
Originally Posted by harmgsn View Post
Yes, it can be installed on top of. Just download the webstats file from the first post of this thread and run the 'updatetable.php' script. DO NOT RUN THE CREATE TABLE.

This will update your database to be compatible with this plugin.
If I don't run the createtable.php script will the L4D2 maps tables still be created?
dacomb is offline
tom_joad
Junior Member
Join Date: Dec 2009
Old 12-16-2009 , 03:01   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#177

Quote:
Originally Posted by muukis View Post
Are you sure you have SourceMod running? (type "meta" and/or "sm" to server console to find out)

I had problems getting MetaMod up in my L4D2 server. I had to go the gameinfo.txt way. And sometimes the game overwrites the file and leaves the Meta out of the run.
You were right! Metamod won't load, I re-generated metamod.vdf and now it loads. Now the file l4d_stats.cfg has been created! This evening I will try to play to see if I can get stats.

In any way than you for collaboration.

Lelle.
tom_joad is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-16-2009 , 03:58   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#178

Quote:
Originally Posted by dacomb View Post
If I don't run the createtable.php script will the L4D2 maps tables still be created?
You will have to run one or the other scripts for the plugin to work:

createtable.php is for completely new databases (no previous version of Player Stats installed.)
updatetable.php is for updating or patching previous (old) versions of Player Stats databases.

Choose wisely, my young apprentice...

EDIT: Oh, in fact you can run them both on any stats DB and as many times as you want - they won't break your current data. Neither will they create or modify anything that is already in there. Createtable.php will stop if it finds your tables already created and updatetable.php won't do much of anything if was already ran.

Last edited by muukis; 12-16-2009 at 08:24.
muukis is offline
DaxMan
Junior Member
Join Date: Oct 2007
Old 12-16-2009 , 13:31   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#179

Hi,
Just a small problem. Im using my old databas from L4D1, When there is a new player on the server (L4d2) he doesn't show up in the ranking list. I can see him in "players online" and i can also see his points and his playtime. It seems like only "old players" from L4D1 are ranked.
DaxMan is offline
Deac
New Member
Join Date: Dec 2009
Old 12-16-2009 , 13:32   Re: [L4D & L4D2] Player Stats (Co-op / Versus / Realism) v1.3B15
#180

Hi there, I've made a minor aesthetic change to the way the formatage PHP function works and figured I'd share it, instead of returning a value like "8.36 hours" it returns a full string like "2 days 20 hours 42 mins".

This unfortunately had the side effect or messing with the tables with the text often wrapping onto two lines, I overcame that by widening a couple of fields in the css file.

In common.php:
PHP Code:
function formatage($date) {
    
$nametable = array(" sec"" min"" hour"" day"" wk"" month"" year");
    
$agetable = array("60""60""24""7""4""12""10");
    
$ndx 0;

    while (
$date $agetable[$ndx]) {
        if (
$ndx != 0) {
            if (
$date $agetable[$ndx] != 1) {
                
$returnvalue $date $agetable[$ndx] . $nametable[$ndx] . "s " $returnvalue;
            } else {
                
$returnvalue $date $agetable[$ndx] . $nametable[$ndx] . " " $returnvalue;
            }
        }
        
$date $date $agetable[$ndx];
        
$ndx++;
        
next($agetable);
    }
    if (
$date $agetable[$ndx] != 1) {
        
$returnvalue $date $agetable[$ndx] . $nametable[$ndx] . "s " $returnvalue;
    } else {
        
$returnvalue $date $agetable[$ndx] . $nametable[$ndx] . " " $returnvalue;
    }

    return 
$returnvalue;

In style.css:
Code:
#page {
    width: 1024px; /* was 875 */
    margin: 0 auto;
}


#content {
    float: left;
    width: 750px; /* Was 600  */
}
Not sure this is the best way to go about it but it works for me so far

You can see an example at http://l4dstats.rsbox.co.uk/

Also I put together a population file for the UK, the data for it was bloody hard to find and I had to change the population_minkills to a far lower value in config.php (200) because... well a value of 3000 cut out over 3/4s of the data
Attached Files
File Type: zip formatage changes.zip (3.8 KB, 85 views)
File Type: zip UK Population Changes.zip (84.4 KB, 79 views)
Deac is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode