Results 1 to 8 of 8

Thread: HowTo: Compile - Beyond The Red Line Demo

Threaded View

  1. #1
    Join Date
    Aug 2006
    Kubuntu Development Release

    Talking HowTo: Compile - Beyond The Red Line Demo

    *** This HOWTO is now outdated. The official linux demo installer has been released ***
    [thanks aidanr for the status update on the release]

    HowTo: Compile Beyond The Red Line Demo (from source)

    At the time I'm writing this, the linux installer has not yet been released.
    I imagine this will become obsolete in a matter of weeks.

    Ok first let me start by saying this howto is written for Ubuntu Edgy.
    It should work about the same way under Dapper and Feisty, but I can't guarantee all libraries will be availible via the repos, especially in Dapper. >.<

    For this howto you will need the following:

    1. btrl demo source
    2. btrl demo windows installer
    3. wine or a windows pc to steal the installed files from
    4. libsdl-dev (and friends), libtheora-dev, libogg-dev, libvorbis-dev
    5. you'll obviously need build-essential installed but this assumes you already have
    ...(if you don't have build-essential run: sudo apt-get install build-essential)

    You will need the download and install the windows version:
    (either with WINE or install on a windows machine then copy the data files)

    Save this file to your home directory.

    Open a new terminal (you should be at your home directory but it isn't required).

    sudo apt-get install libsdl1.2-dev libogg-dev libtheora-dev libvorbis-dev libalut0 libopenal0a libopenal-dev
    This should install the following (23 libraries in all i believe):

    libalut-dev libalut0 libopenal0a libsdl1.2-dev libogg-dev libtheora-dev libaa1-dev
    libartsc0-dev libasound2-dev libaudio-dev libaudiofile-dev libdirectfb-dev libdirectfb-extra
    libesd0-dev libgl1-mesa-dev libglu1-mesa-dev libjpeg62-dev libncurses5-dev libsdl1.2-dev
    libslang2-dev libxt-dev mesa-common-dev libopenal-dev
    Now that all the the libraries are installed, decompress the btrl demo archive and begin compiling.

    tar -jxvf btrl_fs2_open-3.6.9.tar.bz2
    cd btrl_fs2_open-3.6.9
    The make process will take awhile depending on your system, so bounce around the fourms or go
    for a walk or something while you wait.

    Assuming all went well and the game binary compiled it should now be in the code directory inside the
    directory you compiled from.

    But before we go any further you'll need to install the windows version of the demo so that you
    have the data, graphic, and sound files needed to actually run the demo. Assuming you already have
    wine installed and working:

    wine ../BtRLDemoInstaller.exe
    Wait for the installer window to come up and follow through installation.

    This may take awhile as the decompressed data files are about 750mb. The installer may even seem to freeze,
    just give it 10-20 minutes to complete and try not to get too anxious. Remember where you install the
    game so we'll be able to copy the game binary that has already been compiled.

    You should still be in the ~/btrl_fs2_open-3.6.9 directory once the installer completes.
    Copy the binary to the location you installed Btrl windows demo into.


    cp code/fs2_open_r ~/.wine/drive_c/Program\ Files/BtrlDemo
    Then we'll change to the game directory and launch the demo.

    cd ~/.wine/drive_c/Program\ Files/BtrlDemo
    The game will probably give you an error message saying the resolution is not supported.
    Simply exit the game by hitting escape twice, and we're back to our terminal one last time.

    pico ~/.btrl_demo/fs2_open.ini
    Find this line:

    VideocardFs2open=OGL -(800x600)x16 bit
    I believe it was 800x600 but no matter, it's that line. Replace it with this:

    VideocardFs2open=OGL -(1024x768)x16 bit
    ctrl+o to save, then ctrl+x to exit

    Then you should be able to launch the game using:

    Hopefully I've covered everything possible here.

    Please let me know if I"ve missed anything.

    I'll also be posting this up on UGA in a few minutes, but I promised the forums I'd do it, so I wanted to post here first. ^_^
    Last edited by hikaricore; April 4th, 2007 at 05:42 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts