Changes

Jump to navigation Jump to search
1,258 bytes added ,  14:33, 4 May 2016
no edit summary
Line 494: Line 494:  
</Incompatibilities>
 
</Incompatibilities>
 
</PersonalityGraph></pre>
 
</PersonalityGraph></pre>
 +
 +
== Furniture modding ==
 +
Furniture packages should be located in subfolders in the “Furniture” folder with the game. A furniture package will inherit its name from the folder name.
 +
 +
You can reload furniture while in-game by bringing up the console and executing the RELOAD_FURNITURE command.
 +
You can generate thumbnails by bringing up the console in the main menu and executing the FURNITURE_THUMBNAIL command with the name of your furniture as parameter.
 +
 +
=== The XML and basic tags ===
 +
Each furniture should be defined in separate XML files.
 +
 +
The root tag in a furniture xml file should have a Thumbnail attribute with a relative path to a 128x128 thumbnail it should use in-game.
 +
 +
The root tag can also have a Base attribute to inherit from an existing furniture from the game. If you define the attribute AutoBounds to “True”, the game will auto generate the navigation mesh and building boundary and vertical span based on the furniture meshes, otherwise these can be controlled in the Furniture component by setting the variables BuildBoundary, NavBoundary, Height1 and Height2.
 +
 +
If you add an UpgradeTo tag, this furniture will upgrade to the named furniture. If you add an UpgradeFrom tag, the named furniture will upgrade to this furniture.
    
== Modding with DLLs ==
 
== Modding with DLLs ==

Navigation menu