splewis / get5

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

demo file should be uploaded before cvar restores(RestoreCvars) #934

Closed FlowingSPDG closed 1 year ago

FlowingSPDG commented 1 year ago

Hi, I am having an issue on automated demo upload.

I set get5_demo_upload_url from get5_loadmatch_url command, and when match ends it restores to default. So it does not upload demo on specified URL. (Im sorry English is not my first language)

Perhaps because it was BO1.

Expected behavior

Demo upload should be done before cvar restores or Demo upload should be done correctly even after cvar restores

Actual behavior

get5_demo_upload_url restores to default ("") before demo upload.

Steps to reproduce

nickdnk commented 1 year ago

Hello

We can fix this in 0.12.

You should set your get5_demo_upload_url in your general Get5 config instead of the cvars to avoid this in the meantime. The same goes for get5_demo_upload_header_key and get5_demo_upload_header_value, if you set those.

Edit: Parameters set with RCON before the match is loaded are not restored to any default value when the match ends, so I'm not sure how you got it to not work. The "restore cvars" functionality only refers to what is stored in the cvars section of a match configuration.

FlowingSPDG commented 1 year ago

Hello!

I got it, I will set it via Get5 config next time. Thanks!

Oh okay, so there might be my misconfiguration there. I'll dig into it more and let you know here!

nickdnk commented 1 year ago

Try this pre-release: https://github.com/splewis/get5/releases/tag/v0.12.0-a6dc21b

FlowingSPDG commented 1 year ago

Will do! Thank you!

nickdnk commented 1 year ago

Here: https://github.com/splewis/get5/releases/tag/v0.12.0-4c83ac7

We only have one prerelease available at a time, so just get the latest.