Advanced Modding – Buildings

Starting from version 2.700, Capitalism Lab supports user modifications of specific buildings.

Under the folder MOD_Kit\Images, you will find the following folders related to buildings:

  • Buildings
  • Buildings (Original)
  • Buildings_Icons

How to modify a building image

Here are the steps:

1) Find the building you want to modify in the “Buildings (Original)” folder, and copy the building subfolder to the “Buildings” folder.
For example, you want to modify the building image of Convenience Store, you can copy the subfolder “CONVENIE” from the “Buildings (Original)”  folder to the “Buildings” folder. The copied folder will be located at MOD_Kit\Images\Buildings\CONVENIE.
If you cannot figure which file to copy, you can look up the file name of the building you want to modify from the Excel file “Building filenames lookup.xls” in the “Buildings (Original)” folder.

2) Open the building folder that you have just copied (e.g. folder “CONVENIE” for Convenience Store building), and you will find the following subfolders and files:

  • “L” folder
  • “M” folder
  • “S” folder
  • FILELIST.TXT file
  • PACK.BAT – batch processing file

The 3 different zoom levels of building images are placed in the “L”, “M” and “S” folders respectively. When you modify the image files or create new ones to replace the existing ones, please make sure that the new image files conform to the following specifications:

  • The file must be in PNG format.
  • The background color must be pure green color (RBG values should be 0, 0, 255).
  • The building must be centered on the PNG image.
  • If the building is animated, the image files of the animation must be in alphabetic order.
  • If the building is animated, the number of individual image files in each of the “L’, “M” and “S” folders must be the same.
  • If the building is not animated, there should be only a single file in each of the “L’, “M” and “S” folders.

For example, below is the image file CONVENIE_1.PNG in the \MOD_kit\Images\Buildings (Original)\Convenie\L folder:

Zoom Level L of Building

3) When you have finished modifying the building images, edit PACK.BAT using a text editor like Notepad and change the output file name.

The default content of PACK.BAT is as follows:
..\..\..\MakeSprite FILELIST.TXT ..\Auto.SPR

In this example, you have modified the Convenience Store building and the building code for it is “CONVENIE“. So you have to change the text to the following:
..\..\..\MakeSprite FILELIST.TXT ..\CONVENIE.SPR

4) Now run the modified PACK.BAT file to compile the PNG files into a sprite file with .SPR file extension.
e.g. Run \Mod_Kit\Images\Buildings\CONVENIE\PACK.BAT to build CONVENIE.SPR

5) Go back to the building group folder Mod_Kit\Images\Buildings and run PACK.BAT to build BUILDING.RES which will comprise of all customized building files.
i.e. Run \Mod_Kit\Images\Buildings\PACK.BAT to build BUILDINGS.RES

6) Go to the Mod_kit’s root folder and run PACK.BAT to build a new MOD resource file.
i.e. Run \Mod_Kit\PACK.BAT to build CAPMOD.RES 


How to update the Building Icon file 

1) When you have modified the building image file, you may want to update the building’s icon file as well.

You can find building icon files under the folder \MOD_kit\Images\Building_Icons. Here are the specifications of the building icon files:

  • PNG file format
  • Size: 60×60 pixels

Below is an example of the Convenience Store icon:

Building Icon
2) Go to the folder Mod_Kit\Images\Buildings_Icons and run PACK.BAT to build BUILDING_ICONS.RES.

3) Go to the Mod_kit’s root folder and run PACK.BAT to build a new MOD resource file.


Sample Image files 

You can find sample image files for the Automobile Outlet building that come with the MOD kit at the Buildings folder and Building_Icons folder respectively.