StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
150 stars 3 forks source link

env_portal_credits in sp_a4_finale4 fires OnCreditsDone input but is blocked from issuing the disconnect concommand #1041

Open allspice101 opened 1 year ago

allspice101 commented 1 year ago

Describe the bug

When you beat the campaign for portal 2, the game will not boot you to the main menue

video for proof: https://drive.google.com/file/d/1t-K4zuIaiZaVqz-QiQ612vm7CwbjS1KY/view?usp=sharing PLEASE NOTE; this video will be used in multiple issues

Issue Map

sp_a4_finale4

To Reproduce

1: beat the portal 2 campaign

Operating System

No response

pivotman319-owo commented 1 year ago

upon further inspection, the ending callback video also doesn't seem to get past the first few frames, instead resulting in audio playing only w/ last webm framebuffer displayed

pivotman319-owo commented 1 year ago

looked into this again and found the root cause, apparently it is handling the oncreditsdone call appropriately but an internal change to csgo now causes the engine to disallow issuing the disconnect command to the host player

[client_le] VideoPanel::OnClose() played video for 13.85 seconds
[engine] FCVAR_CLIENTCMD_CAN_EXECUTE prevented running command: disconnect
[vstdlib] Tried to look up command disconnect as if it were a variable.
[client_le] Unknown command: disconnect