Skip to content

A DLL Plugin for SimCity 4 that allows players to control which cheats are enabled.

License

Notifications You must be signed in to change notification settings

0xC0000054/sc4-disable-cheats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sc4-disable-cheats

A DLL Plugin for SimCity 4 that allows players to control which cheats are enabled.
The plugin can be downloaded from the Releases tab: https://github.com/0xC0000054/sc4-disable-cheats/releases

System Requirements

  • Windows 10 or later

Installation

  1. Close SimCity 4.
  2. Copy SC4DisableCheats.dll and DisabledCheats.txt into the Plugins folder in the SimCity 4 installation directory.
  3. Configure the cheats you want to disable, see the Configuring the plugin section.

Configuring the plugin

  1. Open DisabledCheats.txt in a text editor (e.g. Notepad).
    Note that depending on the permissions of your SimCity 4 installation directory you may need to start the text editor with administrator permissions to be able to save the file.

  2. Add the cheat codes you wish to disable on individual lines.

  3. Save the file and start the game.

Troubleshooting

The plugin should write a SC4DisableCheats.log file in the same folder as the plugin.
The log contains status information for the most recent run of the plugin.

License

This project is licensed under the terms of the MIT License.
See LICENSE.txt for more information.

3rd party code

gzcom-dll Located in the vendor folder, MIT License.
Windows Implementation Library MIT License

Source Code

Prerequisites

  • Visual Studio 2022

Building the plugin

  • Open the solution in the src folder
  • Update the post build events to copy the build output to you SimCity 4 application plugins folder.
  • Build the solution

Debugging the plugin

Visual Studio can be configured to launch SimCity 4 on the Debugging page of the project properties. I configured the debugger to launch the game in a window with the following command line:
-intro:off -CPUcount:1 -w -CustomResolution:enabled -r1920x1080x32

You may need to adjust the resolution for your screen.

About

A DLL Plugin for SimCity 4 that allows players to control which cheats are enabled.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published