Native Urban Terror on FreeBSD

Welcome to 2023 and let me start a first article of this new year with a … guest post by @NeoMoevius from Twitter. That is right. I did not invented it. I did not created it. I only partially wrote it – treat me as a ghost writer here. ll the thanks and welcomes goes directly to @NeoMoevius – I am just a messenger here πŸ™‚

This post will be about playing (and first building – of course) the Urban Terror game on FreeBSD system. It is about how to build and install Urban Terror 4.3 on FreeBSD without Linux emulation or using WINE. Natively. This will be on the latest and supported FreeBSD 13.1-RELEASE system.

There are not many steps to make it happen. First – just download the official Urban Terror ZIP file.

% mkdir _UT
% cd _UT
% fetch http://cdn.urbanterror.info/urt/43/releases/zips/UrbanTerror434_full.zip
UrbanTerror434_full.zip                         3% of 1403 MB 1836 kBps 11m38s
% unzip UrbanTerror434_full.zip
% cd UrbanTerror43
% pwd
/home/vermaden/_UT/UrbanTerror43

Lets leave that alone for now πŸ™‚

We will also need to install some dependencies.

# pkg install -y \
    devel/sdl20 \
    devel/pkgconf \
    devel/gmake \
    ftp/curl \
    graphics/sdl2_image \
    graphics/sdl2_ttf \
    audio/sdl2_mixer \
    audio/openal-soft

We will now need to download and compile source code of ioquake 3 for Urban Terror.

% mkdir _IOQ3
% cd _IOQ3
% git clone https://github.com/mickael9/ioq3.git
Cloning into 'ioq3'...
remote: Enumerating objects: 28169, done.
Receiving objects:  19% (5353/28169), 6.77 MiB | 2.24 MiB/s
% cd ioq3
% gmake
% echo ${?}
0
% cd build/release-freebsd-x86_64
% ls -l
total 2773K
drwxr-xr-x 2 vermaden vermaden       2 2023-01-20 20:11 autoupdater/
drwxr-xr-x 4 vermaden vermaden     228 2023-01-20 20:12 client/
drwxr-xr-x 2 vermaden vermaden     154 2023-01-20 20:11 ded/
drwxr-xr-x 2 vermaden vermaden     166 2023-01-20 20:12 renderergl1/
drwxr-xr-x 3 vermaden vermaden      77 2023-01-20 20:12 renderergl2/
-rwxr-xr-x 1 vermaden vermaden  862712 2023-01-20 20:12 renderer_opengl1_x86_64.so
-rwxr-xr-x 1 vermaden vermaden 1143552 2023-01-20 20:12 renderer_opengl2_x86_64.so
-rwxr-xr-x 1 vermaden vermaden 2133400 2023-01-20 20:12 urbanterror-m9.x86_64
-rwxr-xr-x 1 vermaden vermaden  970368 2023-01-20 20:11 urbanterror-server-m9.x86_64

The files that are interesting for us are listed below:

  • renderer_opengl1_x86_64.so
  • renderer_opengl2_x86_64.so
  • urbanterror-m9.x86_64
  • urbanterror-server-m9.x86_64

… and now you will need to copy these four files into the Urban Terror folder when you have uncompressed the game.

% cp \
    renderer_opengl1_x86_64.so   \
    renderer_opengl2_x86_64.so   \
    urbanterror-m9.x86_64        \
    urbanterror-server-m9.x86_64 \
    /home/vermaden/_UT/UrbanTerror43

% cd /home/vermaden/_UT/UrbanTerror43

% pwd
/home/vermaden/_UT/UrbanTerror43

% ls -l
total 8495K
drwxr-xr-x 2 vermaden vermaden      30 2023-01-20 20:19 q3ut4/
drwxr-xr-x 3 vermaden vermaden       3 2023-01-20 20:19 Quake3-UrT.app/
-rw-r--r-- 1 vermaden vermaden 1082800 2018-06-21 22:08 Quake3-UrT-Ded.exe
-rwxr-xr-x 1 vermaden vermaden  816002 2018-06-21 22:08 Quake3-UrT-Ded.i386
-rwxr-xr-x 1 vermaden vermaden  961958 2018-06-21 22:08 Quake3-UrT-Ded.x86_64
-rw-r--r-- 1 vermaden vermaden 2634689 2018-06-21 22:08 Quake3-UrT.exe
-rwxr-xr-x 1 vermaden vermaden 1702624 2018-06-21 22:08 Quake3-UrT.i386
-rwxr-xr-x 1 vermaden vermaden 1940280 2018-06-21 22:08 Quake3-UrT.x86_64
-rwxr-xr-x 1 vermaden vermaden  862712 2023-01-20 20:20 renderer_opengl1_x86_64.so
-rwxr-xr-x 1 vermaden vermaden 1143552 2023-01-20 20:20 renderer_opengl2_x86_64.so
-rwxr-xr-x 1 vermaden vermaden 2133400 2023-01-20 20:20 urbanterror-m9.x86_64
-rwxr-xr-x 1 vermaden vermaden  970368 2023-01-20 20:20 urbanterror-server-m9.x86_64

