The International Simutrans Forum

 

Author Topic: Compiling pre-release versions of Simutrans-Experimental  (Read 2001 times)

0 Members and 1 Guest are viewing this topic.

Offline AvG

  • *
  • Posts: 308
Compiling pre-release versions of Simutrans-Experimental
« on: December 14, 2010, 11:26:03 AM »
Mod note: This topic has been split from the topic, "Balancing 0.7 in 1750".

Hi Ras52,

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
« Last Edit: December 17, 2010, 12:43:40 PM by jamespetts »

Offline ras52

  • *
  • Posts: 83
Compiling pre-release versions of Simutrans-Experimental
« Reply #1 on: December 14, 2010, 11:51:48 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:

Code: [Select]
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:

Code: [Select]
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 might be of use if you're trying to compile on Windows.

Offline AvG

  • *
  • Posts: 308
Compiling pre-release versions of Simutrans-Experimental
« Reply #2 on: December 16, 2010, 09:03:40 PM »
Hi Raz52

The instructions in this post 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.

Offline ras52

  • *
  • Posts: 83
Compiling pre-release versions of Simutrans-Experimental
« Reply #3 on: December 17, 2010, 01:43:30 AM »
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.  If you don't have access to a version of git on Windows, then the try here.  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 on the German Simutrans wiki might also help.  It looks more up-to-date than the forum thread.
« Last Edit: December 17, 2010, 02:23:07 AM by ras52 »

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Compiling pre-release versions of Simutrans-Experimental
« Reply #4 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 :)