Portal 2

Portal 2

58 ratings
Portal 2 Level Editor Crash Fix Guide (Autosave Corruption)
By malcontents
This guide's purpose is to help solve a crash in Portal 2 relating to a corrupted autosave, resulting in the game crashing when you attempt to click "Create New Chamber" in the PeTi Menu.
3
   
Award
Favorite
Favorited
Unfavorite
Intro
Welcome! If you are reading this guide, then you probably have run into a problem where Portal 2 has crashed while building a level. After returning to Portal 2, you found that clicking on "Create Test Chambers" causes Portal 2 to crash. Verifying the game cache sometimes results in a few missing files validating, and other times everything is 100% verified, yet the problem persists. After running into this problem myself, I have found a solution, and would like to share my findings in the event that it might save someone from completely re-installing Portal 2.

Note: For those who want an extremely fast fix and don't want to read the guide, simply delete any files with autosave in its name in C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2\puzzles\[random string of numbers]\.
How to Fix
In this case, the problem can be solved in a few steps. Just follow the steps below and you should be able to once again edit and create test chambers.

Step 1
  • First, start by making sure Portal 2 is closed, as we don't want it running while we delete files.
  • Second, you should verify the integrity of Portal 2's game cache, just to make sure that you have all the correct files that Portal 2 needs. To do this, open Steam, and navigate to Library and find Portal 2. Then, right-click Portal 2 and select Properties. Once in Portal 2 properties, navigate to the Local Files tab, and click on Verify Integrity of Game Cache. This may take a while, but it will ensure that Portal 2 has all the correct files it needs to run properly.
Step 2
  • First, navigate to C:\Program Files (x86)\Steam\steamapps\common\Portal 2\portal2\puzzles, or if your computer is only a 32 bit computer, navigate to C:\Program Files\Steam\steamapps\common\Portal 2\portal2\puzzles.
  • Next, you should see a folder thats name is a bunch of random numbers (in my case, 76561198069465663) that are unique for every Steam account, enter it.
  • Now, you should see a bunch of .jpg thumbnails of test chambers you have previously made, and their corresponding .p2c files. You should also see 3 files named autosave.jpg, autosave.p2c, and autosave.p2c_0. (In my screenshot I had renamed autosave.jpg to autosave.jpg.bak)
  • Delete those 3 files, and any other file with autosave in its name.
  • Now re-launch Portal 2, and you should be able to click "Create Test Chambers" without the game crashing!
Troubleshooting
If the steps above don't work, here are some steps you can take to try to get it to work.
  • Verify Portal 2's Game Cache (Open Steam, and navigate to Library and find Portal 2. Then, right-click Portal 2 and select Properties. Once in Portal 2 properties, navigate to the Local Files tab, and click on Verify Integrity of Game Cache)
  • Restart Steam
  • Delete the folder named appcache found in C:\Program Files (x86)\Steam\ or C:\Program Files\Steam\ (You will have to re-login to Steam)
  • Restart your computer

And if all else fails, you might just have to re-install Portal 2. (Hopefully not)
85 Comments
V Mar 14 @ 5:05pm 
do you have a guide for whenever you try to test play and publish a chamber and then it crashes
Silicon Dystopia Dec 31, 2023 @ 12:58pm 
Just wanted to comment, I had this problem. Verified local files didn't help. Deleting the autosave files didn't work. In the end, I moved the whole puzzles folder somewhere else and that fixed it. Test chambers can be restored individually until the one that's causing the problem is found.
btschlaack Oct 7, 2023 @ 9:40pm 
NOTHING WORK thank you for helping these other people tho
coolguy27 May 4, 2023 @ 5:51pm 
do i have to delete this file? 1683167662 p2c_0
coolguy27 May 4, 2023 @ 5:45pm 
and my game still crashes
coolguy27 May 4, 2023 @ 5:44pm 
well my p2c_0 file says 1683167662 p2c_0
Douknodefox Apr 28, 2023 @ 8:36pm 
I will send this to a person who needs help and see if it helps. Thanks!
CoolLlamaTMM Aug 16, 2022 @ 10:47pm 
what i do is delete all my portal 2 files and uninstall then reinstall them (btw it doesn't effect saves from the normal game)
Darealxbox Jul 24, 2022 @ 7:18am 
omfg thanks for this I legit wasted so much time trying to fix this
just-werdkindom-Ofc Oct 3, 2021 @ 6:10am 
thanks! for this tutorial