AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Custom Player Stats v1.4B121 (https://forums.alliedmods.net/showthread.php?t=115965)

muukis 01-29-2010 03:33

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
Quote:

Originally Posted by iNFiNiTeX (Post 1070976)
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.

muukis 01-29-2010 03:37

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
Quote:

Originally Posted by eargosedown (Post 1070962)
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.

thevisad 01-29-2010 10:39

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
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.

banz 01-29-2010 12:13

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
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!

dacomb 01-29-2010 13:04

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
Quote:

Originally Posted by muukis (Post 1071389)
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.

muukis 01-29-2010 14:12

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
Quote:

Originally Posted by dacomb (Post 1071776)
...

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.

InFaility Ward 01-29-2010 18:37

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
does this only work with steam usernames or also IP adresses, player nicks?

banz 01-29-2010 18:43

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
Quote:

Originally Posted by InFaility Ward (Post 1072202)
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.

dacomb 01-30-2010 00:20

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
Quote:

Originally Posted by muukis (Post 1071845)
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...

kiwi87 01-30-2010 03:22

Re: [L4D & L4D2] Custom Player Stats v1.4B61
 
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 :)


All times are GMT -4. The time now is 09:25.

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