Closed jimmydorry closed 9 years ago
Couldn't reach this from iPad. Copy paste
Step by Step Guide: Integrating stats-collection into your game mode.
require('statcollection/init')
settings.kv
file, change the modID XXXXX value with the modID key that was handed to you by an admin.Having a custom schema is the best way to acquire relevant stats about your gamemode, such as pick and winrates of different heroes, keeping track of special game events, anything that you might find appropiate to register and want to know data about. This information can help you decide what changes or additions to make.
Making a custom schema requires that you build your own custom array of stats and write your own lua functions to put data into them.
In the schema_examples folder we provide examples of how various mods implemented their tracking.
Sending custom data is done inside schema.lua. The data to send is split in 2 parts: Game and Players.
The Game array should contain general info about the game session, for example, how many times Roshan was killed, number of towers left standing, or any settings decided after the pre game phase (if you have a setting that can be known before Pre Game, for example "Version", you should use a Flag instead).
In the Players array, you can put information about each player such as the hero picked, KDA, inventory, abilities leveled up, resources gained, or anything that might be interesting for your specific mod.
If your game uses a Round system and you would like to know stats for each round instead of only at post game, >
The schemaPrint() looks like http://www.hastebin.com/amecitodux.md
We need to add this process to the guide.
http://www.hastebin.com/amomafaxac.vhdl
@mnoya Good start