Mirror of Simutrans SVN Repository
C++ C Squirrel Awk NSIS Makefile Other
Latest commit 37d9720 Jan 13, 2018 @Dwachs Dwachs FIX: building underground transformers respects way_height_clearance
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@8370 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: connect canal bridges to open sea Jan 13, 2018
boden FIX jps route finding: also turn to get around/into canals Jan 13, 2018
dataobj FIX: correctly initialize way_height_clearance in settings_t Jan 13, 2018
descriptor FIX: citycar lifetime is only months for setting bits_per_month=20 Nov 8, 2017
display CODE: some more utf32's were missing Dec 9, 2017
documentation translate komponente to component Aug 16, 2014
finder Improved placefinder function names Feb 21, 2017
gui CHG: gui_checkbox_width and height to define size of checkbox Jan 10, 2018
ifc CODE: get_cost takes weg_t* as second parameter, direction as fourth,… Feb 13, 2017
makeobj Print makeobj version number on stdio if no quiet mode Oct 17, 2017
music sound files for new mac sound support May 22, 2017
nettools move network-related code to network/ Aug 7, 2013
network FIX: server list stuck showing 'server did not respond' Dec 11, 2017
nsis NSIS update for paksets Jan 5, 2018
obj Redraw fields on delete to assure complete removal of their image. Aug 18, 2017
player FIX save/load of scripted AI players, whose script crashed during loa… Dec 15, 2017
script sqapi ADD methods is_valid to check whether in-game object is still p… Dec 30, 2017
simutrans JIT2 add demand based production rate scaling. Revise factory info UI… Dec 20, 2017
sound Fix missed UTF-8 IO calls. Oct 22, 2017
squirrel squirrel: change type macro to sqtype Aug 9, 2017
themes.src FIX themes - better text colour for background windows Apr 9, 2017
tpl FIX crash with minimap isometric view and resizing Apr 2, 2017
translate_code besch -> desc Feb 2, 2017
utils Correct Windows builds search_path logic to comply with Windows API. Oct 18, 2017
vehicle FIX: DESTITANTION_CITYCARS working again Jan 10, 2018
.desktop Desktop file and icon for Linux (will not display automatically anyway) Apr 29, 2016
.gitignore ADD: scripted scenarios Aug 3, 2012
Makefile close #3, was implemented long ago Nov 11, 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 more cityrule rotation changes Apr 10, 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 Use modern heap memory functions for Windows build clipboard function… Oct 27, 2017
common.mk Using HOSTCC to allow for crosscompiling May 22, 2017
config.default.in switch off AVFoundation for autoconf, since it normally does not exis… May 23, 2017
config.template (TH Leaders) use new audio code on make May 22, 2017
configure.ac switch off AVFoundation for autoconf, since it normally does not exis… May 23, 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 FIX: DESTITANTION_CITYCARS working again Jan 10, 2018
simcity.h FIX: DESTITANTION_CITYCARS working again Jan 10, 2018
simcolor.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
simconst.h FIX: 15 bit RGB 555 was broken for long Apr 11, 2017
simconvoi.cc CHG/FIX: unload everything before a depot and take care of lost ware … Oct 18, 2017
simconvoi.h ADD: (THLeader+prissi) longer configurable convois Jun 6, 2017
simdebug.cc Separated debug optmisation and text output levels Feb 19, 2017
simdebug.h FIX compiling with MSG_LEVEL>=4 was broken Aug 11, 2017
simdepot.cc ADD: sort vehicles in deport (HyperSim/dwachs) Dec 9, 2017
simdepot.h ADD: sort vehicles in deport (HyperSim/dwachs) Dec 9, 2017
simevent.cc Fix and translate comments round 2 Feb 17, 2017
simevent.h FIX: several problems with scrollbars and combo boxes Apr 2, 2017
simfab.cc JIT2 add demand based production rate scaling. Revise factory info UI… Dec 20, 2017
simfab.h JIT2 add demand based production rate scaling. Revise factory info UI… Dec 20, 2017
simhalt.cc FIX do not stop route_search too early Aug 11, 2017
simhalt.h Move drawing functions to 16bit colour - better theme colours Mar 15, 2017
siminteraction.cc Unicode support with long path, DSG flavor Oct 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 Dynamically resize and reposition loading bar elements. Oct 23, 2017
simloadingscreen.h Fix and translate comments round 2 Feb 17, 2017
simmain.cc Unicode support with long path, DSG flavor Oct 17, 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 (user-friendly) FIX defining explicit object in menuconf.tab Dec 1, 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 FIX: building underground transformers respects way_height_clearance Jan 13, 2018
simplan.h CHG: sort halt_list in finish_rd, some speedup for loading large games Jul 19, 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: explicit conversion to char needed for printf Oct 17, 2017
simsound.h translate bild -> image Nov 26, 2016
simsys.cc Fix nightly build errors. Oct 18, 2017
simsys.h Unicode support with long path, DSG flavor Oct 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 MSVC POSIX backend build fixes. Dec 12, 2017
simsys_s.cc Fix and translate comments round 2 Feb 17, 2017
simsys_s2.cc Overlooked old Unicode decoding call. Fixed some warnings. Oct 27, 2017
simsys_w.cc Fix (hopefully) various off-by-one errors when it comes to alt+tab cy… Dec 16, 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 FIX: building underground transformers respects way_height_clearance Jan 13, 2018
simtool.h CODE: use rdwr_custom_data to send signal spacing settings Sep 1, 2017
simtypes.h CHG Macro expansions should not contain defined Jul 8, 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 ADD: (THLeader+prissi) longer configurable convois Jun 6, 2017
simware.cc rename warenbauer references to goods_manager Feb 2, 2017
simware.h besch -> desc in comment Feb 2, 2017
simworld.cc Network synchronization improvements and better defaults. Dec 11, 2017
simworld.h Network synchronization improvements and better defaults. Dec 11, 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 Change invalid Unicode handling to ISO-8859-1 interpretation instead … Nov 2, 2017
unicode.h Change invalid Unicode handling to ISO-8859-1 interpretation instead … Nov 2, 2017

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