Author Topic: Plugin: L4D2 Playing Stats - Much improved version/replacement of Survivor MVP  (Read 24030 times)

Tabun

  • *
  • Posts: 523
    • View Profile
updated playstats to 0.9.25 and skill detect to 0.9.8.
Some minor tweaks and bugfixes. Added zombieclass to OnSpecialShoved forward.


About the pause: I'll admit to manually adding that one in for the example. It seemed the appropriate thing to do, considering the average expected pause time in most games!

Tabun

  • *
  • Posts: 523
    • View Profile
updated playstats to 0.9.26 and skill detect to 0.9.9.
Getting there, I promise.
  • Now listens to lgofnoc starting matches, so the "sm_stats_resetnextmap" cvar will not be required in the future.
  • Now sanitizes clear-time to avoid (very rare) negative cleartimes (due to float round error?).

Tabun

  • *
  • Posts: 523
    • View Profile
updated skill detect to 0.9.12.
  • Added OnCarAlarmTriggered() forward - fires whenever a survivor somehow triggers a car alarm, with reason.
  • Added OnBunnyHopStreak() forward - fires whenever a survivors gets 2+ bunnyhops in a row, with max speed reached [needs testing].
  • Added forwards and CarAlarmTriggerReason values to the .inc file.

Note take the bunnyhop tracking with a wheelbarrow of salt. I'm considering dropping the whole thing, unless there is a relatively easily implemented tracking mechanism possible that doesn't result in false positives, etc. Currently it's not really working well.
« Last Edit: November 23, 2013, 12:15:03 pm by Tabun »

stabs

  • ****
  • Posts: 323
    • View Profile
Skill-detect is really neat! gj

Tabun

  • *
  • Posts: 523
    • View Profile
<3 stabs.

skill_detect > 0.9.15.
Fixed some printing problems (rock skeet report no longer gives away who's tank; all car alarm prints work now).

Don't use the bhop detection, it's still lame and I haven't touched it (yet).

Unless someone finds a serious bug, I'm probably going to keep this stable for a while; got other fish to fry.

bd

  • *
  • Posts: 4
    • View Profile
Hi.
I loooked around before asking but i am confused anyway.
I was fashineted by the Survivor MVP first and this plugin later but i have some questions.
1) May i use this without confogol or not? For now i am using but i do not know if the presence or not confogol do some difference.
2) May i use the Survivors MVP and L4D2 Playing Stats tougheter? I have done but i see percetage abnormal from one to other
I think i cannot live without this plugins.
Thnks.

Tabun

  • *
  • Posts: 523
    • View Profile
1) Yes, you can use this on vanilla servers -- all you need is sourcemod. Playstats will even work without Skill Detect (though it will not report/display all stats then, of course). Note that with some game modes and other mods it might not work very well. I know, without testing it, that Playstats will not work properly with 10v10 setups and such.

2) Although there is no technical reason why Survivor MVP and Playstats cannot be used together, don't do it. Playstats replaces Survivor MVP entirely. There is one bug that can result in 'abnormal' percentages, and it will be/is fixed in the next release (if survivors kill no common in a round, the percentage becomes a huge negative number).
There should be no other 'abnormal' values. Playstats has more sensible common % too; I think Survivor MVP showed the % of total common that died, whereas Playstats shows the % of common that were killed by survivors. If you have any concrete examples of things going 'weird', show me them with detailed information, if you can!

bd

  • *
  • Posts: 4
    • View Profile
Hi. Not sure what is a vanilla server but i assume that it means that a server with no confogl like the mine is a vanilla server. Good.
My first interest is to use in survival mode. My server have 4 default slot for players and 4 slot for spectators (by l4dTollz).
It is very interesting to know the skill of all players. 8)

Although there is no technical reason why Survivor MVP and Playstats cannot be used together

This is exactly what i did to compare the results.

don't do it.

Sorry. But they interfere the one with the other or simply they do a redundant task?

Here example of what i have seen at end of 3 different round.

Round1
Sorry i cutted bad so i add the first screenshot to complete the info.
Here this plugin in the console have (nothing to display) but in chat you have some report and this happened some other times.
http://cloud-4.steampowered.com/ugc/450657989561313616/A17B864EAB3CC3A80A6D96B4238624542B937B74/
http://cloud-3.steampowered.com/ugc/450657989561293715/709396249A63FC28AB0D585A3803F1E3D4C2E04C/

Round2
Here in the chat are listed "whis" that is a player that disconnected before the round start
http://cloud-4.steampowered.com/ugc/450657989546116203/1D3D896850E90E5C2BDD968F49B7317056DED429/

Round3
Here is reported a "Tank fight duration: 40 min 33 sec" but the round ended at 20 min.
http://cloud-2.steampowered.com/ugc/450657989546101140/F45F8B28D8184044161B6E808BE333EBF0681F5E/

