Editing PC Video Game Files for Cheats

How to enable cheats for PC games by editing game files

Person wearing headphones and playing a PC game

Michael Kraus / EyeEm / Getty Images

While researching cheats for PC games, you may see instructions that require you to edit a game's configuration files. For example, games like The Sims include debug codes that players can take advantage of to alter almost any aspect of the game. The easiest way to edit a game file is with a simple text editor such as Windows Notepad or Wordpad.

Information in this article applies broadly to all PC games for Windows. You will need to know exactly which files you must alter to enable cheats for specific games.

Editing important files can cause games to crash, so create backup copies of any files you plan to alter in case you make a mistake.

How To Edit Configuration Files for PC Games

Depending on which game you play, you may need to edit files that are saved in various formats, but most of the files you need to alter to enable video game cheats can be opened with a basic text editor. No matter which version of Windows you play on, editing configuration files is fairly straight forward.

  1. In Windows File Explorer, right-click the file and select Open With.

    Open with menu item in Windows 10
  2. Select a text editor.

    Notepad chosen as text editor
  3. Make the necessary edits, then save your changes.

Do not try to open a .hex file with a text editor. A special hex editor is required to correctly alter these files.

What to Do if Your File Won't Save

If you make modifications and are unable to save the file, then the file is write-protected. Write protection is a setting that Windows uses to protect certain files from being edited or altered. You'll see this a lot with system files and folders.

To remove write protection from a file:

  1. In Windows File Manager, right-click the file and select Properties.

    File Properties menu item
  2. Go to the General tab and clear the Read-only check box.

    Read-only checkbox in Windows 10
  3. Select OK to close the properties box.

Now you can edit and save the file.

You may need to be logged into your computer with Administrator permissions to make these changes.