Railsimroutes.net

Railsimroutes.net

Railsimroutes.net - openBVE add-ons, media and news

 You are here: Home > Help & Information > openBVE Help & Information >Ubuntu 10.04 (Page 2) 

▪ openBVE Help and Information

This section of the site is designed to help you get started with the realistic openBVE train simulator in Windows (XP, Vista, 7) and Ubuntu 10.04, as well as guide you through the installation and first use of the Birmingham Cross-City South route to enable you to start driving. Some parts of this guide are geared towards novice users.

▪ Contents

Ubuntu 10.04 Users: [Click here to select a different operating system]

Page 1:
Page 2: (Current Page) Page 3:
Page 4:

▪ Manually downloading and preparing the latest official openBVE release and running with Mono

The version of openBVE available via the Ubuntu Software Centre, likely lags behind the latest version available from the official openBVE homepage. So, if you want to use the latest version of openBVE in Ubuntu, you need to download the latest stable release of openBVE from the official openBVE homepage:
Next, to make life easier, if you haven't already done so, install the Ubuntu version of openBVE via the Ubuntu Software Centre (see page 1). Doing so will also download and install additional dependencies automatically, so setting up the latest manually installed version of openBVE is more straightforward.

You can also install the dependencies which are installed automatically along with the Ubuntu version of openBVE, yourself, manually, by using apt-get. If you would like to do this, please continue reading. Otherwise, if you want some of the dependencies installing automatically, install the older version of openBVE via Ubuntu's Software Centre, and skip to the section below.


Manually installing some of the dependencies

  1. Firstly, go to 'Applications' > 'Accessories' > 'Terminal':

    Screenshot

  2. Next, enter the following commands in turn (you can copy and paste each line into the terminal window via Ctrl+Shift+V), answering yes (y) to the question "Do you want to continue [Y/n]?" whenever you are prompted. You will need a working internet connection for the following:

    sudo apt-get install libmono-i18n2.0-cil

    sudo apt-get install libmono-winforms2.0-cil

    sudo apt-get install libtaoframework-openal1.1-cil

    sudo apt-get install libtaoframework-opengl3.0-cil

    sudo apt-get install libtaoframework-sdl1.2-cil

    Plenty of things will happen in the terminal window after each command is entered, just monitor the console window for any questions requiring interaction, and wait for the shell prompt (<username>@<machinename>:~$) to reappear before trying to enter each command:

    Screenshot

We should be done. On to the next stage...



Once you've downloaded the latest official, stable release of openBVE, and installed some necessary dependencies (either using apt-get, or by installing the Ubuntu version of openBVE via the Ubuntu Software Centre), you need to decide where you want your new openBVE installation, and your openBVE content, to be located. Where your content folder is concerned, for the sake of simplicity, I'd place this in your /home/username/ directory, rather than trying to use the default location prepared when openBVE is installed via the Ubuntu Software Centre (/usr/share/games/bve/), as the latter is owned by root, so the operating system won't let you modify the directories unless you have superuser privileges. You can read this page on the official openBVE website for some additional information.

As a part of this tutorial, we need to create some new folders. Simply follow these steps, or adapt them to suit your own setup, as you see fit:

Preparing your openBVE folders

  1. Firstly, go to 'Places' > 'Home Folder':

    Screenshot

  2. A folder sharing your username will be opened. Next, right-click in a blank area and click 'Create Folder':

    Screenshot

  3. Now name your folder 'openBVE' and hit Enter, and then create a second folder, for example named 'openBVE_Content', and hit Enter:

    Screenshot

  4. Now double-click your 'openBVE_Content' folder to view it's contents, and create two new folders within it, named 'Railway' and 'Train'. Don't pluralise the names, you need to name them exactly as described here:

    Screenshot
Note: Be sure to remember the location of these new folders!



Now, we need to extract openBVE to the new 'openBVE' folder you just created. Simply follow these steps:

