LEGO® Harry Potter: Years 1-4

LEGO® Harry Potter: Years 1-4

Not enough ratings
Crash Fix Handbook [2024]
By Jake
Multiple methods for fixing frequent crashes.
   
Award
Favorite
Favorited
Unfavorite
Fix 1: Dynamic Light Quality Config
Crashes caused by this issue usually occur randomly throughout the game.

First find your pconfig.txt. It is normally located at:
C:\Users\username\AppData\Roaming\WB Games\LEGO® Harry Potter™

You can find your pconfig.txt file by:
 1) Pressing: Windows Key + R
 2) Typing:
%appdata%
 Press Enter

3) Go into
\AppData\Roaming\WB Games\LEGO® Harry Potter™

There, you should see the pconfig.txt file

Open the file, and you can use CTRL+F find the line:
DesiredDynamicLightQuality

This should be followed by a number. Change the number to 0.
Fix 2: UseHires Config
Crashes caused by this issue usually occur randomly throughout the game.

In the same pconfig.txt file from Fix 1, find:
UseHires 1 UseHiresPending 1

Set both of these to zero:
UseHires 0 UseHiresPending 0
Fix 3: Resolution Issues
Crashes caused by this issue usually occur at launch.

In the same pconfig.txt file from Fix 1, find:
ScreenWidth XXXX ScreenHeight XXX

Change these two values to a standard resolution:

1080p
ScreenWidth 1920 ScreenHeight 1080
1440p
ScreenWidth 2560 ScreenHeight 1440
4K
ScreenWidth 3840 ScreenHeight 2160

Fix 4: Audio Sample Rate
Crashes caused by this issue usually occur at launch.

Find your audio Playback Devices, click on your Playback device, and then select Properties.

In the properties menu, click on the Advanced Tab.

Here, you can change your Sample Rate and Bit Depth.
  • Based on forum discussions, many have stopped crashing by changing their settings to a Bit Depth and Sample Rate below 24 bit and 48,000 Hz.
If you find that your game still crashes the first time you lower the Sample Rate, try adjusting it even lower.
Remember to Restart
After completing a level, it's beneficial to restart the game. Restarting decreases the chances of the game crashing.

Why?
Memory Clearing: Over time, as a game runs, it consumes more memory. Restarting clears this accumulated memory, preventing potential memory leaks or conflicts that can lead to crashes or performance issues.

Resource Reallocation: Restarting allows the game's engine to reassign resources more efficiently. Some games may not release resources properly after certain events or levels, and a fresh start can ensure optimal resource allocation.

Error Reset: Games, like all software, can encounter minor errors or glitches during gameplay. A restart resets the game's state, clearing any lingering errors that might have occurred.
If you're desperate
You can set a launch option, to run the DirectX 9 version of the game.

Warning: This will most likely corrupt your saved games.

From your Library, right click on Lego Harry Potter: Years 1-4, then select Properties.

In the General tab you will see a section for Launch Options.

Type the following into the Launch Options box:
-dxlevel 90