The International Simutrans Forum

PakSets and Customization => Pak128 => Topic started by: velohr on September 02, 2009, 08:22:18 am

Title: Help with Google SketchUp
Post by: velohr on September 02, 2009, 08:22:18 am
Hello everyone!
I'm constructing buildings for a long time in SketchUp. But, I'm having some problems in converting it into a playable .pak file for pak.128 simutrans. So I'm curious if anyone could make it for me. I'll send you my models, and you should just convert it and send me it, or better, publish it here for everyone! Thank you!

Here are some of my models:
(http://img268.imageshack.us/img268/8571/50620634.png)[/URL[URL=http://img143.imageshack.us/i/tower.png/](http://img143.imageshack.us/img143/7982/tower.th.png) (http://img268.imageshack.us/i/50620634.png/)
(http://img134.imageshack.us/img134/3102/poljud.th.png) (http://img134.imageshack.us/i/poljud.png/)
Title: Re: Help with Google SketchUp
Post by: vilvoh on September 02, 2009, 08:36:23 am
Well, you're very close to the end. The hardest part is done (modeling and adding textures) so I guess the problem is the camera position, am I wrong? If not, you just need to write the dat file, and there are lots of examples along the forum. Come on, you can finish it alone.. ;)
Title: Re: Help with Google SketchUp
Post by: velohr on September 02, 2009, 08:38:53 am
Yes, modeling is easy for me, and I enjoy it, but writing the dat file is harder, and plus, I read all the instructions on simutrans wiki, but I don't get it. And makeobj isn't working on my computer...Aaaaaarghhh!
 :)
Title: Re: Help with Google SketchUp
Post by: vilvoh on September 02, 2009, 08:49:40 am
As they're simple buildings, the dat files are really easy to create..You can use samples from the Simutrans pakset sources at the SVN repository (http://simutrans.svn.sourceforge.net/viewvc/simutrans/pak64/).

For the makeobj issue, if you're a windows user the best choice is using Pakhelper. (http://minami-fukuoka.simutrans.net/english/pakhelper.html)
Title: Re: Help with Google SketchUp
Post by: velohr on September 02, 2009, 08:54:19 am
Oh, could you please just make the first model for me, the church? Pleaseeeeee, just to see how does it go!!!
Title: Re: Help with Google SketchUp
Post by: vilvoh on September 02, 2009, 09:00:51 am
Uhm....Ok, but just that one exceptionally. :)...Please, post the png images with the right size and I'll help you with the dat file.
Title: Re: Help with Google SketchUp
Post by: velohr on September 02, 2009, 09:12:20 am
(http://img259.imageshack.us/img259/1613/novo2.png) (http://img259.imageshack.us/i/novo2.png/)

If you need anything more just say!
Title: Re: Help with Google SketchUp
Post by: vilvoh on September 02, 2009, 09:50:50 am
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
Code: [Select]
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):

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.  ;)
Title: Re: Help with Google SketchUp
Post by: velohr on September 02, 2009, 10:01:41 am
like this??? (http://img266.imageshack.us/img266/1613/novo2.png) (http://img266.imageshack.us/i/novo2.png/)
 I' tried to make it myself, it works, but it doesn't look good, you can see that background of the picture...:(
Title: Re: Help with Google SketchUp
Post by: vilvoh on September 02, 2009, 10:14:11 am
In this case, It's better to render the image and then use a program like Ms Paint, GIMP or Photoshop to correct the possible alignment problems, among many other details. See the attached png.

Btw, I forgot to mention that the img background color must be E7FFFF (it's the transparent color code in Simutrans)
Title: Re: Help with Google SketchUp
Post by: velohr on September 02, 2009, 10:48:57 am
it doesn't work...thank you for your time and help