Previous Post

Making The Sims 2 more moddable than ever before

Next Post
DESCRIPTION

(CAS Room is https://modthesims.info/d/652857/nightlife-inspired-cas-room.html)

Hi!

In this post I'll be going over a work in progress tool that will make TS2 moddable in ways that weren't previously possible. Heavily inspired by GTA IV and V's ScriptHook mod.

The video above shows a test script made with this new tool, which checks the current neighborhood type and changes the CAS lot accordingly, giving you a unique CAS room if you're in Downtown (Sorry about the long loading, by the way). This is achieved with this simple script:


This tool is a .dll that gives you access to a lot of the functions, classes and systems in TS2, and allows you to inject new code into the game that runs every frame, on startup, etc. It even lets you create custom cheats:

The custom cheat above goes through every object in the current lot and outputs its name.

This is similar to what I've been doing with .asi mods all this time, but now I'm building an interface that lets you and myself more easily manipulate the game code in new ways.

You could add new interactions to objects without replacing their pie menu, modify the lighting to add more states than just morning/day/evening/night, create cheats to allow users to configure your mod or interact with your mod, add keys that execute scripts or commands, and much more. 

It's similar to script modding for TS3 or TS4, but brought to TS2.

It's still a work in progress, reverse engineering is no easy task, but it's coming together great and I'm very excited about its capabilities. In the future I would also love to look into making a .Net layer - TS3 modders are going to be familiar with this - in order to make it more friendly.

Hopefully modders will be interested, and we'll get some great things made with it!

Lazy Duchess PATREON 0 favs
VIEWS1
FILES1 file
POSTEDJul 19, 2023
ARCHIVEDJun 10, 2026