A patch utility to upscale The Sims 2's user interface for HiDPI (2K/4K) displays.
Through the use of graphic rules, it's easy to play The Sims 2 at high resolutions, but the buttons, text and interface become super tiny.
There were no 4K modifications out there to fix the UI. However, I discovered
the modularity of the game files allows us to double the UI geometry and graphics,
such as fonts and various .package
files.
This project is a patcher program to automatically upscale UI resources from your copy of the game.
Yes, but there's few visual UI glitches that may degrade the gameplay experience!
If you've like to get involved, check out the issues or report any issues. Some things are still misaligned or could be improved.
Your game files are always backed up, so you can revert without reinstalling the game, or to repatch later using a newer version of this program with fixes and improvements.
While patching, you should have at least 2 GB of RAM free. It may take a while to complete, depending on the single core performance of your CPU.
The game originally compressed its package files with QFS compression. You can optionally turn this on, but it will take longer to complete. Without compression, a retail game with all expansions and backup files would use an additional 7.7 GiB of disk space.
The program automatically checks this repository for an update, to ensure you have the latest version.
windows-x64
asset from the Releases page.sims2-4k-ui-patcher.exe
.
C:\Program Files (x86)\EA GAMES
.To run the program, you may need to install Microsoft Visual C++ Redistributable (x64).
For users who play The Sims 2 under the Wine/Proton compatibility layer. It works well with DXVK!
linux-x64
asset from the Releases page../sims2-4k-ui-patcher
.
~/.wine/drive_c/Program Files (x86)/EA GAMES
.Ironically, the patcher interface (built with TK) may not scale well on a 4K display.
We don't have a pre-built binary for macOS, but you can run the Python script directly. See Development for instructions.
This patch program will work fine if you play the game under a Wine compatibility layer. However, if you purchased the The Sims™ 2: Super Collection, we don't know whether files are exposed in a way that is compatible with this program. Please let us know!
This program is compatible with all copies of The Sims 2, expansions and stuff packs for PC.
Any downloads or custom content that alters the user interface or modifies graphical interface elements via your The Sims 2 save folder are not patched by this program. Using such mods may result in mixed UI scaling. It is possible to hack the patcher to patch other files [1] although your mileage may vary.
This project is written in Python. To start hacking, clone this repository and set up a virtual environment to install requirements.txt.
For Windows, install Python 3.12, and run:
python -m venv venv
venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
python sims2_4k_ui_patcher.py
For Linux, your distribution likely already has Python 3 installed:
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python3 sims2_4k_ui_patcher.py
For macOS, install Python 3.12, and run:
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python3 sims2_4k_ui_patcher.py
Unit tests check everything is in working order.
You'll need to copy a file from The Sims 2 University into the tests/files
folder:
724723ddc5b020a55bdefc60a7cf1304 The Sims 2 University/TSData/Res/UI/ui.package
File not included. With this file present, you can locally run the tests:
python -m unittest discover ./tests/
This checks the package read, write and compression procedures are working correctly.
GNU General Public License v3 (GPLv3)
If you wish to let the wider Sims community know, be sure to leave them a link to this repository!
Thank you to the following:
These wiki pages for documenting the UI, DBPF and compression format:
This implementation of the QFS compression algorithm, which we ported to Python:
And contributors who committed fixes!