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] Dota 2 Duel 1v1 #94

Closed mazhura closed 2 years ago

mazhura commented 7 years ago

Console Log - http://pastebin.com/nFdiR2Ge Other files - https://drive.google.com/drive/folders/0BxA-o9QBcp5PaEtHZnJsZFFqSUU?usp=sharing

jimmydorry commented 7 years ago

It was hard to download these. Re-uploaded for archiving and to make this easier for me.

Console log: https://t.g-ds.io/A5JDeF Schema: https://t.g-ds.io/9oT3JM Settings: https://t.g-ds.io/iLMs59

jimmydorry commented 7 years ago

You need to put the correct modID into your settings, with no space. Yours starts with 0701...

Your console log does not show your two game values (game length and winning team), so you will want to test those before using the schema. Make sure your game length is wrapped in math.floor(GAME_TIME_ELAPSED).

The rest looks good. Well done making a good schema on the first try.

Be aware of the differences in handling empty values.


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=155

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

Your schema ID starts with 4F1... not a v1

mazhura commented 7 years ago

i have a correct modid in my mod but i change it to 123 before send you

jimmydorry commented 7 years ago

Ok, good. Just checking. :)

You should be good to go now. Just make sure to double check your game values. They weren't in the console log.

mazhura commented 7 years ago

Yep,i check it later Thx :) Have a nice day

mazhura commented 7 years ago

I dont know where i neeed to puth math.floor(GAME_TIME_ELAPSED) ? Help me please

jimmydorry commented 7 years ago

In your schema, look for game.gl = GAME_TIME_ELAPSED that needs to be game.gl = math.floor(GAME_TIME_ELAPSED)

It's under the function BuildGameArray()

mazhura commented 7 years ago

I fix it but have in console that error Script Runtime Error: scripts/vscripts/statcollection\schema.lua:53: bad argument #1 to 'floor' (number expected, got nil)

jimmydorry commented 7 years ago

This is why I said to check your GAME_TIME_ELAPSED as it wasn't in the console. That error is saying that it's currently got a value of nil (NULL).

mazhura commented 7 years ago

Where i can check it?

jimmydorry commented 7 years ago

Do it without the math.floor, and figure out why it doesn't have a value.

mazhura commented 7 years ago

okay thank you

mazhura commented 7 years ago

when i put my schemaid in settings.kv i need to puth this like v1_ or ?

jimmydorry commented 7 years ago

Second. Yours starts with 4F1...

mazhura commented 7 years ago

okay i choose this a day ago and upload but i didnt see record statistic any and i cant fix with game data but i try

mazhura commented 7 years ago

help mee

jimmydorry commented 7 years ago

Play a game and pastebin the console log. If it's not recording, there will definitely be an error in the console log.

Double check that your game.gl = _G.GAME_TIME_ELAPSED is an integer (a whole number).

We can't really help without knowing the error.