Difference between revisions of "Sims 3:Creating a game compatible Visual Studio project"

From SimsWiki
Jump to: navigation, search
m (Remove all existing references)
Line 1: Line 1:
==New Project==
+
==Step 1: Create a New Project==
 
[[Image:Sims 3-VS New Project.png|thumb|320px]]
 
[[Image:Sims 3-VS New Project.png|thumb|320px]]
  
Line 8: Line 8:
 
<div style="clear:both"></div>
 
<div style="clear:both"></div>
  
==Remove all existing references==
+
==Step 2: Remove all existing references==
 
[[Image:Sims 3-VS Remove References.png|thumb]]
 
[[Image:Sims 3-VS Remove References.png|thumb]]
  
Line 16: Line 16:
 
<div style="clear:both"></div>
 
<div style="clear:both"></div>
  
==Set the project to not reference mscorlib.dll==
+
==Step 3: Set the project to not reference mscorlib.dll==
 
[[Image:Sims 3-VS Do Not Reference.png|thumb|320px]]
 
[[Image:Sims 3-VS Do Not Reference.png|thumb|320px]]
  
Line 27: Line 27:
 
<div style="clear:both"></div>
 
<div style="clear:both"></div>
  
==Add references to the Sims 3 assemblies==
+
==Step 4: Add references to the Sims 3 assemblies==
 
[[Image:Sims 3-VS Add References.png|thumb]]
 
[[Image:Sims 3-VS Add References.png|thumb]]
 
[[Image:Sims 3-VS Add References Browse.png|thumb]]
 
[[Image:Sims 3-VS Add References Browse.png|thumb]]
Line 41: Line 41:
 
<div style="clear:both"></div>
 
<div style="clear:both"></div>
  
==Set the references to not Copy Local==
+
==Step 5: Set the references to not Copy Local==
 
[[Image:Sims 3-VS Select References.png|thumb]]
 
[[Image:Sims 3-VS Select References.png|thumb]]
 
[[Image:Sims 3-VS Set Copy Local.png|thumb]]
 
[[Image:Sims 3-VS Set Copy Local.png|thumb]]
Line 50: Line 50:
 
<div style="clear:both"></div>
 
<div style="clear:both"></div>
  
==Fin==
+
==Step 6: Fin==
  
 
You're now ready for coding. :)
 
You're now ready for coding. :)

Revision as of 19:15, 6 August 2009

Contents

Step 1: Create a New Project

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

Step 2: Remove all existing references

Sims 3-VS Remove References.png
  • Select all references, this is usually System, System.Data, and System.Xml..
  • Right-click the selected references, and select Remove.

Step 3: Set the project to not reference mscorlib.dll

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

Step 4: 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.

Step 5: Set the references to not Copy Local

Sims 3-VS Select References.png
Sims 3-VS Set Copy Local.png
  • Select all references.
  • Set the Copy Local property to False.

Step 6: Fin

You're now ready for coding. :)

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox