Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Custom Player Stats v1.4B121


Post New Thread Reply   
 
Thread Tools Display Modes
muukis
Veteran Member
Join Date: Apr 2009
Old 11-24-2014 , 05:59   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1691

My PHP skills aren't the best and that's why there still are some basic cleaning work to do in the code. You can try nullifying the NOTICE messages from your PHP.ini? by adding this line to common.php (not sure if this helps):

// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);

Google up "php error reporting notice" etc for more info. This has been cleared up a few times before in this thread, but I'm sure it's easier to dig it up using google?

__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.

Last edited by muukis; 11-24-2014 at 06:04.
muukis is offline
EEdover
Junior Member
Join Date: Aug 2011
Old 11-27-2014 , 14:42   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1692

Quote:
Originally Posted by muukis View Post
My PHP skills aren't the best and that's why there still are some basic cleaning work to do in the code. You can try nullifying the NOTICE messages from your PHP.ini? by adding this line to common.php (not sure if this helps):

// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);

Google up "php error reporting notice" etc for more info. This has been cleared up a few times before in this thread, but I'm sure it's easier to dig it up using google?

Thank You muukis,

Seems that this line solved the issue. It does not fill error log anymore.

Thanks again.
EEdover is offline
Evkval
Junior Member
Join Date: Jul 2010
Location: Russia
Old 01-04-2015 , 15:59   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1693

http://l4dzone.ru/stats
Evkval is offline
mcsadler
Junior Member
Join Date: Jan 2015
Old 01-12-2015 , 17:02   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1694

Hi there,

I am hoping someone can help me I'm a bit stuck just now

The webserver side of things seems to be working fine and the website shows the correct pages with no errors. However the dedicated server game doesnt seem to update to the mySQL database. When I chedck the web page it still shows 0 players online and no stats appear to be recorded.

I have edited the databases.cfg file and it looks as follows

"Databases"
{
"driver_default" "mysql"

//when specifying "host", you may use an IP address, a hostname, or a socket file path

"default"
{
"driver" "mysql" (I have tried this as "default")
"host" "127.0.0.1" (I have tried this as localhost)
"database" "l4dstats"
"user" "root" (I did have "l4d")
"pass" "" (This was "l4d2"
//"timeout" "0" (I have tried this uncommented)
"port" "3306" (I have tried this as "0")

There used to be the sqlite database bit at the bottom but I have tried with that included and excluded as I am not using that so it should not be necessary.

I have added the smx plugin to the plugins folder as the instructions say and also added the txt file to the gamedata correct location but I get nothing at all when updating the webpage. Any ideas what is causing the glitch between the game server and the database?

Thanks for any help that you can give me on this

EDIT: The sm_rankinfo command also does not work

Last edited by mcsadler; 01-12-2015 at 17:25. Reason: additional info
mcsadler is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 01-13-2015 , 02:29   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1695

Quote:
Originally Posted by mcsadler View Post
...
Check the game plugins list (from the client game console). If I remember it right, it was something like "sm plugins list" etc? Make sure the plugin is listed. If not, you have not installed the plugin correctly. Check the server logs for errors also. If you have configured the plugin incorrectly, the plugin fails to load and you'll have an error or a bunch of errors in your server log.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
mcsadler
Junior Member
Join Date: Jan 2015
Old 01-13-2015 , 13:01   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1696

Hi thanks for the reply,

This is what i get for the loaded plugins

] sm plugins
"Admin File Reader" (1.6.3) by AlliedModders LLC
"Admin Help" (1.6.3) by AlliedModders LLC
"Admin Menu" (1.6.3) by AlliedModders LLC
"Anti-Flood" (1.6.3) by AlliedModders LLC
"Basic Ban Commands" (1.6.3) by AlliedModders LLC
"Basic Chat" (1.6.3) by AlliedModders LLC
"Basic Comm Control" (1.6.3) by AlliedModders LLC
"Basic Commands" (1.6.3) by AlliedModders LLC
"Basic Info Triggers" (1.6.3) by AlliedModders LLC
"Basic Votes" (1.6.3) by AlliedModders LLC
To see more, type "sm plugins 11"
] sm plugins 11
"Fun Commands" (1.6.3) by AlliedModders LLC
"Fun Votes" (1.6.3) by AlliedModders LLC
"L4D Players" (0.0.1) by NiCo-op
"Player Commands" (1.6.3) by AlliedModders LLC
"Reserved Slots" (1.6.3) by AlliedModders LLC
"Sound Commands" (1.6.3) by AlliedModders LLC

It doesnt look too me like its loaded the plugin at all.

Just to confirm I have the l4d_stats.txt file here
\addons\sourcemod\gamedata

and I have l4d_stats.smx here
\addons\sourcemod\plugins

What have I missed?

The only things I can see on the server consile are lines now stating couldnt find entities named fire_ballroom which point to template fire_ballroom or pretty similar I can add the whole line if needed but nothing erroring that looks like anything to do with stats to me.

I'm guessing I have missed something but not sure what.

Thanks again for the quick reply.

EDIT: Ok done a bit more checking on some stuff. Do I have to do anything with the l4d_stats.sp file? I dont remember doing anything with that file?

EDIT 2: I am sure metamod and source mod work here is what I get when checking the versions in the console and I can edit the admin menu and have set me and another guy as admins on the server


] meta version
Metamod:Source version 1.8.3
Compiled on: Jul 18 2010
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/
] sm version
SourceMod 1.6.3, by AlliedModders LLC
To see running plugins, type "sm plugins"
To see credits, type "sm credits"
Visit http://www.sourcemod.net/

EDIT 3: Ok I have maybe figured out a little more I was getting some cvars errors on the log when the server started up that I had not noticed. I have got rid of these by editing the starup paramaters of the shortcut of the server it was set to "+exec server.cfg" I have now removed the +exec from there and I am getting some errors I found this info at the following link

https://forums.alliedmods.net/showthread.php?t=142852

Which suggests that it was loading that too early on before sourcemod was loaded this has now removed these errors (I also noticed that the sm_cvar command did not work from the console).

I was also reading another post https://forums.alliedmods.net/showth...=69092?t=69092 which mentions loading the plugin in the server.cfg file by using sm_<plugin name>_enabled

However back to what I have now found I am now getting errors advising of the following

[sm] Detected parse error(s) in file "C:\l4d2\addons\sourcemod\configs\databases.c fg"
[sm] Line 15:Line contained too may invalid tokens
[sm] Unable to load extension "clientprefs.ext": Could not find any suitable database configs
[sm] Unable to load plugin "clientprefs.smx": Required extension "Client Preferences" file <"clientprefs.ext"> not running
[sm] Unable to load plugin "l4d_stats.smx": Required extenison "Client Preferences" file <"clientprefs.ext"> not running

Hopefully this should give you a bit more info as to why this is not loading

Last edited by mcsadler; 01-13-2015 at 15:15. Reason: More Updates
mcsadler is offline
mcsadler
Junior Member
Join Date: Jan 2015
Old 01-13-2015 , 15:41   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1697

Okay new post as the last one was getting long and I have made more progress.

I have fixed that sm errors in the log all my cvar cpommands seem to be working now and if I check the plugins list I get the following.

] sm plugins
"Admin File Reader" (1.6.3) by AlliedModders LLC
"Admin Help" (1.6.3) by AlliedModders LLC
"Admin Menu" (1.6.3) by AlliedModders LLC
"Anti-Flood" (1.6.3) by AlliedModders LLC
"Basic Ban Commands" (1.6.3) by AlliedModders LLC
"Basic Chat" (1.6.3) by AlliedModders LLC
"Basic Comm Control" (1.6.3) by AlliedModders LLC
"Basic Commands" (1.6.3) by AlliedModders LLC
"Basic Info Triggers" (1.6.3) by AlliedModders LLC
"Basic Votes" (1.6.3) by AlliedModders LLC
To see more, type "sm plugins 11"
] sm plugins 11
"Client Preferences" (1.6.3) by AlliedModders LLC
"Fun Commands" (1.6.3) by AlliedModders LLC
"Fun Votes" (1.6.3) by AlliedModders LLC
"L4D Players" (0.0.1) by NiCo-op
"Player Commands" (1.6.3) by AlliedModders LLC
"Reserved Slots" (1.6.3) by AlliedModders LLC
"Sound Commands" (1.6.3) by AlliedModders LLC

Stats still dont work but I have removed all the errors. The issue with the previous error was due to all my messing around I had left a " out of the file basically on the port number.

So now I'm kinda back to square one and its not working but I have no cvar errors so there is progress at least.
mcsadler is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 01-14-2015 , 02:06   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1698

Quote:
Originally Posted by mcsadler View Post
...
Try loading the plugin from console. It was something like this: sm plugins load l4d_stats.smx. This should give you some clue (error message) what is wrong.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
mcsadler
Junior Member
Join Date: Jan 2015
Old 01-14-2015 , 12:28   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1699

That doesnt seem to do anything for me it just shows the loaded plugins like so


] sm plugins load l4d_stats.smx
"Admin File Reader" (1.6.3) by AlliedModders LLC
"Admin Help" (1.6.3) by AlliedModders LLC
"Admin Menu" (1.6.3) by AlliedModders LLC
"Anti-Flood" (1.6.3) by AlliedModders LLC
"Basic Ban Commands" (1.6.3) by AlliedModders LLC
"Basic Chat" (1.6.3) by AlliedModders LLC
"Basic Comm Control" (1.6.3) by AlliedModders LLC
"Basic Commands" (1.6.3) by AlliedModders LLC
"Basic Info Triggers" (1.6.3) by AlliedModders LLC
"Basic Votes" (1.6.3) by AlliedModders LLC
To see more, type "sm plugins 11"

I tried a few variations on it but nothing seems to work

I even tried reload instead of load and it does the same thing

EDIT: I even tried adding that into the server.cfg file no errors just doesnt seem to load. No errors in any logs for it that I can see. sm plugins doesnt show it still either

EDIT 2: ok little more info I had a few plugins in the disabled folder I have moved these out of the disabled folder and put them in and they load fine and I can see them when I run the sm plugins command but l4d_stats doesnt work. It is designed to run on l4d2 correct and I am not being totally thick and grabbed the wrong one yea?

The plugins disabled by default are

admin-sql-prefetch.smx
admin-sql-threaded.smx
mapchooser.smx
nominations.smx
randomcycle.smx
rockthevote.smx
sql-admin-manager.smx

Didnt make any difference when these were in the plugin still wouldnt load

Last edited by mcsadler; 01-14-2015 at 12:44. Reason: Update
mcsadler is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 01-14-2015 , 12:33   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1700

Quote:
Originally Posted by mcsadler View Post
...
This is what happens to me:
Code:
sm plugins load l4d_stats
[SM] Loaded plugin l4d_stats.smx successfully.
Then this:
Code:
sm plugins list
[SM] Listing 18 plugins:
  01 "Admin File Reader" (1.6.3) by AlliedModders LLC
  02 "Admin Help" (1.6.3) by AlliedModders LLC
  03 "Admin Menu" (1.6.3) by AlliedModders LLC
  04 "Anti-Flood" (1.6.3) by AlliedModders LLC
  05 "Basic Ban Commands" (1.6.3) by AlliedModders LLC
  06 "Basic Chat" (1.6.3) by AlliedModders LLC
  07 "Basic Comm Control" (1.6.3) by AlliedModders LLC
  08 "Basic Commands" (1.6.3) by AlliedModders LLC
  09 "Basic Info Triggers" (1.6.3) by AlliedModders LLC
  10 "Basic Votes" (1.6.3) by AlliedModders LLC
  11 "Client Preferences" (1.6.3) by AlliedModders LLC
  12 "Fun Commands" (1.6.3) by AlliedModders LLC
  13 "Fun Votes" (1.6.3) by AlliedModders LLC
  14 Disabled: "Nextmap" (1.6.3) by AlliedModders LLC
  15 "Player Commands" (1.6.3) by AlliedModders LLC
  16 "Reserved Slots" (1.6.3) by AlliedModders LLC
  17 "Sound Commands" (1.6.3) by AlliedModders LLC
  18 "Custom Player Stats" (1.4B121) by Mikko Andersson (muukis)
Just doing a reinstall of the server, after one year of silence.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
Reply



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 20:58.


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