PDA

View Full Version : Heatmaps (for Psychostats)


css
04-11-2008, 06:10
Heatmaps (for Psychostats) 1.0

Description:
Spatial statistics logging plugin. This plugin will add extra logging information to player death events. With the extra information it is possible to generate heatmaps of where players die, where players get kills, what weapons were used and lots of more finer details.

* Requires Psychostats 3.1
- For more information read Psychostats forums: http://www.psychostats.com/forums/ (there is no particular thread for heatmaps - use search!)

The plugin is not necessary for Team Fortress 2, TF2 supports spatial stats by default. The plugin should work for most other HL2 based mods.

Heatmap in Counter-Strike: Source de_dust2
http://img185.**************/img185/6213/dedust2heatmd6bb3.jpg

Heatmap in Counter-Strike: Source cs_italy
http://img179.**************/img179/696/csitalyheatqu8lx2.jpg

This plugin does merely the logging. Psychostats is REQUIRED to generate the heatmaps from the log events. It is possible to install this plugin before having Psychostats installation. You'll then have proper log events stored in your log files so Psychostats can process them any time later.Installation:
1. Copy spatialstats.smx to /addons/sourcemod/plugins directory.
2. Load with "sm plugins load spatialstats"

Additional notes:
There is also Mattie EventScripts version of this plugin. Check Psychostats Addons wikipage (http://www.psychostats.com/doc/Addons) for more information.
Support for CS1.6 and other HL based mods is possible too - check this post at AMXModX forums (http://forums.alliedmods.net/showthread.php?p=609463#post609463).
Note: Psychostats.com forum is the best source of information regarding the heatmap concept in general.Version Notes:
1.0 - Initial release

LocutusH
04-11-2008, 08:03
Is there a possibility, to create a heatmap generator (perl, php?), that works without psychostats?

css
04-11-2008, 09:40
No ;-)

V0gelz
04-11-2008, 11:48
huh, cool :)

mowax
04-11-2008, 11:55
hi guys,

when i install the smx file my server won't restart...

l0gen
04-11-2008, 18:26
Whats the difference between this one and the one that becomes with the 3.1 nightly version - Called "psychostats.smx"


* SourceMod PsychoStats Plugin
* Implements support for PsychoStats and enhances game logging to provide more
* statistics.
*
* This plugin will add "Spatial" stats to mods (just like TF). This allows
* Heatmaps and trajectories to be created and viewed in the player stats.
* This plugin will also 'fix' the game logging so the first map to run on
* server restart will log properly (HLDS doesn't log the first map). This
* will prevent any 'unknown' maps from appearing in your player stats.


Just curious :)

Because the one from PsychoStats itself also has some more features.
And yours just does the 'spatial' thingey, I guess it's recommended to run only one of these 2 right?

css
04-12-2008, 07:59
when i install the smx file my server won't restartTry to compile the source file with Sourcemod compiler (http://www.sourcemod.net/compiler.php).

Whats the difference between this one and the one that becomes with the 3.1 nightly version - Called "psychostats.smx" This version does not include the "first map loading fix". It's better to keep these plugins separate and release "first map loading fix" as completely separate plugin. In any case Psychostats users will get the required plugins with Psychostats installation. The initial idea was to include all Psychostats related stuff in the same plugin. Nightly version is likely to change at some point.

huh, cool :)Correct :wink:

mowax
04-12-2008, 12:35
hi guys,

when i install the smx file my server won't restart...


this is what was happening to me, just trying on a fresh server...i let you know.

css
04-12-2008, 12:57
The link to pre-compiled smx is now removed. Click Get Plugin link instead and it will compile the plugin. It works on my server with following SM version info:

SourceMod Version: 1.0.0.1924
JIT Version: JIT (x86), 1.0.0.1919

Drek
10-15-2008, 18:49
Is there any chance this plugin could be fixed so that it doesn't eat the rest of the information in the logs? I can confirm it eats hit location and damage logs, as well as the logging of ip's. I don't know what else it eats. I've posted about this in the Psychostats forums, but Stormtrooper is more than a bit busy, so maybe someone else could fix the plugin for him?

I would, but I don't got the skillz... ;)

andrzejmleczko
11-16-2009, 02:51
I get errors in my log:

L 11/15/2009 - 02:22:54: [SM] Displaying call stack trace for plugin "ps_spatialstats.smx":
L 11/15/2009 - 02:22:54: [SM] [0] Line 101, /home/groups/alliedmodders/forums/files/3/1/3/5/1/25573.attach::Event_PlayerDeath()
L 11/15/2009 - 02:22:54: [SM] Native "GetClientAbsOrigin" reported: Client index 0 is invalid
L 11/15/2009 - 02:23:24: Error log file session closed.

sir_phobos
01-07-2010, 12:34
i get the same error, i think

L 01/07/2010 - 09:05:34: SourceMod error session started
L 01/07/2010 - 09:05:34: Info (map "cs_assault") (file "errors_20100107.log")
L 01/07/2010 - 09:05:34: [SM] Native "GetClientAbsOrigin" reported: Client index 0 is invalid
L 01/07/2010 - 09:05:34: [SM] Displaying call stack trace for plugin "ps_spatialstats.smx":
L 01/07/2010 - 09:05:34: [SM] [0] Line 101, /home/groups/alliedmodders/forums/files/3/1/3/5/1/25573.attach::Event_PlayerDeath()