


The bare code skeleton VS created should still look like this: Now bring up the actual code file of your project again. To get VS to stop whining about some ostensible errors, close and re-load the project in VS. Change these attribute values to modify the information General Information about an assembly is controlled through the following Add using Sims3.SimIFace and to it and save. When VS first opens AssemblyInfo.cs, it will probably throw lots of errors at you. Double-click on AssemblyInfo.cs to open it.Open the Solution Explorer for your project.I'll explain why we need to do that later in this tutorial. Start Reflector and load the core libraries with it.īefore we look at the actual code, we need to set up the VS project to support tunable values.Create a game-compatible Visual Studio project as explained here: Sims_3:Creating_a_game_compatible_Visual_Studio_project.Sims3Metadata.dll (from scripts.package).Sims3GameplaySystems.dll (from gameplay.package).Sims3GameplayObjects.dll (from gameplay.package).Sims3StoreObjects.dll (from gameplay.package).When done, you must have the following list of libraries extracted to the same folder, with the following names: Repeat steps 3 to 7 for every package listed under step 2.Repeat steps 4 to 6 for every S3SA resource in the package.

Choose a sensible folder for the library and save it under the exact name it gives you.Right-click on the resource and choose "Export DLL".Note that S3PE shows some information about that resource in the preview area. In this folder are three packages: gameplay.package, scripts.package, and simcore.package Navigate to the installation folder of The Sims 3 and from there to the sub-folder where the executable is located.Extract the core libraries with S3PE if you haven't already.If you fail to accomplish that, you can't hope to successfully write scripting mods. A game that is properly set up to support scripting mods.A basic understanding of the C# syntax or at least any C-like language.

NET Reflector, simply called Reflector later on NET assembly browser/decompiler - this tutorial refers to redgate.
