splewis / get5

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

event "demo_upload_ended", "demo_finished" is not fired #943

Closed FlowingSPDG closed 1 year ago

FlowingSPDG commented 1 year ago

demo_upload_ended, demo_finished should be fired

Expected behavior

context : https://github.com/splewis/get5/issues/934 / https://github.com/splewis/get5/pull/935 demo_finished / demo_upload_ended should be fired

Actual behavior

get5_remote_log_url should not be changed before firing demo_upload_ended, demo_finished

Steps to reproduce

edit: I am receiving dem file from server correctly so those event itself should be fine

nickdnk commented 1 year ago

This is the same problem as the other one; you have get5_remote_log_url in your match config cvars instead of your get5 config.

FlowingSPDG commented 1 year ago

Yeah I'll put those cvar on get5config for now. Just curious(not pushing), Will it be fixed on future release?

nickdnk commented 1 year ago

It's a bit harder to solve this in a clean way. The events use global variables, and not just the remote URL, which all get reset on match end. Ideally, match cvars should only contain stuff that's specific to the match being played, not generic server configuration.

nickdnk commented 1 year ago

@FlowingSPDG I considered a different approach than trying to maintain the cvar values "after they have been restored", which is essentially what is required as the demo upload could take several minutes.

Instead, I propose we add a cvar, such as get5_restore_cvars_on_end, which you can then disable, and the Cvars from your match config won't reset at all. Would that work?

FlowingSPDG commented 1 year ago

@FlowingSPDG I considered a different approach than trying to maintain the cvar values "after they have been restored", which is essentially what is required as the demo upload could take several minutes.

Instead, I propose we add a cvar, such as get5_restore_cvars_on_end, which you can then disable, and the Cvars from your match config won't reset at all. Would that work?

Absolutely! I agree on this approach too because I wanted to keep some cvars after match finish.

nickdnk commented 1 year ago

Try this: https://github.com/splewis/get5/releases/tag/v0.12.0-353cee5