Add Any Lot Size (edited 01/16/2014)

SCREENSHOTS
Downloaded 197,949 times 6,766 Thanks 2060 Favourited 705,810 Views
 Say Thanks!
Picked Upload!   This is a picked upload! It showcases some of the best talent and creativity available on MTS and in the community.
Uploaded: 11th Mar 2012 at 6:44 PM
Updated: 16th Jan 2014 at 6:24 PM - added note about patch 1.66
01/16/2014: still works with 1.66
10/18/2013: still works with 1.63
09/04/2013: still works with 1.57
07/07/2013: added v1.0.3 in the uploads for those that aren't fully patched. If you have patch 1.50 or earlier download that version.
06/19/2013: v1.0.4 updated mod to fix code changes in patch 1.55. The patch added the ability to set the lot type and sub lot type for each preset and set a product version, though this function doesn't seemed to be used at the moment. For now the mod adds all new lot sizes as normal residential lots. Is there interest for (optionally) configuring the lot type when adding new lot sizes?



EA adds new community and/or residential lots in every expansion. Unfortunately the sizes of those lots can be completely random. Or even if they're not random, they could be 40x30, which is not available in the World Editor.

This script mod will allow you to add any size (from 1x1 to 64x64) to the World Editor from the cheat console:



Usage
Press Ctrl + Shift + C to bring up the cheat console. Then type "AddLotSize [width] [height]", e.g. "AddLotSize 32 29" without quotation marks. When you now switch into the World Editor, you should see the new lot size with a lot symbol with a question mark. Hover over the symbol to see the size in a tooltip popup.

The additions to the World Editor are not persistent between game sessions. However, pre-configured lot sizes will be added every time the mod is loaded. By default these are the lot sizes 40x30 and 50x40.

Tuning Options

If you want to change the default sizes that should always be added and you know how to modify .xml resources, you can change the VelocitygrassAddAnyLotSizeTuning.xml (Instance: 0xE5953153E5365909) in the package.

You'll find the following line in the .xml which you can adapt to your needs:
Code:
<kVelocitygrassLotSizesForEditWorld value="40x30, 50x40" />
Note: Buzzler has short instructions for making such changes here in the description. If you need support for this, please check the tutorial on XML Tuning Mods and post in the thread that is linked at the end.

You can also add your own icons for the default sizes:



To remove the default EA lot sizes set the following to true:
Code:
<kVelocitygrassClearExistingLotSizesForEditWorld value="false" />


Additional information

This is a scripting mod. It should not conflict with any other mods and should be safe to remove at any time.

This script was built for patch level 1.33, but a first version of it was done for patch 1.22, so it could also work in earlier versions, though I can make no guarantees.

Additional Credits:
Thanks to Peter and Inge Jones for S3PE, Inge Jones for the tuning mod to change lot sizes, armiel for Builder's Island - DIY, Buzzler for his mini-tutorial, which I shamelessly linked to, and the creators and maintainers of the XML Tuning mod tutorial.