GetDotaStats / stat-collection

Library for setting up stat collection for dota2 mods
http://getdotastats.com/
GNU General Public License v2.0
11 stars 8 forks source link

[SCHEMA] HOOK WARS REBORN #102

Open AvondaleZPR opened 7 years ago

AvondaleZPR commented 7 years ago

Console log: https://pastebin.com/GpQe0aAv Settings.kv: https://pastebin.com/aRhNq3Jh Schema.lua: https://pastebin.com/etmA5CQE addon_game_mode.lua: https://pastebin.com/qtiLxA9Z

jimmydorry commented 7 years ago

P_T is missing in the console log. If your schema doesn't work, go back and check that it's present in the console log (schema expects all defined fields to be present).

Here's your schema, please review the fields to make sure I didn't make a mistake.

Feel free to suggest changes!

Schema: https://getdotastats.com/#s2__mod_schema?mid=358

Schema ID: https://getdotastats.com/#s2__my__mods

Your schema ID starts with O1... not a v1

AvondaleZPR commented 7 years ago

fixed P_T schema.lua: https://pastebin.com/rdVs0RND test_schema: https://pastebin.com/1THx20WK

jimmydorry commented 7 years ago

You will definitely want to convert TeamID to something English. Check out the examples.

local hero = PlayerResource:GetSelectedHeroEntity(playerID)

            -- Team string logic
            local player_team = ""
            if hero:GetTeam() == DOTA_TEAM_GOODGUYS then
                player_team = "Radiant"
            else
                player_team = "Dire"
            end