readme.txt 9.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
-----------------------------------------------------------------------------

The most common error is the attempt to start the program without
installing a graphics set. This is not possible!

*** PLEASE MAKE SURE TO HAVE INSTALLED A PAK-SET TOO! ***

Simutrans cannot start without the graphics in the pak set!

-----------------------------------------------------------------------------

The purpose of this document is to explain the configuration options of
Simutrans. There are currently two styles of options:

1) entries in the simuconf.tab file
2) command line options


Simuconf.tab
------------

Simuconf.tab contains a rather large number of general configuration
settings for Simutrans.

Simuconf.tab can be found at several locations. First searched is
config/simuconf.tab. Next is pak/config/simuconf.tab (or whatever
pak-path your specified. Finally, simutrans/simuconf.tab in your home
directory ("My Documents" under Windows resp. "~" under Unix).

It is a text file and can be edited with a text editor. Each entry has
a comment explaining what the entry is good for and what values are
allowed for this entry.


cityrules.tab
-------------

cityrules.tab is either located pak/config/cityrules.tab or in
simutrans/cityrules.tab in your user directory. It is a text file and
can be edited with a text editor.

cityrules.tab contains the set of rules which determines the extension
of towns during city growth. There are two city related settings in the
top, the minimum distance between cities (minimum_city_distance)
and the step whenever a new industry will be founded
(industry_increase_every). Set this to zero, if no new industry should
be founded during a game.

The actual rules are of two types:
house building rules and road building rules.
Each rule has a probability (house_xyz.chance) between -1 and -7 and
a square with describes allowed surroundings for this house rule. The
square is composed by ASCII rows, with each symbol standing for:
S = must not be road
s = must be road
n = must be bare land
H = must not be house
h = must be house
T = must not be a stop
t = must be a stop
U = way must not be buildable on slope
u = way must be buildable on slope
. = matches anything


Simutrans command line options
------------------------------

Alphabetical list of options:

-addons
-announce
-debug n=1..4
-freeplay
-fullscreen
-help
-lang en
-load bla[.sve]
-log n=0|1
-noaddons
-nomidi
-nosound
-objects path/
-pause
-res n=1..5
-screensize 600x350
-server
-server_dns IP/name
-server_name text
-server_admin_pw pwd
-singleuser
-timeline n=0|1
-use_workdir


Detailed Description
--------------------

1.) Choose a resolution:

1a.) Choose a 'standard' resolution

simutrans -res n

where n is one of 1,2,3,4,5

The switch -res chooses the resolution at program start:

1 = 640x480
2 = 800x600
3 = 1024x768
4 = 1280x1024

Resolution no. 5 runs Simutrans in a window instead of fullscreen mode
(Windows version only)

THIS SWITCH IS DEPRECATED AND ONLY KEPT FOR COMPATIBILITY!
Please use -screensize WxH instead (see section 1b) !

Use this switch at your own risk! Using a wrong resolution may damage your
monitor! Up to date monitors should support all resolutions, but older
monitors may have problems with the higher resolution settings. Don't expect
all resolutions to be available with your graphics card. The program will
abort the starting process if the graphics card doesn't support the chosen
resolution.

The default resolution was 640x480. Simutrans version 0.78.4 and newer
have a default resolution of 800x600. Please note that bigger resolutions
slow down the game. If Simutrans runs too slowly on your system, use a
smaller screen resolution. Windowed mode (-res 5 on Windows) may be
slower than fullscreen, but this depends strongly on your resolution and
machine.


1b.) Choose an arbitrary resolution

simutrans -screensize 900x400

More general the syntax is -screensize WIDTHxHEIGHT
where width and height are integral values separated by a small x.
This format is strict. Simutrans will not tolerate spaces or other
format elements.

I suggest only to use widths being a multiple of 16 and even heights,
other may cause problems.

Full screen support by -fullscreen.

Use with care! I'm sure you can screw up things if you use values which
are not supported by your system. Use on your own risk ... i.e.
using -screensize 1600x1400 might damage your monitor if the graphics
card switches to that resolution, but your monitor cannot! I give
absolutely no warranty for any results of using that option!!!

Please note that if width is set below 640, parts of the toolbar will
not be visible and can't be used. In general setting width to less than 640
and height to less than 400 will most likely cause trouble ... the program
does not check the values! As said above, use with care, no warranties are
given!


