Re: Help with Google SketchUp
Reply #7 –
First of all, please align the building's background with the bottom of the image. After that, let's go with the dat file.. I'll code it as a curiosity building located inside the city
The whole content of the dat file
Obj=building
Name=Church
copyright=velohr
Type=cur
P****engers=5
Build_Time=150
intro_year=1410
retire_year=1960
needs_ground=1
climates=tropic,mediterran,temperate,tundra,rocky,arctic
BackImage[0][0][0][0][0][0]=church_img.0.0
Short explanation (ignoring the first three lines):
- There're different buiding types depending on the use of the building (comercial, industrial, residential, tourist attraction, monument, etc..) In this case, the right value for Type, as we're considering it as a curiosity building, is cur.
- After that, every curiosity building has its p****engers level (P****engers) and a flag that sets up when is it going to be built according to the city population (Build_Time).
- The intro_year and retire_year are optional, but interesting to make the object compatible with games with timeline enabled.
- If the object's own background doesn't fill the whole tile, you must indicate the graphic engine that it has to fill the gaps with terrain background, so the proper value for needs_ground would be 1.
- climates are also optional. If you don't set them, the object will be available in all climates.
- Finally goes the image reference called BackImage. In this case, the object occupies a single 128-size tile, so we write just one line. You must replace church_img by the name of the church's png image. The rest of details are explained in deep at the wiki.
Copy that code in a txt file and save it with dat extension. Then, use Pakhelper to create the pak file from the dat and png files. You don't need to modify the image as it's 128x128, that means it takes a single square. If it's bigger (2x1, 3x3, etc..) you must chop it with another tool called Tilecutter.
Again, I recommend you to read the wiki carefully and try follow the examples, using the sources from the SVN to make some tests.. Practicing is the shortest way to learn.