Mirror of Simutrans SVN Repository
C++ C Squirrel NSIS Awk Makefile Other
Latest commit 1a1dfc0 Mar 23, 2017 @Dwachs Dwachs CHG: directly open script selection window when activating scripted A…
…I player

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@8149 8aca7d54-2c30-db11-9de9-000461428c89
Permalink
Failed to load latest commit information.
OSX CHG: only include osx.mk if OSTYPE == mac Mar 30, 2013
bauer FIX: less crashes and better error messages if number of input/output… Mar 17, 2017
boden FIX another clipping error, was visible with pak192.comic bridges Mar 19, 2017
dataobj CODE make the routines slope_type consistent (direction north -> slop… Mar 17, 2017
descriptor Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
display Missing function for Posix build Mar 21, 2017
documentation translate komponente to component Aug 16, 2014
finder Improved placefinder function names Feb 21, 2017
gui CHG: directly open script selection window when activating scripted A… Mar 22, 2017
ifc CODE: get_cost takes weg_t* as second parameter, direction as fourth,… Feb 13, 2017
makeobj Compiling on MSys2 with SDL2 requires dynamic linking of SDL2 plus au… Feb 18, 2017
music Translated comments Feb 17, 2017
nettools move network-related code to network/ Aug 7, 2013
network Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
nsis Back to nightly Feb 27, 2017
obj Pillar position code Mar 20, 2017
player translate ein/ausgang -> in/output Mar 18, 2017
script translate ein/ausgang -> in/output Mar 18, 2017
simutrans Missing function for Posix build Mar 21, 2017
sound Fix and translate comments round 2 Feb 17, 2017
squirrel squelch some warnings Nov 3, 2016
themes.src Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
tpl Fix and translate comments round 2 Feb 17, 2017
translate_code besch -> desc Feb 2, 2017
utils Separated debug optmisation and text output levels Feb 19, 2017
vehicle CODE remove unused method Mar 19, 2017
.desktop Desktop file and icon for Linux (will not display automatically anyway) Apr 29, 2016
.gitignore ADD: scripted scenarios Aug 3, 2012
Makefile Almost no assembler any more in simgraph16.cc Feb 26, 2017
Makeobj.vcproj rename besch to descriptor in project files Feb 2, 2017
Nettool.vcproj move network-related code to network/ Aug 7, 2013
Simutrans.manifest Added highres-aware manifest (Ters) Jan 3, 2016
Simutrans.sln Update MSVC 2012 Jan 21, 2017
Simutrans.vcxproj Rename includes for sucher -> finder Feb 20, 2017
buildOSXbundle.sh Fix and translate comments round 2 Feb 17, 2017
clipboard_internal.cc fix simgraph.h location in clipboard_internal.cc Aug 7, 2013
clipboard_w32.cc (Ters) Unicode now default Sep 17, 2015
common.mk FIX: changes for nightly mac builds Feb 8, 2015
config.default.in typo Feb 20, 2017
config.template Separated debug optmisation and text output levels Feb 19, 2017
configure.ac use autopconf to find out if bundling with pthread is needed Feb 19, 2017
convoihandle_t.h Remove references to the non-existent handle_as_id_tpl. Jun 21, 2007
distribute.sh use autopconf to find out if bundling with pthread is needed Feb 19, 2017
findversion.sh no shell substitutions in findrevision.sh any more Dec 21, 2014
freight_list_sorter.cc Fix and translate comments round 2 Feb 17, 2017
freight_list_sorter.h CODE: use karte_ptr_t in simline, simhalt, and others Nov 24, 2013
get_lang_files.sh Further work for a more universal build base Nov 11, 2014
get_pak.sh Release of 120.2 with mingw64 Makefile Feb 11, 2017
halthandle_t.h Remove references to the non-existent handle_as_id_tpl. Jun 21, 2007
linehandle_t.h Import version 88.07 Aug 20, 2006
macros.h cleanup: Remove obsolete C compatiblity. May 27, 2014
old.ico some forgotten files added Sep 4, 2006
old_blockmanager.cc Fix and translate comments round 2 Feb 17, 2017
old_blockmanager.h Translate laden_abschliessen -> finish_rd Jan 23, 2015
pathes.h Fix and translate comments round 2 Feb 17, 2017
readme.txt CHanges for compiling again on Haiku Aug 11, 2014
revision.jse MSVC pre-build event now doesn't trigger unnecessary file compilation… Dec 10, 2013
scrolltext.h Chnaged banner text again Nov 2, 2012
simcity.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simcity.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simcolor.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simconst.h Use the previous code for big endian Feb 28, 2017
simconvoi.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simconvoi.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simdebug.cc Separated debug optmisation and text output levels Feb 19, 2017
simdebug.h Separated debug optmisation and text output levels Feb 19, 2017
simdepot.cc translate parts of karte_t interface Feb 24, 2017
simdepot.h Fix and translate comments round 2 Feb 17, 2017
simevent.cc Fix and translate comments round 2 Feb 17, 2017
simevent.h Fix and translate comments round 2 Feb 17, 2017
simfab.cc translate ein/ausgang -> in/output Mar 18, 2017
simfab.h translate ein/ausgang -> in/output Mar 18, 2017
simhalt.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simhalt.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
siminteraction.cc Fix and translate comments round 2 Feb 17, 2017
siminteraction.h CODE: use karte_ptr_t in interaction_t Nov 24, 2013
simintr.cc translate parts of karte_t interface Feb 24, 2017
simintr.h translate display/, also IMG_LEER -> IMG_EMPTY Nov 26, 2016
simio.cc Many files include their own filename in a comment. Often the name is… Jun 10, 2007
simio.h Many files include their own filename in a comment. Often the name is… Jun 10, 2007
simline.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simline.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simlinemgmt.cc translate dataobj, fahrplan -> schedule Nov 27, 2016
simlinemgmt.h translate dataobj, fahrplan -> schedule Nov 27, 2016
simloadingscreen.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simloadingscreen.h Fix and translate comments round 2 Feb 17, 2017
simmain.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simmain.h Move remaining backends (SDL, X11) from C to C++. Jul 5, 2008
simmem.cc correct spelling: licence -> license Dec 16, 2011
simmem.h Remove unnecessary special case regarding guarded_free() for MSVC. Feb 5, 2012
simmenu.cc CHG: Shift with elevated ways allows to select the way for upgrade in… Mar 20, 2017
simmenu.h CHG: Shift with elevated ways allows to select the way for upgrade in… Mar 20, 2017
simmesg.cc FIX crash in message_t::node::rdwr Mar 17, 2017
simmesg.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simobj.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simobj.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simplan.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simplan.h Fix and translate comments round 2 Feb 17, 2017
simres.rc Added highres-aware manifest (Ters) Jan 3, 2016
simskin.cc Translate & normalise desc_t classes Mar 3, 2017
simskin.h translate skin_besch_t, xref_besch_t Feb 2, 2017
simsound.cc Fix and translate comments round 2 Feb 17, 2017
simsound.h translate bild -> image Nov 26, 2016
simsys.cc Fix and translate comments round 2 Feb 17, 2017
simsys.h Fix and translate comments round 2 Feb 17, 2017
simsys_d.cc Fix and translate comments round 2 Feb 17, 2017
simsys_opengl.cc Fix and translate comments round 2 Feb 17, 2017
simsys_posix.cc Fix and translate comments round 2 Feb 17, 2017
simsys_s.cc Fix and translate comments round 2 Feb 17, 2017
simsys_s2.cc Remove SDL_INIT_NOPARACHUTE in SDL2 Mar 15, 2017
simsys_w.cc Fix and translate comments round 2 Feb 17, 2017
simsys_w32_png.cc Fix and translate comments round 2 Feb 17, 2017
simsys_w32_png.h cleanup: Remove obsolete C compatiblity. May 27, 2014
simticker.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simticker.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simtool-dialogs.h translate display/, also IMG_LEER -> IMG_EMPTY Nov 26, 2016
simtool.cc CHG: Shift with elevated ways allows to select the way for upgrade in… Mar 20, 2017
simtool.h CHG: Shift with elevated ways allows to select the way for upgrade in… Mar 20, 2017
simtypes.h Fix and translate comments round 2 Feb 17, 2017
simunits.h CODE: proper r7246 Jun 13, 2014
simutrans.ico overweadwire built on top of slower now, new icon Sep 2, 2006
simutrans.svg Desktop file and icon for Linux (will not display automatically anyway) Apr 29, 2016
simversion.h Back to nightly Feb 27, 2017
simware.cc rename warenbauer references to goods_manager Feb 2, 2017
simware.h besch -> desc in comment Feb 2, 2017
simworld.cc Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simworld.h translate parts of karte_t interface Feb 24, 2017
stormoog.ico branch merged back to trunk Sep 25, 2006
todo.txt Update tot Jan 3, 2016
uncommon.mk use one uncommon.mk for both makeobj and nettool Oct 15, 2011
unicode.cc Fix and translate comments round 2 Feb 17, 2017
unicode.h CODE: don't use long. possible 64bit multiplayer grief Feb 9, 2015

readme.txt

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.yamagi.org/simutrans
username is "anon"!

A commandline would look like this:
svn checkout svn://tron.yamagi.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