LEGOⓇ Indiana Jones™: The Original Adventures

LEGOⓇ Indiana Jones™: The Original Adventures

Not enough ratings
Fix Resolution on LEGOⓇ Indiana Jones™: The Original Adventures
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!

4 Comments
jeevil Feb 6 @ 2:54pm 
"Create a Python Script" nah
ct1310 Jan 18 @ 5:48pm 
this guide is terrible. u r gay
WAEMID_IV Dec 26, 2024 @ 5:37am 
After following this "guide", the game still doesn't launch ):<
"Failed to create d3d device" nothing anyone anywhere knows has been helpful with this.
Mr Yeast Sep 1, 2024 @ 6:55am 
w, i will see if i can create a gui for your script (if you dont mind ofc
) and ill try to add some more features that i would like to see like some Qol settings etc.