Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCHEMA] HOOK WARS REBORN #102

Open
AvondaleZPR opened this issue Jul 22, 2017 · 3 comments
Open

[SCHEMA] HOOK WARS REBORN #102

AvondaleZPR opened this issue Jul 22, 2017 · 3 comments

Comments

@AvondaleZPR
Copy link

AvondaleZPR commented Jul 22, 2017

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
Copy link
Member

jimmydorry commented Jul 22, 2017

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
Copy link
Author

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

@jimmydorry
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants