Open AvondaleZPR opened 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
fixed P_T schema.lua: https://pastebin.com/rdVs0RND test_schema: https://pastebin.com/1THx20WK
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
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