The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: PlayTrans2009 on September 03, 2009, 07:59:02 AM

Title: How to change settings of add-on building
Post by: PlayTrans2009 on September 03, 2009, 07:59:02 AM
I wanted to make a building but,

1) how to change the value?
2) how to let the mail level to be higher?
3) how to add a short note or description?

I'm also about to plan to make a trailer but,

1) how to let the trailer give cargo (eg. let the trailer only give wood)

BTW, I'm using pak96.

modnote: topic title changed; please use descriptive titles. --whoami
Title: Re: How to...
Post by: Isaac Eiland-Hall on September 03, 2009, 08:03:20 AM
Please put requests for help in "Help Requests".

Please pay attention when we move your threads so you may learn where things go.
Title: Re: How to...
Post by: PlayTrans2009 on September 03, 2009, 08:09:55 AM
*knocks head

I thought it should be on the "off topic of SimuTrans" topic. The help request is for only SimuTrans Game help.
Title: Re: How to...
Post by: PlayTrans2009 on September 07, 2009, 10:47:50 AM
 :o No replies... cheap.
Title: Re: How to...
Post by: edson on September 07, 2009, 10:56:23 AM
1 - Just change the level of the building!
2 - If the level of resident passengers will be higher, but if you trade, the level of e will be larger, all with the level, the higher generation of more mail and will travel!
3 - That I do not know!

  :-* Google Translate !
Title: Re: How to...
Post by: PlayTrans2009 on September 07, 2009, 11:23:05 AM
Ok. More..
Title: Re: How to...
Post by: Spike on September 07, 2009, 11:24:51 AM
3) You need to add the text in the language files (en.tab, de.tab ...) Once your object went into the set officially, you can do this via SimuTranslator.
Title: Re: How to...
Post by: PlayTrans2009 on September 07, 2009, 11:34:17 AM
Hajo, what do you mean...  ???
Title: Re: How to...
Post by: Spike on September 07, 2009, 11:40:55 AM
Quote from: PlayTrans2009 on September 03, 2009, 07:59:02 AM
3) how to add a short note or description?

The description texts are not part of the pak file. They are stored in so-called language files. You can find them inside the pak set directory, I think in the "text" subdirectory.

There are files like en.tab, de.tab (English, Deutsch ... translation tables) and so on, with all language specific texts.

These files contain text, in pairs of lines, like:

small_house
A small house, usually found in the suburbs of the city.


The first line is the object name, the one that you gave in the DAT file.
The second line is the text that Simutrans will show for the chosen language if you open an info window for this object.

Title: Re: How to...
Post by: PlayTrans2009 on September 07, 2009, 11:43:31 AM
Quote from: Hajo on September 07, 2009, 11:40:55 AM
The description texts are not part of the pak file. They are stored in so-called language files. You can find them inside the pak set directory, I think in the "text" subdirectory.

There are files like en.tab, de.tab (English, Deutsch ... translation tables) and so on, with all language specific texts.

These files contain text, in pairs of lines, like:

small_house
A small house, usually found in the suburbs of the city.


The first line is the object name, the one that you gave in the DAT file.
The second line is the text that Simutrans will show for the chosen language if you open an info window for this object.



So, it should put : en.tab=A small house, usually found in the suburbs of the city.
Title: Re: How to...
Post by: Spike on September 07, 2009, 11:47:25 AM
Steps to alter Englisch texts:

1) Find en.tab in your pak folder
2) Open with text editor
3) Add pair of lines
3a) First line is object name
3b) Second line is description text
4) Save (former Simutrans versions needed Unix style newlines in these files. I don't know if this is still required).

Example from old pak64

A1_ALTE_KIRCHE
Famous church\n\nA famous old church with\nmarvellous paintings.\nEverybody should see this\nfantastic building.\n
A2_SCHLOSS1
Fairy-tale castle\n\nThe castle of the crazy king. This is really worth seeing!\n
A3_BURG1
Castle ruins\n\nSome ruins telling of better times. They're\nalways worth a journey.\n
A4_SCHLOSS2
Old castle\n\nAn old castele with a marvellous collection of paintings. Perfect for a sightseeing tour, even when it rains.\n
A5_STONEHENGE
Stonehenge\n\nAn ancient ring of stones. Feel the mystery, walking between the monoliths.\n
A6_DOME
Old cathedral\n\nthe very heart of this city\nfor nearly thousand years.\n
ANIM_CINEMA
Animation Cinema\n\n
A_FRAME_HOUSE
A-Frame type house.\n
Ballonstart
A balloon starting and landing place.\n
BANK
A drive through bank.\n
BARCELONA_GRAND
Barcelona grand hotel.\n
Title: Re: How to...
Post by: PlayTrans2009 on September 07, 2009, 12:10:51 PM
So, it should be like this:

Building:
*objectname from pak*
*Name*
*Description*

Example:
COM_96c_cool (building.COM_96c_cool.pak)
Cool Office Building
It has a lot of air-condition.\n


Is "\n" an optional?
Title: Re: How to...
Post by: Spike on September 07, 2009, 12:31:44 PM
I think this is the right way, if you want an extra line for the name:

COM_96c_cool
Cool Office Building\n\nIt has a lot of air-condition.\n


I don't know if the last \n is optional. My files always seem to have it. Better use it, until someone can clear this up.