In all rounds the percentage and the count of kill/damage from the 2 plugins are very different.
This is only because they use 2 differents way to count or they interfere?
And last i am trying to be sure that on a next round the counts are cleared because sometimes i have seen so many difference from some players ( or a bad count.........or a bad player.........).

The server in on CentOS 5.9
meta list:
SourceMod (1.6.0-dev+3938) by AlliedModders LLC
L4DToolZ (1.0.0.9h-2-g7465d71b-dirty) by Ivailosp
Stripper (1.2.2) by BAILOPAN
SDK Hooks (1.6.0-dev+3938) by AlliedModders LLC
SDK Tools (1.6.0-dev+3938) by AlliedModders LLC
Left 4 Downtown 2 Extension (0.5.4.2) by Igor "Downtown1" Smirnov / Andrew "XBetaAlpha" Burrows / AtomicStryker / Michael "ProdigySim" Busby   (this version. https://forums.alliedmods.net/showpost.php?p=1985302&postcount=453  The other was not working for me)

This are my setting in the server.cfg for the SurvivorMVP and i have not changed after installed this plugin. Not sure for that.
sm_survivor_mvp_enabled 1 //Enable display of MVP at end of round
sm_survivor_mvp_counttank 1 //Damage on tank counts towards MVP-selection if enabled
//sm_survivor_mvp_countwitch 0 //Damage on witch counts towards MVP-selection if enabled
sm_survivor_mvp_showff 1 //Track Friendly-fire stat
sm_survivor_mvp_brevity 0 //Flags for setting brevity of MVP report (hide 1:SI, 2:CI, 4:FF, 8:rank, 32:perc, 64:abs)

Thanks.
« Last Edit: January 05, 2014, 06:41:46 am by bd »

Tabun

  • *
  • Posts: 523
    • View Profile
Ah. Scavenge.
It comes back to bite me in the ass once again.

I'm not 100% sure, but I think it's safe to assume that Playstats doesn't handle scavenge well (or at least not perfectly). The main reason for this is because I loathe scavenge, never play it -- so it didn't even cross my mind when writing plugins like this one. I write my stuff for the competitive community playing versus-based game modes. Playstats has campaign mode support (which is imperfect, but adequate); it does not have scavenge support.

You're probably best off using the old Survivor MVP then, until I find the time and will to make Playstats work well with scavenge. I'm pretty busy, so I don't think that would be anytime soon. If you want to do it yourself, or know someone that might, just direct them to the source code. I will happily integrate a fix from someone that's more experienced in writing plugins for scavenge mode.


Quote
But they interfere the one with the other or simply they do a redundant task?
Redundant task. They do not interfere.

bd

  • *
  • Posts: 4
    • View Profile
ok. no problem.
I need only specify like i have already written that i play usualy "survival" and not scavenge like you have written.
But probably this make no difference.
I'll look for update.
Many thanks for your time.

Tabun

  • *
  • Posts: 523
    • View Profile
I do apologize, I meant survival and scavenge (or rather: anything but versus or campaign mode). I glanced too quickly at the screenshots and thought I was looking at scavenge. Happily -- and unhappily -- the same thing goes for survival mode: I never play it and don't think that either plugin will behave very well with survival mode either.

bd

  • *
  • Posts: 4
    • View Profile
Hi.
I renew my congratulations for your work.
Now i use a plugin (l4d_gamemode_scripts) that allow  to load different config and plugins for different game mode so i may use in versus this plugin and in survival the survivor MVP.
Great! :)

Tabun

  • *
  • Posts: 523
    • View Profile
Small heads-up:
Updated version numbers in this thread to match some of the more recent changes to this. Minor stuff, but important if you (for some reason) are using the file-writing option to store stats. If you don't care about that, no worries, nothing else's been changed since the last time you checked here.

sethrow

  • ***
  • Posts: 183
    • View Profile
Is this fixed?
end of round MVP chat prints: doesn't show your rank

Sir

  • *
  • Posts: 917
    • View Profile
Is this fixed?
end of round MVP chat prints: doesn't show your rank

sm_survivor_mvp_brevity
legacy-named cvar for configuring the way MVP chat prints will look.
Sum of flags in the following list:

BREV_SI                 1       // hide SI damage
BREV_CI                 2       // hide commons killed
BREV_FF                 4       // hide friendly fire damage
BREV_RANK               8       // hide "your rank" line
BREV_PERCENT            32      // hide percentage values (only shows absolutes)
BREV_ABSOLUTE           64      // hide absolute values (only shows percentages)

Check the value of the cvar, it's hiding "your rank" in your configs.
I've seen it on a few other American servers too, so I guess it comes in default.
Group Owner of :| SirPlease
Config Dev :| Zonemod 1.8

 

A dedicated community website to competitive L4D and L4D2, ran by the community, for the community. L4DNation supports all continents of play and focuses on bringing together the community as a whole to a central hub of information.