Extracting openBVE files

  1. Locate the 'openbve_stable.zip' file which you downloaded a few minutes ago; if you haven't changed any of Firefox's settings yet, it's probably located in your Downloads folder, accessible via 'Places' > 'Downloads'.

    Double-click the 'openbve_stable.zip' icon, and the following window will appear:

    Screenshot

    Click the 'Extract' button...

  2. Now, locate the 'openBVE' folder you created a couple of minutes ago; first select your home folder from the 'Places' list on the left (your username), then double-click the 'openBVE' folder to enter it. Note the folder name buttons at the top of the dialog to confirm this. Then, click the 'Extract' button. Other options in this dialog can be left as shown in the following screenshot:

    Screenshot

    Once the files are extracted, click the 'Close' button when presented with it, to exit the program.

The next step, is to obtain the dependencies (DLLs) which openBVE needs, in order to run.

  1. Download the Tao Framework (the tar.gz archived version): http://sourceforge.net/project/showfiles.php?group_id=170616&package_id=194813

    Inset image


Now we need to extract some DLLs from the Tao Framework package that you downloaded. Simply follow these steps:

Obtaining Tao Framework DLLs

  1. Locate the 'taoframework-2.1.0.tar.gz' file you downloaded, and double-click it's icon. When the archive manager window appears, double-click the 'taoframework-2.1.0' folder:

    Screenshot

  2. Now double-click the 'bin' folder which lies inside the 'taoframework-2.1.0' folder, and you'll see the following files listed. Select the following six files via multiple select (single-click one file, then press and hold down the Ctrl key while you click the next, then scroll down, hold down Ctrl again, and click on the third file):

    Tao.OpenAl.dll
    Tao.OpenAl.dll.config
    Tao.OpenGl.dll
    Tao.OpenGl.dll.config
    Tao.Sdl.dll
    Tao.Sdl.dll.config

    Then click the 'Extract' button:

    Screenshot

  3. Locate the folder where you extracted the openBVE files to previously, double-click that folder such that you see the openBVE files listed below, and then click 'Extract':

    Screenshot

The Tao Framework DLLs and configuration files should now be extracted to their correct location!



Next, we need to edit the Tao.OpenAl.dll.config file, to prevent an error message occuring while running openBVE. Thanks goes to Atylmo's Blog for this fix:
http://atylmo.wordpress.com/2009/08/13/howto-openbve-on-ubuntu-linux/.

Editing Tao Framework DLL configuration settings

  1. Locate the 'Tao.OpenAl.dll.config' file, right-click it's icon, and select 'Open with gedit':

    Screenshot

  2. Now, locate the following line...

    <dllentry os="linux" dll="libopenal.so.0" />

    ...and change the 0 to 1:

    <dllentry os="linux" dll="libopenal.so.1" />


    Screenshot

    Now just save the file.



Verifying your manual openBVE installation...

Verifying your installation

  1. Lastly, lets check that all the required files are present, as shown here:

    Screenshot

    Installation is complete!


Now we can test the installation by loading the route and train installed by default with the version of openBVE available via the Ubuntu Software Centre; currently a special copyright-free version of my Birmingham Cross-City South route, or the route can be manually installed following the instructions on the next page.

Testing your manually installed openBVE release

  1. Go to 'Applications' > 'Accessories' > 'Terminal', and enter the following two commands (replacing <username> with your own user name):

    cd /home/username/openBVE

    mono OpenBve.exe

    Important! In Unix based operating systems, case-sensitivity matters; note the uppercase 'BVE' and the 'O' and 'B' in OpenBve.exe...


    Screenshot

  2. Now via openBVE's Browse for route tab, locate the directory where the copy of the Birmingham Cross-City South route installed alongside Ubuntu's version of openBVE, can be found...

    /usr/share/games/bve/Railway/Route/Birmingham_Cross-City_South/

    If you haven't installed openBVE via the Ubuntu Software Centre as well, the route can be manually installed by following the instructions on the next page.


    Now select a route file, click openBVE's Start button, et voilà:

    Screenshot

  3. Note: The list of errors which appear in the terminal window can be safely ignored.


openBVE is now installed and working! If you want to practice manually installing a route and train, read on...




Content last updated: 1st August 2010
Unique visitors: