Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
muukis
Veteran Member
Join Date: Apr 2009
Old 01-29-2010 , 03:33   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #101

Quote:
Originally Posted by iNFiNiTeX View Post
I don't understand why you would use IP for LAN. LAN IP's are not static and are easily shared. Usernames on the otherhand are much more unique in a small LAN setting, and will never be shared.

Code:
GetClientRankAuthString(client, String:auth[], maxlength)
{
    GetClientAuthString(client, auth, maxlength);

    if (StrEqual(auth, "STEAM_ID_LAN", false))
        GetClientIP(client, auth, maxlength);
}
Is this the only code which forces the plugin to use IP tracking if sv_lan 1 is set? In which case, would changing "GetClientIP" to "GetClientName" force it to use nameid instead?
That's the spot and yes, changing those values would do the trick.

The names can be troublesome and for that reason I would not use it. In a small LAN setting it should not be hard to configure static IPs, or set the DHCP IP lease time so long that it does not change during the LAN event.
__________________
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; 01-29-2010 at 03:41.
muukis is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 01-29-2010 , 03:37   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #102

Quote:
Originally Posted by eargosedown View Post
How do I update the l4d_stats.cfg with the new cvars?
There's only one (#54) new CVAR from the previous major release. You have to add it somewhere in l4d_stats.cfg if you want to modify the default value. If you think the default value is suitable for you; you don't need to add it in the configs.
__________________
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
thevisad
Junior Member
Join Date: Jan 2010
Old 01-29-2010 , 10:39   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #103

I see a few people posting that they ahve multiple servers connected. I have 1 Left 4 Dead server and 2 left for dead servers (forked via linux) the Left 4 Dead 2 servers only show up with 1 server.
thevisad is offline
banz
Member
Join Date: Jan 2010
Old 01-29-2010 , 12:13   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #104

Hi, i am playing with friends over Lan Network and changed GetClientAuthString, to get Name.
But now there are bots in my stats list. I dont want them to be ranked. What do I have to change, so they are not listed anymore?

I think they are identified here, right?

Code:
IsClientBot(client)
{
	if (client == 0 || !IsClientConnected(client))
		return true;

	decl String:SteamID[MAX_LINE_WIDTH];
	GetClientRankAuthString(client, SteamID, sizeof(SteamID));

	if (StrEqual(SteamID, "BOT", false))
		return true;

	return false;
}

Thanks a lot!

Last edited by banz; 01-29-2010 at 12:47.
banz is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 01-29-2010 , 13:04   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #105

Quote:
Originally Posted by muukis View Post
Sorry, I don't know what's wrong there. Maybe someone with more knowledge on SourcePawn?
Well phooey... I did some work to see if it was a server issue...

I backed up all my configs and such and had gameservers.com (my host) do a Full Wipe and reinstall of L4D2.

Then I reinstalled Metamod and Sourcemod and one by one reinstalled plugins and restarting and watching the console log.

It wasn't until I installed this plugin that the problem occurred.

Although, I don't get these messages on my 3 other servers running the same plugin.

I can only think that srsmod and l4d2scores + l4dstats are somehow not playing nicely together?

Thankfully the server works... I was just trying to figure out why it has such a complex startup with buffer overflow warnings.

Sadly I don't have direct access to the box so it's really hard to monitor what's going on.
dacomb is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 01-29-2010 , 14:12   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #106

Quote:
Originally Posted by dacomb View Post
...
Now that I think about it, your problem may be caused by the same named functions the two plugins have? I can try what happens if I rename these methods.
__________________
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
InFaility Ward
Member
Join Date: Jan 2010
Old 01-29-2010 , 18:37   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #107

does this only work with steam usernames or also IP adresses, player nicks?
__________________
InFaility Ward is offline
banz
Member
Join Date: Jan 2010
Old 01-29-2010 , 18:43   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #108

Quote:
Originally Posted by InFaility Ward View Post
does this only work with steam usernames or also IP adresses, player nicks?
Does work with ip and player nicks, but with the kown problem that both are not unique.
MAC-address identification would be nice, but i think its impossible.
banz is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 01-30-2010 , 00:20   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #109

Quote:
Originally Posted by muukis View Post
Now that I think about it, your problem may be caused by the same named functions the two plugins have? I can try what happens if I rename these methods.

Awesome man... If you want to just post a quite updated plugin and not a full release I'll load it up and see if it fixed it...
dacomb is offline
kiwi87
Member
Join Date: Sep 2009
Old 01-30-2010 , 03:22   Re: [L4D & L4D2] Custom Player Stats v1.4B61
Reply With Quote #110

This plugin is awesome but just a suggestion cos i set announce to all chat. It would be nice if survivor's names are blue while infected's are red
kiwi87 is offline
Reply


Thread Tools
Display Modes

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 12:13.


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