-
Notifications
You must be signed in to change notification settings - Fork 8
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] SWAT: Reborn #83
Comments
Your schema has been approved. Please double check I didn't make any mistakes in field names or display names. https://getdotastats.com/#s2__mod_schema?mid=145 Your schemaID is here: https://getdotastats.com/#s2__my__mods |
I should really update the guide, as this is important:
|
Hey, so far I've been loving this metrics collection. I'm thinking of updating the schema to accomplish a new task, but before I submit that, I'd like to ask for what would be the best way. I like the Player Flags breakdown, but I noticed a problem. My game has a variety of difficulties, but the player values metrics aggregatesu all of those into one. Ideally, I'd like to be able to filter the player flags breakdown based on a Game value (in this case, difficulty), so I could see the breakdown of players' selections in each difficulty. If there is already functionality to do this, that'd be great. If not, I'm thinking of just updating the schema to have a prefix in front of most of the current player flags, and only send values if that difficulty is the one being played. If I go this route, I would only care about one difficulty. Also, just to confirm, assuming I had a key like this: Finally, is it possible to change what the Top Players orders by? Could I create a player value (or maybe multiple ones, allowing the list to be sorted multiple ways?) Thanks again |
Lua tables don't have the ability to have |
Fair enough. So, what happens if the key is simply not there? If I update the schema and someone plays an older version which does not send the new key, would there be any problems? Would it essentially be the same as using an empty string for a value? |
if the key isn't there, GDS will invalidate that message, and return an error saying you missed a key |
Which is why there's always a new schema key for every schema version, you don't change your code without also changing the schema key to reflect the changes |
Oh right. I did forget about the schema key. Ok, I should be set then. Here is my new schema code: http://hastebin.com/semodubada.lua New Game Keys: New Player Keys: "nm_cn" "Class (Nightmare)" Thanks! |
Hey, any update on getting this schema approved? |
Sorry, I've been in South Africa with very spotty internet connection (still am). Let's have a look. |
Good thing you posted the schema and logs. I don't see Your schema is up and should be found in https://getdotastats.com/#s2__my__mods Double check your schema fields here: https://getdotastats.com/#s2__mod_schema?mid=145 |
Thanks. I think the new schema is posting correctly now. I noticed that after the schema update the mod page seems to have purged all the metrics from the old schema, and old schema games are not contributing metrics to the new schema (even if keys match). Is this intended? It's not a huge deal, just curious. Thanks and enjoy your trip. |
the site only shows info for the latest schema, and ignores data from old schemas |
Slight correction, it still receives and stores data for valid & active schemas, but only displays the latest one. |
Link to Schema:
http://hastebin.com/raluqitoku.lua
Link to Console:
http://hastebin.com/zejaqukovu.lua
Link to settings:
http://hastebin.com/afihixuniz.vhdl
Note: SWAT has a delay between when the game is won/lost and when I actually make a team win and lose. During this time, I'm worried teams may leave, so I manually trigger stage 3 before the library will hear about it through its standard hookins (but it looks like it will ignore sending it again if the game does reach the standard win/lose stage so it should be fine).
The code for this is simply:
Also, can schema keys be optional? Would the server choke up if a key was simply not sent to it? It'd be nice to submit some metrics based on which difficulty was selected, rather than lumping all difficulties together but appending some key to them to denote the difficulty.
Thanks for setting all of this up guys!
The text was updated successfully, but these errors were encountered: