LEGO® Batman™: The Videogame

LEGO® Batman™: The Videogame

Not enough ratings
Fix Resolution on LEGO® Batman™: The Videogame
By Wombatlord
Nearly every single port of the LEGO games have resolution issues that cause your PC to freak out. This is the solution to that issue.
   
Award
Favorite
Favorited
Unfavorite
Get your PC resolution
    Open Display Settings
    Navigate to Scale & Layout
    Your PC resolution is the selected value in the "Display Resolution" dropdown menu.
    Mine is 1920x1080
Create a Python Script
MAKE SURE PYTHON [www.python.org] IS INSTALLED ON YOUR PC

Create a file called "lego.py"

Paste the following code into "lego.py"
import os def find_pcconfig_files(root_directory): pcconfig_files = [] for subdir, _, files in os.walk(root_directory): for file in files: if file == "pcconfig.txt": pcconfig_files.append(os.path.join(subdir, file)) return pcconfig_files def modify_pcconfig(file_path, width, height): with open(file_path, 'r') as file: lines = file.readlines() with open(file_path, 'w') as file: for line in lines: if "ScreenWidth" in line: file.write(f"ScreenWidth {width}\n") elif "ScreenHeight" in line: file.write(f"ScreenHeight {height}\n") elif "WindowWidth" in line: file.write(f"WindowWidth {width}\n") elif "WindowHeight" in line: file.write(f"WindowHeight {height}\n") else: file.write(line) def main(): root_directory = input("Enter the root directory to search for 'pcconfig.txt' files: ") width = input("Enter the desired width: ") height = input("Enter the desired height: ") pcconfig_files = find_pcconfig_files(root_directory) for file_path in pcconfig_files: if "LEGO" in file_path: modify_pcconfig(file_path, width, height) print(f"Automatically modified 'pcconfig.txt' at: {file_path}") else: print(f"Found 'pcconfig.txt' at: {file_path}") confirm = input("Do you want to modify this file? (yes/no): ").strip().lower() if confirm == 'yes': modify_pcconfig(file_path, width, height) print(f"Modified 'pcconfig.txt' at: {file_path}") else: print(f"Skipped 'pcconfig.txt' at: {file_path}") if __name__ == "__main__": main()

Open CMD in the folder of "Lego.py

Paste the following:
python lego.py
Use the Script
Navigate to the location of your LEGO game files
This should be:
C:\Users\NAME\AppData
(replace NAME with your computer username)

Paste this location into the script

Type your screen resolution

Confirm which files you want the program to modify
THIS PROGRAM IS ONLY TESTED ON LEGO GAMES SO PLEASE IF FOR ANY REASON THE FILE PATH THE PROGRAM DISPLAYS IS NOT RELEVANT, DO NOT TYPE YES!
ONLY AUTHORISE LEGO GAME FILES!

3 Comments
Coffin 5 Sep @ 1:23pm 
It doesn't work ;-;
BobTheFireMan 3 Sep @ 10:12pm 
j
evilmorty1385 25 Jul, 2024 @ 10:08am 
tanx