Skip to content
Sources for the Experimental branch of the popular game Simutrans
Branch: master
Clone or download
Pull request Compare This branch is 8449 commits ahead, 1670 commits behind aburch:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
OSX
bauer
boden
dataobj
descriptor
display CODE: do not include koord.h in scr_coord.h anymore Jan 8, 2019
documentation
finder
gui FIX: Off-by-one error in determining transfers for map Apr 22, 2019
ifc
makeobj
music
nettools
network
nsis
obj
player
script
simutrans
sound
squirrel
themes.src
tpl CHANGE: Some optimisation of path retrieval Mar 28, 2019
utils
vehicle
.cproject
.desktop
.gitignore
.project
.travis.yml
Makefile
Makeobj-Extended.sln
Makeobj-Extended.vcxproj
Makeobj.sln
Makeobj.vcproj
Makeobj.vcxproj
Makeobj.vcxproj.filters
Nettool-Extended.sln
Nettool.vcproj
Nettool.vcxproj
Nettool.vcxproj.filters
Notes for way wear feature.txt
Simutrans-Experimental-Server-BG.vcxproj
Simutrans-Experimental.vcxproj.filters
Simutrans-Experimental.vcxproj.user
Simutrans-Extended.sln
Simutrans-Extended.vcxproj
Simutrans.manifest
Simutrans.sln
Simutrans.vcxproj
base-texts-classes_gui.dat
base-texts-classes_gui_2.dat
base-texts-classes_gui_3.dat
base-texts-classes_gui_4.dat
base-texts-classes_gui_6.dat
base-texts-depot-window-refurbish.dat
base_texts_bridge-change.dat
base_texts_experimental-passenger-generation.dat
base_texts_experimental.dat Complement translationable in-game text Sep 9, 2018
base_texts_experimental_10.0.dat
base_texts_experimental_10.1.dat
base_texts_experimental_10.11.dat
base_texts_experimental_10.12.dat
base_texts_experimental_10.12_erratum.dat
base_texts_experimental_10.13.dat
base_texts_experimental_10.15.dat
base_texts_experimental_10.17.dat
base_texts_experimental_10.2.dat
base_texts_experimental_10.22.dat
base_texts_experimental_10.27.dat
base_texts_experimental_10.8.dat
base_texts_experimental_10.9.dat
base_texts_experimental_11.0.dat
base_texts_experimental_6_1.dat
base_texts_experimental_6_2.dat
base_texts_experimental_6_3.dat
base_texts_experimental_7_0.dat
base_texts_experimental_7_1.dat
base_texts_experimental_7_2.dat
base_texts_experimental_8.0.dat
base_texts_experimental_9.0.dat
base_texts_experimental_9.1.dat
base_texts_experimental_9.3.dat
base_texts_experimental_additional_5_0.dat
base_texts_experimental_additional_5_1.dat
base_texts_experimental_an-dz-2.dat
base_texts_experimental_an-dz_2.dat
base_texts_experimental_an_dz.dat
base_texts_experimental_braking_branch.dat
base_texts_experimental_forgotten_items_1.dat
base_texts_experimental_forgotten_items_2.dat CHANGE: Better fix for electricity consumption related crashes. Dec 29, 2010
base_texts_experimental_forgotten_items_3.dat
base_texts_experimental_modified_comfort.dat
base_texts_experimental_transshipment.dat
base_texts_extended_info_window_1.dat
base_texts_extended_info_window_3.dat
base_texts_extended_signals.dat
base_texts_phil_fix.dat CHANGE: Rename "Simutrans-Experimental" to "Simutrans-Extended" Feb 13, 2017
base_texts_walking_passengers.dat
buildOSXbundle.sh
bzlib.h
clipboard_internal.cc
clipboard_w32.cc
common.mk
config.default.in
config.template
configure.ac
convoihandle_t.h
convoy.cc
convoy.h
distribute.sh
findversion.sh
freight_list_sorter.cc
freight_list_sorter.h
get_lang_files.sh
get_pak.sh
halthandle_t.h Remove references to the non-existent handle_as_id_tpl. Jun 21, 2007
icon-256.ico
icon-32.ico
icon-64.ico
linehandle_t.h
load.txt
macros.h
old.ico
old_blockmanager.cc
old_blockmanager.h
path_explorer.cc
path_explorer.h FIX: Crashes on loading in some cases. Apr 7, 2019
pathes.h
play.sh
readme.txt
resource.h
revision.jse
scrolltext.h
simcity.cc
simcity.h FIX: Crashes on enlarging the map Apr 6, 2019
simcolor.h
simconst.h
simconvoi.cc
simconvoi.h
simctrl-simple.txt
simdebug.cc
simdebug.h
simdepot.cc
simdepot.h
simevent.cc
simevent.h CODE: Fix and translate comments round 2 (An-dz, from Standard) Mar 20, 2017
simfab.cc
simfab.h
simhalt.cc
simhalt.h FIX: Crashes on enlarging the map Apr 6, 2019
siminteraction.cc
siminteraction.h
simintr.cc
simintr.h
simio.cc CODE: Translated comments (An-dz from Standard) Mar 19, 2017
simio.h
simline.cc
simline.h
simlinemgmt.cc
simlinemgmt.h
simloadingscreen.cc
simloadingscreen.h
simmain.cc
simmain.h
simmem.cc
simmem.h
simmenu.cc
simmenu.h
simmesg.cc
simmesg.h
simobj.cc
simobj.h
simplan.cc Make minor changes to align spieler translation with Standard Apr 12, 2019
simplan.h
simres.rc
simsignalbox.cc
simsignalbox.h
simskin.cc
simskin.h
simsound.cc
simsound.h
simsys.cc
simsys.h
simsys_d.cc
simsys_opengl.cc
simsys_posix.cc
simsys_s.cc
simsys_s2.cc
simsys_w.cc
simsys_w32_png.cc
simsys_w32_png.h
simticker.cc
simticker.h ADD: Compass on map (Prissi, from Standard) Dec 12, 2015
simtool-dialogs.h
simtool.cc
simtool.h
simtypes.h
simuexbridges.ods
simunits.cc
simunits.h
simutrans-ex.ico
simutrans.ico
simutrans.svg
simversion.h
simware.cc
simware.h
simworld.cc
simworld.h
stormoog.ico
todo.txt
uncommon.mk
unicode.cc
unicode.h

