StrataSource / Portal-2-Community-Edition

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

Workshop Bug: All `workshop_` console commands crash the game after one map boot #1717

Open LambdaCore21 opened 7 months ago

LambdaCore21 commented 7 months ago

Describe the bug

It seems like the workshop_ commands only work on game launch, but not after loading into a map.

To Reproduce

  1. Start P2CE
  2. Use any workshop_ command without problems
  3. Load a map and exit to menu again
  4. Now any workshop_ command crashes the game

Issue Map

Not map related

Expected Behavior

No crash of the game

Operating System

No response

JJL772 commented 5 months ago

Can you re-test this?

LambdaCore21 commented 5 months ago

The problem has shifted. The game now crashes when I use workshop_flush in main menu and then load any map

LambdaCore21 commented 5 months ago

The problem has shifted. The game now crashes when I use workshop_flush in main menu and then load any map

Still present in Build 13924985

JJL772 commented 5 months ago

workshop_flush is a testing command. I need to hide it or mark it developer only. It forcefully reindexes addons and flushes content, even if not at a predetermined "safe point" like the other commands do.

LambdaCore21 commented 5 months ago

I can reliably crash the game doing the following now:

  1. Use workshop_unmount for an addon
  2. Load any map
  3. Exit to main menu
  4. Use workshop_unmount for another addon again
  5. Loading any map now causes the crash