splewis / get5

CS:GO Sourcemod plugin for competitive matches/scrims
GNU General Public License v3.0
557 stars 176 forks source link

[Feature Request]: Post match stats to API once game is done. #990

Closed LukasW1337 closed 1 year ago

LukasW1337 commented 1 year ago

Prereleases & Documentation

Get5 Version

0.13.0

The Feature

Feature would work the same as demo upload after map ends. Define endpoint, authorization etc.

Once map is done, it uploads or post the get5_matchstats_{MATCHID}.cfg

nickdnk commented 1 year ago

~It seems like SteamWorks will only allow me to send 4096 bytes, unless I choose to upload a file from disk. I have no idea where this limitation is coming from or why it is there, but it makes it fairly difficult to send the full match stats on round end, which was my original plan.~

~There is still the option of writing the JSON stats to a file and then uploading that file on map end instead, because we can do that, for some reason. Because this requires disk I/O, I may not want to do that on every round end. I have to figure out if there is a performance issue in doing that first.~

Edit: Disregard this. It does work, but up to 16 KB only.