readme.txt

The below text is written for Simutrans Standard. This file is part of the
Simutrans Extended source, which is a fork of Simutrans Standard. Most of
the information below still applies, but note in particular the following
differences:

The source for Simutrans Extended is stored using Git version control, and
can be found at:
https://github.com/jamespetts/simutrans-extended.git

References to 'Simutrans/sim' and 'sim' should be assumed to refer to the
root directory of the Git repository.

- Aug 2018

###########################################################################

How to compile
--------------

Congratulations, you checked out the simutrans source. To compile it,
you have two options, either using Microsoft Visual C++ Express (which
is free in Version 7.0 or up) or GCC.

To compile you will need the following libraries:
libz (http://www.zlib.net/)
libpng (http://www.libpng.org/pub/png/) for makeobj
libbz2.lib (compile from source from http://www.bzip.org/downloads.html)

For the recommended SDL-support you need
libSDL (http://www.libsdl.org/)
libSDL_mixer (link from the same page)

The link for allegro lib is:
http://www.talula.demon.co.uk/allegro/
or
http://alleg.sourceforge.net/index.de.html

To make life easier, you can follow the instructions to compile OpenTTD:
http://wiki.openttd.org/Category:Compiling_OpenTTD
A system set up for OpenTTD will also compile simutrans (except for
bzlib2, see below sections).

If you are on a MS Windows machine, download either MS VC Express or
MingW. The latter is easier to use as part of the DEV-C++ IDE, which
makes the installation of additional libraries like libz and libsdl and so
on very easy. However, to compile the command line is easier.

For all other systems, it is recommended you get latest GCC 3.46 or higher
and matching zlib, libbzip2, and libpng and a game library. For linux
systems you may have to use tools like apt-get or yast2.

To built on Haiku you must use GCC4 (type "setarch x86" in the current
nightlies). To incorporate bz2lib, download make bz2lib and add them
manually (via FLAGS = -I/dwonloadeddir -L/downloadeddir).

A subversion will be also a good idea. You can find some of them on:
http://subversion.tigris.org/
or you some other client.

Check out the latest source from the SVN or check out a certain revision.
I recommend always to use the latest source, since it does not make any
sense to work with buggy code.

The address is:
svn://tron.homeunix.org/simutrans
username is "anon"!

A commandline would look like this:
svn checkout svn://tron.homeunix.org/simutrans --username=anon


IMPORTANT:
----------

If you want to contribute, read the coding guidelines in
sim/documentation/coding_styles.txt


The following instructions are for GCC systems:
-----------------------------------------------

Go to Simutrans/sim.

Then copy the file sim/config.template to sim/config.default and edit the
file. You need to specify:
- frontend (gdi, allegro, sdl)
- color depth (usually 16)
- system (you should know it)

I recommend to uncomment #DEBUG=1 and #OPTIMISE = 1 (i.e. removing the #).

For allegro or libsdl you may need to define the path of the config file
(or at least on win98 and empty path).

Finally type make. If you want a smaller program and do not care about error
messages, you can comment out #DEBUG=1 and run strip sim resp. strip sim.exe
after compile and linking.

For users on window systems:
To debug, I recommend to run drmingw -i once in a shell. You will get a
caller history in case of an error. gdb does not really work well and is a
pain to use with the text interface.


The following instructions are for MS Visual C Express:
-------------------------------------------------------

Download Visual Express C++ (tested for 2008)
http://www.microsoft.com/express/Downloads/

In the OpenTTD wiki you will also find some useful instruction on
setting up MSVC:
http://wiki.openttd.org/Microsoft_Visual_C%2B%2B_2008_Express_Editions

You will need some libraries like zlib etc. Any version which is
compatible with VC will do. Take a look at the instructions for
compiling OpenTTD, which contains a libpng and a zlib suited for
simutrans too:
http://binaries.openttd.org/extra/openttd-useful/

The bzip2 source tarball comes with an archive where you can easily built
your own libbz2.lib file. Or use the one posted in the forum:
http://forum.simutrans.com/index.php?topic=652.msg37080#msg37080

For debugging, you have to set the correct working directory, i.e. the
directory where the pak/ folders are located and use the -use_workdir
command line option.

Berlin, Mai 2011
You can’t perform that action at this time.