Sims 3:Creating a game compatible Visual Studio project

From SimsWiki
Revision as of 23:07, 18 July 2009 by Rick (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

New Project

Sims 3-VS New Project.png
  • Set the framework version to .NET Framework 2.0.
  • Use the Class Library template.
  • Preferably prefix the name of the library with your name / handle. Eg, Gibbed.Sims3Game.Test is what I would use. —Rick

Remove all existing references

Sims 3-VS Remove References.png
  • Remove all references on the new project, this is usually System, System.Data, and System.Xml.

Set the project to not reference mscorlib.dll

Sims 3-VS Do Not Reference.png
  • Open the project properties.
  • Change to the Build tab.
  • Set the active configuraiton to All Configurations.
  • Click Advanced to open the Advanced Build Settings window.
  • Check Do not reference mscorlib.dll and click OK.

Add references to the Sims 3 assemblies

Sims 3-VS Add References.png
Sims 3-VS Add References Browse.png

You will need to have already extracted and decrypted the Sims 3 assemblies to do this step.

  • Right-click the References item in the Solution Explorer.
  • Select Add Reference....
  • Select the Browse tab.
  • Select all of the Sims 3 assemblies except TestGameplay and TestObjects. The assemblies you want to add are Automation, mscorlib, ScriptCore, SimIFace, Sims3GameplayObjects, Sims3GameplaySystems, Sims3Metadata, System, System.Xml, and UI.
  • Click OK.

Fin

You're now ready for coding. :)

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox