Skip to content

Make autoscreenshot more reliable

terencehill requested to merge terencehill/autoscreenshot_improvements into master

I made autoscreenshot on game end more reliable:

  1. chat is made invisible
  2. console is made invisible
  3. scoreboard fades in instantly
  4. menu is forcedly closed fading out instantly
  5. quickmenu is forcedly closed
  6. screenshot is taken 0.2 seconds after game ends instead of 0.8 (server-side 0.1s delay + client-side 0.1s delay)

Allow screenshots to be taken for old clients connected to new servers too (screenshots are taken in the old way, without hiding other UI parts but with 0.1s delay instead of 0.8s)

No special handling is required for new clients connecting to old servers (screenshots are obviously taken in the old way, without hiding other UI parts).

Extra: write the actual match ID in the screenshot name so that it's possible to find the match in Xonstats too. This is possible as of recently thanks to Antibody who added match ID visibility to Xonstats:
Quote: "you can now see the server match ID value on the game info page by hovering over the 'i' icon next to the game ID, and you can search for games with a specific match ID via the match_id= like this: https://stats.xonotic.org/games?match_id=0.1710690060.690870"

Edited by terencehill

Merge request reports