2.) Copy output messages into a logfile:

simutrans -log 1

This writes all messages which are output after the game switches to graphics
mode to a file named "simu.log". This file might be helpful when reporting
problems, you might consider to log a replay of the problem and attach the log file
to your bug report at the simutrans forum. Please zip (compress) large log files before
sending them. Don't forget your explanation of the problem is much more important
than the log file when reporting problems.

The -debug switch turns on additional debug messages. The recommended
combination is "-log 1 -debug 3"

Behind -debug you can give a debug level. 1 only errors [default], 2 logs also
warnings, 3 all messages and 4 will generate a division by zero on a fatal
error to allow for a backtrace.


3.) Run Simutrans in free playing mode (bankrupt check turned off):

simutrans -freeplay


4.) Getting help

simutrans -h
simutrans -?
simutrans -help
simutrans --help

All print a quick help message, which contains all supported command
line options.


5.) starting a server (without port number, it will be on port 13353

simutrans -server [portnr]

It is recommended to start server-games without addons with the pak
set without modifications.

If you want to announce your server, you need to supply a valid dns name
or IPv4 or IPv6 [] number via the commandline option like

"-server_dns myserver.homunix.org:13355"

Similarly you can set server name via -server_name "Testserver". More server related
settings can be specified in simuconf.tab.


6.) Use alternative PAK files

If you have an alternative PAK file set for Simutrans, such as the
winter scenario, you can use the following command line argument:

simutrans -objects winter_pak/ [-addons|-noaddons]

"winter_pak" is the directory where the PAK files are stored. Use the
name of your setup instead! The trailing slash is mandatory.

If you have a non-portable installation (i.e. no single user mode), then
you can have additional add-ons in your personal simutrans directory.
That way those are kept, when updating the main pak sets.
You can additionally specify "-addons" or "-noaddons" to force loading
or prevent addons to be loaded with a pakset. This overrides the setting
in simuconf.tab. "-noaddons" is default.

If you specify "-use_workdir" the simutrans environment from the current
directory will be taken. Otherwise simutrans will take the environment from
the directory where the executable is located.


7) Turn sound and music off (as of Simutrans 0.81.23exp)

7a) Turn sound off

simutrans -nosound

7b) Turn music off

simutrans -nomidi

This also helps if Simutrans crashes on startup due to buggy or
incompatible sound drivers. This is a problem especially in 64 bit Linux.


8) Switch on/off multiplayer

-singleuser

Will not search for files in your home directory. Simutrans will
write all files in its program directory, which must not be write
protected.


9) Timeline and startyear

Example: simutrans -timeline 1 -startyear 1950

9b) Timeline

simutrans -timeline <1 or 0>

0 = all vehicles are available from the start of the game
1 = More realistic. In 1930 are only some historical vehicles
    available. New vehicles will be introduced from time to time.

Example: simutrans -timeline 1 -startyear 1930

Default value: setting use_timeline in simuconf.tab

9b) Start year

simutrans -startyear <year>

Sets the starting year of the game

Example: simutrans -timeline 1 -startyear 1950

Default value : setting starting_year in simuconf.tab


10) load a game and do not show the initial window

simutrans -load mygame.sve

If you use -pause, then the loaded game will be paused. Same would
happen as a server when using the pause without connections feature.


11) define a language on startup using the iso codes

simutrans -lang en



All the above mentioned options can be combined, i.e.

simutrans -res 2 -log -objects winter_pak/

runs Simutrans in test mode, writes output to "simu.log", switches to
a resolution of 800x600 pixels and uses the winter pak files. Not
all options are available on all platforms, i.e. -async and -net are
only supported on Linux/X-Windows.


If you run into problems, or if you have questions, please visit the
feedback forum:

http://forum.simutrans.com/



Suggestions how to improve Simutrans are also always welcome.

If you're unsure how to report problems or change request, there are
two example forms packaged with simutrans. Use "problem_report.txt"
for problem reports and "change_request.txt" for change requests
if you send reports by email.



There are some Simutrans related web pages, you may want to visit them:

The official Simutrans home page:
http://www.simutrans.com

This readme file was written by Hansjörg Malthaner, November 2000,
Updated 8-Sep-2010 by Markus Pristovsek
Last update 16-Dec-2011 by Dwachs