• Stars
    star
    238
  • Rank 169,306 (Top 4 %)
  • Language
    C#
  • License
    Mozilla Public Li...
  • Created over 2 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Open source re-implementation of The Sims 2 in Unity

OpenTS2

OpenTS2 is an Open-Source Reimplementation of The Sims 2, using the Unity game engine. Also aims to provide a number of modular libraries for working with TS2 formats in a C# environment.

Progress

Currently a basic main menu with a neighborhood chooser is implemented. Neighborhood info can be previewed and a basic neighborhood view can be accessed. image

Acknowledgements

Similar Projects

  • FreeSO - Open Source reimplementation of The Sims Online using C# and Monogame. OpenTS2 borrows a lot of code and structure from this project.
  • Las Marionetas - Similar project, aiming to reimplement The Sims 2 by reverse engineering its binary code into C/C++ source code.
  • SimUnity2 - Earlier attempt at a TS2 reimplementation in the Unity engine. Abandoned, succeeded by this project.
  • OpenTPW - Open Source reimplementation of Sim Theme Park / Theme Park World.
  • OpenRCT2 - Open Source reimplementation of Rollercoaster Tycoon 2.

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Development

Prerequisites

  • Unity 2020.3.32f1 - Can be found under "Unity 2020.x", you could also download the Unity Hub and install from there. Unity version is subject to change, please keep an eye on this!
  • Visual Studio 2019
  • A copy of The Sims 2 Ultimate Collection

Setup

  1. You need to have a "config.json" file in the root folder that provides paths to your Sims 2 UC installation and user directories. Copy the "config.example.json" file and rename it to "config.json" to start off, and type in your own paths.
  2. In Unity, make sure Edit > Preferences > External Tools > External Script Editor is set to Visual Studio. By default it opens files separately as opposed to in a solution.

Project Structure

We follow the layout of a normal Unity project except:

  • Assets/Scripts/OpenTS2 - Contains the bulk of the C# code that deals with TS2 formats and files.
  • Assets/Scripts/OpenTS2/Engine - Unity specific code tends to live in here to keep it separate from the more language-independent code in the directory.
  • Assets/Tests/OpenTS2/ - Unit tests following the same directory structure as the Scripts folder.

Testing

We currently use the Unity Test Runner for unit testing code. These tests can be run inside of unity through the test runner tab or if you use Rider as your C# editor, inside of it.

More Repositories

1

SimUnity2

Attempt at a reimplementation of The Sims 2 Ultimate Collection in the Unity Engine...
C#
48
star
2

AlderLakePatcher

Frontend for patching games to fix Alder Lake crashes on boot.
C#
45
star
3

Sims2RPC.com

Custom Launcher for The Sims 2.
HTML
17
star
4

TS3FrameratePatch

ASI Plugin that improves performance on non-Origin versions of The Sims 3.
C++
10
star
5

CC-Merger

Sims 2 package merger
C#
5
star
6

sbox-skateboard

Pro Skater clone for S&Box
C#
2
star
7

DriverPLHook

A basic, experimental C++ interface for modding Driver Parallel Lines
C++
2
star
8

BRC-LuaEngine

Lua scripting for Bomb Rush Cyberfunk
C#
2
star
9

BRC-CommonAPI

General library to make modding aspects of Bomb Rush Cyberfunk easier.
C#
2
star
10

RPCLib

Patches some small things for TS2
C++
1
star
11

DizzysThumbnailHack

Dizzy's Thumbnail Hack edited to work with UC or any other M&G Install of The Sims 2
C++
1
star
12

Thieving-Hexe

C#
1
star
13

TS3PatchLauncher

Launcher for Origin Sims 3 that loads ASI mods automatically, made for Smooth Patch.
C++
1
star
14

RandomizerFixPatcher

Patches Sims 2 Mansion & Garden No-CD executables with the Randomizer Fix Mod.
C#
1
star
15

TS2HeightMod

Height ASI mod for The Sims 2
C++
1
star
16

TS3ShadowExtender

ASI plugin that extends the distance of shadows in The Sims 3
C++
1
star
17

FacePresetEditor

Editor for Sims 3 CAS Face Presets
C#
1
star
18

D3DShaderReplacer

Proof of Concept for a DLL Hook that allows the replacement of shaders in D3D9 software.
C++
1
star
19

CarJack

C#
1
star
20

BRC-CommonAPI-Sample

Example plugin that uses the CommonAPI for Bomb Rush Cyberfunk.
C#
1
star
21

TS2-HiddenCheats

TS2 - Restores inaccessible console cheats.
C++
1
star
22

HugeLotsTS2

Allows lots over 60x60 in size for The Sims 2.
C++
1
star
23

IntelFix

Fix Intel launch issues on TS3.
C++
1
star
24

TS3BurglarHate

Script Mod that makes Sims dislike burglars that break into their house.
C#
1
star
25

LD-CrewBoom

Lazy Duchess' CrewBoom Unity Project Fork
C#
1
star