Heatmap Setup
From PsychoStats
Contents |
Setting up custom maps for heatmaps
Here are instructions how you can setup custom maps for heatmap generation.
Map overlay images are currently done for default maps in CS:S, TF2 and DoD:S at http://www.psychostats.com/downloads/. The instructions below explain how to go through the process of creating map overlay screenshot and coordinates for any map.
For the screenshots
- 1. Start the game, change resolution to 1280x1024, so when you'll make the screenshot, it will be "square". In the console, type map <map name> to start a local server, type sv_cheats 1 and developper 1
- 2. Join team Spectator. In console, type cl_drawhud 0, hidepaneal all, r_skybox 0, fog_override 1. It'll disable HUD, skybox and fog.
- 3. As spectator, go where you can see the map from above. Don't hesitate to use noclip 1
- 4. When you're around the center of the map, type cl_leveloverview 1. If you don't see all the map, try cl_leveloverview 2, and increment the number as much as needed.
- 5. Take a screenshot when you have all the map
For coordinates
Like screenshots
- 1. Choose a team, run around the map (use the screenshot to know where to go), go as "south" as possible, and as "east, west and north" too. When you think you're at the max in a direction, type getpos or cl_showpos in console to get your X/Y/Z dimensions. Write down them.
Required coordinates are min X, max X, min Y and max Y
Heat.xml
Open file heat.xml. This file includes overlay and coordinate information for each map. For example:
<map name='cs_italy'> <minx>-1530</minx> <miny>-2100</miny> <maxx>1090</maxx> <maxy>2560</maxy> <res>284x500</res> <flipv>1</flipv> <fliph>0</fliph> </map>
Simply copy and paste new similar block. Then replace minx, miny, maxx, maxy values with the coordinates you got. Res value is the resolution of the screenshot. Values flipv and fliph can be used to mirror heatmap horizontally or vertically - change these values if heatmap doesn't seem to align properly.
Server plugins
The spatial logging plugin will add extra spatial information to game log events. Team Fortress 2 servers don't require extra logging plugin.
- SourceMod plugin (for Source games)
- Mattie EventScripts plugin (for Source games)
- AMXModX plugin (for old HL1 engine games, such as CS1.6)
These plugins are available on PsychoStats SVN repository. They are also included in the official Psychostats 3.1 release package.