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

Add client side Lua or Panorama function for 'Client Check-In' as defined in original spec #33

Closed jimmydorry closed 8 years ago

jimmydorry commented 8 years ago

In specification defined here: http://getdotastats.com/#s2__schema_matches

Never implemented.

MNoya commented 8 years ago

First attempt to implement this utilized CreateHTTPRequest on a client side modifier_lua but the requests seem to be routed to the server regardless, resulting in the same IP being registered for everyone in the game.

Next attempt will try to register the player_connect 'address' field (which returns 'loopback' and 'none' in the tools for server/bots so we'll need testers), and the last option will be Panorama AsyncWebRequest

MNoya commented 8 years ago

address failed, it returns UDP trash

Onto Panorama, it will require the modders to copy one javascript file, one xml file and include the following line in their custom_ui_manifest.xml:

<CustomUIElement type="HeroSelection" layoutfile="file://{resources}/layout/custom_game/statcollection.xml" />

The XML will be empty and just used to invoke the .js when the HeroSelection starts

MNoya commented 8 years ago

Started in 07f4de29e520b27eefd0eebf36e771ed03f64a2c, I dropped the .js and the xml include on a panorama folder, not sure what's wrong with the server complaining the payload is missing

MNoya commented 8 years ago

DONE