The International Simutrans Forum

Simutrans Extended => Simutrans-Extended paksets => Pak128.Britain-Ex => Topic started by: AvG on December 14, 2010, 11:26:03 AM

Title: Compiling pre-release versions of Simutrans-Experimental
Post by: AvG on December 14, 2010, 11:26:03 AM
Mod note: This topic has been split from the topic, "Balancing 0.7 in 1750 (http://forum.simutrans.com/index.php?topic=6389.0)".

Hi Ras52,

Quote from: ras52 on December 13, 2010, 05:39:07 PM
Experimental.  Specifically, a git checkout from the 9.x branch -- so effectively a pre-release of 9.0.

This is very interesting for me. Could you download a prelim version 9,0 from James's Git? Exact location, filename?
I installed MSVC 2010 Express to be able to compile that version myself. However my knowledge of the whole C++ system is so rusty that it will take years before I can do that.


Your remark about horses in those late stages is correct. Understand my former message as: If you want to use horses in that era be prepared to deal with these costs and not making a profit. IF I add that Tori-horse to the Pak that will be the consequencis. This is the result of the systematic approach.

AvG
Title: Compiling pre-release versions of Simutrans-Experimental
Post by: ras52 on December 14, 2010, 11:51:48 AM
Quote from: AvG on December 14, 2010, 11:26:03 AM
This is very interesting for me. Could you download a prelim version 9,0 from James's Git? Exact location, filename?
I installed MSVC 2010 Express to be able to compile that version myself. However my knowledge of the whole C++ system is so rusty that it will take years before I can do that.

On Linux, I got the code by running:

git clone -b 9.x git://github.com/jamespetts/simutrans-experimental.git

I then created a config.default file in the simutrans-experimental/ directory containing just:

BACKEND = mixer_sdl
COLOUR_DEPTH = 16
OSTYPE = linux
DEBUG = 1


... and then ran make.  That gave me a working pre-9.0 executable called sim.

The instructions in this post (http://forum.simutrans.com/index.php?topic=652.0) might be of use if you're trying to compile on Windows.
Title: Compiling pre-release versions of Simutrans-Experimental
Post by: AvG on December 16, 2010, 09:03:40 PM
Hi Raz52

Quote from: ras52 on December 14, 2010, 11:51:48 AM
The instructions in this post (http://forum.simutrans.com/index.php?topic=652.0) might be of use if you're trying to compile on Windows.

Some days ago I saw and studied the MSVC-entry of VS. I just had installed MSVC and thought -Hey, that's what I need-.
First thing you have to do is installing the OpenTTD-libs. Looks simple, but after checking the link I see nothing that looks according the instructions.
Am I stupid or what?
AvG.
Title: Compiling pre-release versions of Simutrans-Experimental
Post by: ras52 on December 17, 2010, 01:43:30 AM
Quote from: AvG on December 16, 2010, 09:03:40 PM
Some days ago I saw and studied the MSVC-entry of VS. I just had installed MSVC and thought -Hey, that's what I need-.
First thing you have to do is installing the OpenTTD-libs. Looks simple, but after checking the link I see nothing that looks according the instructions.

I can't be sure this will help as I don't have access to Windows to test this.  But looking at the source code, I'm not sure you'll need anything that's not bundled with the Simutrans-Exp. code.  It looks like the OpenTTD-libs stuff comes in the utils/openttd directory these days, and certainly on Linux, the build system just takes care of building it all for you.  So I expect all you need to do is download the source code from github and then jump straight in at step O in these instructions (http://forum.simutrans.com/index.php?topic=652.0).  If you don't have access to a version of git on Windows, then the try here (https://github.com/jamespetts/simutrans-experimental/zipball/9.x).  Note that that link will give you a zip file, though it's filename may not make that clear; you may find you need to rename it so it ends with '.zip' before you can unpack it.

Update: This page (http://simutrans-germany.com/wiki/wiki/tiki-index.php?page=en_CompilingSimutrans) on the German Simutrans wiki might also help.  It looks more up-to-date than the forum thread.
Title: Compiling pre-release versions of Simutrans-Experimental
Post by: VS on December 17, 2010, 08:44:11 AM
Avg: oops, the thread sat there unchanged - and things around changed meanwhile. I'll look into this, if not, keep telling me until it's fixed :)