|
|
Graphics Rules Maker is a tool to make Maxis games (The Sims 2, SimCity 4, possibly more in the future) more compatible with modern day systems. It manipulates some of the game's scripts with specific tweaks to make the game correctly detect the modern hardware.
|
|
|
|
|
|
h1. Instructions
|
|
|
# Instructions
|
|
|
|
|
|
Full instructions for The Sims 2 can be found [at simsnetwork.com](http://www.simsnetwork.com/simpedia/the-sims-2/editions/the-sims-2/specials/graphics-rules-maker-improve-compatibility-with).
|
|
|
|
|
|
h1. Building Graphics Rules Maker or Creating a Plugin
|
|
|
# Building Graphics Rules Maker or Creating a Plugin
|
|
|
|
|
|
Building Graphics Rules Maker requires:
|
|
|
## Requirements
|
|
|
|
|
|
* [Qt 5](http://qt-project.org) - 5.3 or later recommended. Tested with MingW version and compiler.
|
|
|
* [CMake 3.0.0 or later](http://cmake.org/) - the build system
|
... | ... | @@ -14,21 +14,26 @@ Building Graphics Rules Maker requires: |
|
|
* [ImageMagick](http://imagemagick.org/) - used to scale icons etc.
|
|
|
* [NSIS](http://nsis.sourceforge.net/Main_Page) - to create the installer, using CPack from CMake
|
|
|
|
|
|
To build:
|
|
|
## Building Graphics Rules Maker
|
|
|
|
|
|
1. Clone the repository.
|
|
|
2. Create a build directory.
|
|
|
3. Run CMake inside the build directory, using the repository's root as source.
|
|
|
4. Run the build, create a package, etc.
|
|
|
|
|
|
To create a plugin:
|
|
|
## Creating a Plugin
|
|
|
|
|
|
1. Implement the `GameWriterInterface` in a subclass (also inherit `QObject`).
|
|
|
2. Add the following code in your class definition (the header file):
|
|
|
|
|
|
```cpp
|
|
|
Q_PLUGIN_METADATA(IID "com.simsnetwork.GameWriterInterface")
|
|
|
Q_INTERFACES(GameWriterInterface)
|
|
|
```
|
|
|
|
|
|
3. Create a settings widget (`QWidget`) to be embedded in the UI.
|
|
|
4. Make sure it installs to the correct directory. In CMakeLists.txt:
|
|
|
|
|
|
```cmake
|
|
|
find_package(GraphicsRulesMaker REQUIRED)
|
|
|
install(TARGETS MyGameWriter
|
... | ... | @@ -40,11 +45,11 @@ install(TARGETS MyGameWriter |
|
|
|
|
|
The plugins in the main repository can also be built stand-alone; see the existing plugins for examples of how to write them.
|
|
|
|
|
|
h1. License
|
|
|
# License
|
|
|
|
|
|
Please see LICENSE.TXT for the GPL v3 license.
|
|
|
|
|
|
h1. Random notes, disclaimer etc.
|
|
|
# Random notes, disclaimer etc.
|
|
|
|
|
|
The Graphics Rules Maker comes with no warranty whatsoever. If your game doesn't run after this, restore the back-up files or reinstall the game. Also, none of the available tweaks are guaranteed to actually fix your game.
|
|
|
|
... | ... | |