We will now try to start that Urban Terror game.

% pwd
/home/vermaden/_UT/UrbanTerror43

% ./urbanterror-m9.x86_64
ioq3-UrT m9-builds/31 freebsd-x86_64 Jan 20 2023
SSE instruction set enabled
----- FS_Startup -----
We are looking in the current search path:
/home/vermaden/.q3a/q3ut4
./q3ut4
./q3ut4/zUrT43_qvm.pk3 (4 files)
./q3ut4/zUrT43_021.pk3 (85 files)
./q3ut4/zUrT43_020.pk3 (295 files)
./q3ut4/zUrT43_019.pk3 (342 files)
./q3ut4/zUrT43_018.pk3 (801 files)
(...)

Seems to start and work properly.

Here are several shots of what I tried to play it for some single online event.

urban-terror-01

urban-terror-02

urban-terror-03

urban-terror-04

All the screens above are in the windowed more but you can switch between window and full screen with [ALT]+[ENTER] shortcut at anytime. It was just easier for me to catch several shots for this article πŸ™‚

Seems I am definitely not the best at this game :p

urban-terror-05

The Urban Terror game run smooth on my Intel HD Graphics 3000 card.

Fortunately I did not need to switch BIOS settings to start my decade old Nvidia Quadro 2000M monster :p

Not sure what I can add here – definitely a kind thank You for @NeoMoevius for his offer of making this content available for You πŸ™‚

Regards.

13 thoughts on “Native Urban Terror on FreeBSD

  1. Pingback: Native Urban Dismay on FreeBSD – TOP Show HN

  2. Pingback: Native Urban Terror on FreeBSD - My Blog

  3. Pingback: Links 21/01/2023: GCompris 3.1 and General News | Techrights

  4. Pingback: Valuable News – 2023/01/23 | πšŸπšŽπš›πš–πšŠπšπšŽπš—

    1. vermaden Post author

      You are right … I (and @NeoMoevius also) forgot about dependencies as we probably already had them installed as dependencies for other apps we use πŸ™‚

      Please add that as a ‘zero’ step:

      # pkg install -y \
          devel/sdl20 \
          devel/pkgconf \
          devel/gmake \
          ftp/curl \
          graphics/sdl2_image \
          graphics/sdl2_ttf \
          audio/sdl2_mixer \
          audio/openal-soft
      

      … and let me know it it helped πŸ™‚

      Regards.

      Like

      Reply
  5. Pingback: FreeBSD Home Audio Studio | πšŸπšŽπš›πš–πšŠπšπšŽπš—

  6. Pingback: FreeBSD Home Audio Studio – TOP Show HN

  7. Mario Marietto

    I’d be interested to install a (linux) game within the linux emulator and then run it. Here comes the fun. Because you have been cunning. You chosen a game that already worked on FreeBSD natively,apart from a few tweaks. Different story is to install a game within the linuxulator and even enable cuda + the nvidia driver within it so that the game can detect it and work better. yeah,I don’t like to win “easily”.

    Like

    Reply
    1. vermaden Post author

      I did not choose the game – it was @NeoMoevius from Twitter. He asked my if I can post that guide here because he do not want to create new blog just to post one or two guides.

      Hope that helps.

      Regards.

      Like

      Reply
  8. Pingback: FreeBSD Dwelling Audio Studio - AMERICA TIMES

  9. Name

    “You chosen a game that already worked on FreeBSD”

    Mario, now run it on NetBSD or even Sun Solaris.

    Honestly, Quake III engine will work on pretty much any kind of OS (assuming dependencies are satisfied before) including Windows, and all UNIX-like OS. It’s not the point whether they wanted to run a native game or not, it was completely for fun.

    If you *really* want to play games – truly speaking, FreeBSD isn’t great at it right now. Even though linux emulation is possible, a lot of games doesn’t even support Linux at all, thus the point is pretty much clear here. Use Windows for gaming, other stuff (which isn’t related to Windows, use them on FreeBSD). Native games will work just fine, and games which does runs on Linux (through linux emulation), but at the end of the day, it doesn’t make much sense whether you use FreeBSD or Linux or Windows for gaming. In simple words, “use the right tool for the right job”.

    Like

    Reply
    1. vermaden Post author

      Hi,

      as you have probably seen this is a guest post on my blog – so it was not my choice to select Urban Terror as the ‘chosen’ game.

      Regards,
      vermaden

      Like

      Reply

Leave a reply to vermaden Cancel reply