Miasma Community

General Zone => The Lounge => Topic started by: The_Cowboy on May 06, 2022, 17:23

Title: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: The_Cowboy on May 06, 2022, 17:23
Howdy!

I have a legit purchase from GOG (the dirt cheap) edition. Just to proof the purchasing, the snap shot is

(https://i.imgur.com/cNQniyf.png)

Now I would want to use this on Linux. Gil certainly plays on Linux (but I can't know if he has GOG purchase).
Any clues or pointers?
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: tirofijo!! on May 06, 2022, 17:54
HI there, i used to play the gog version in ubuntu 16.04, worked great until i install graphic card and all went to sh$"$t.... now i use virtual machine jajaja
heres the guide i used that time:
http://www.gamersonlinux.com/forum/threads/unreal-tournament-2004-guide.1219/
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: Kyhado on May 06, 2022, 18:11
Nice
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: Veica on May 06, 2022, 18:26
First things first, contact GOG customer service and request a unique CD key. The default one from the GOG install is considered a warez/pirate key and is banned almost everywhere that has anticheat.

They should give you one free of charge. If not, request a refund and buy through Steam.

As far as using on Linux goes, I dunno. Ask GOG too, maybe they know, lol. I'm not super familiar with Linux so I wouldn't know if Tirofijo's guide is still good since we're about 5/6 versions ahead on Ubuntu now, but it's worth a shot at least.
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: The_Cowboy on May 07, 2022, 01:25
Thanks guys for quick responses.

Gonna go through each of them.
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: -Adler- on May 07, 2022, 12:41
Download
Unreal tournament 2004 DVD
https://archive.org/details/ut-2004-dvd (https://archive.org/details/ut-2004-dvd)

Megapack
edit path to your ut2004 path "/usr/local/games/ut2004/"

#!/bin/sh
URL="https://www.utzone.de/forum/downloads.php?do=file&id=1194_UT2004-Mega-Pack-Linux-+-LinuxPatch-3369.2"
FILE=ut2004megapack-linux.tar.bz2
if test -f "$FILE"; then
    echo "$FILE exists."
tar -jxvf $FILE
cd UT2004MegaPack/
sudo cp -R * /usr/local/games/ut2004/
else
    echo "$FILE does not exist."

echo "Download $FILE URL= $URL"
fi


sudo apt-get install libstdc++5
sudo ln -s /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 /path/to/your/folder/UT2004/System/libSDL-1.2.so.0

Soundfix
sudo apt-get install libopenal1

#!/bin/sh
sudo mv /usr/local/games/ut2004/System/openal.so /usr/local/games/ut2004/System/openal.so.bak
sudo ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 /usr/local/games/ut2004/System/openal.so
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: The_Cowboy on May 09, 2022, 01:06
Quote from: -Adler- on May 07, 2022, 12:41
Download
Unreal tournament 2004 DVD
https://archive.org/details/ut-2004-dvd (https://archive.org/details/ut-2004-dvd)

Megapack
edit path to your ut2004 path "/usr/local/games/ut2004/"

#!/bin/sh
URL="https://www.utzone.de/forum/downloads.php?do=file&id=1194_UT2004-Mega-Pack-Linux-+-LinuxPatch-3369.2"
FILE=ut2004megapack-linux.tar.bz2
if test -f "$FILE"; then
    echo "$FILE exists."
tar -jxvf $FILE
cd UT2004MegaPack/
sudo cp -R * /usr/local/games/ut2004/
else
    echo "$FILE does not exist."

echo "Download $FILE URL= $URL"
fi


sudo apt-get install libstdc++5
sudo ln -s /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 /path/to/your/folder/UT2004/System/libSDL-1.2.so.0

Soundfix
sudo apt-get install libopenal1

#!/bin/sh
sudo mv /usr/local/games/ut2004/System/openal.so /usr/local/games/ut2004/System/openal.so.bak
sudo ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 /usr/local/games/ut2004/System/openal.so


Hola Adler! Thanks for script lines and links. Just wondering if the DVD download is legal (not that I mind it, but some may).
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: Gil-galad on May 14, 2022, 20:34
Hello!
Indeed, I run a native linux install but on Manjaro. I had the help of a more skilled friend to set it up, and it was some time ago. I'm stating this to explain that I can't help you, even if I encourage you to try the native version.

I used the steam script (https://aur.archlinux.org/packages/ut2004-steam).


You have a gog version (https://aur.archlinux.org/packages/ut2004-gog) that I didn't try.


Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: The_Cowboy on May 14, 2022, 23:18

With steam it be trivial!! I am trying GOG version because of almost all the members here recommending it and the high discounts  8)
Adler's methodology seems to be working. I have already obtained the key from GOG support and will be using that for future gaming sessions.

Sorry about the warez key admins, but as [Mia]Latte pointed, it is the default setting and needs manual intervention.  O:-)
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: -Adler- on May 15, 2022, 10:11
UPDATE
Yeah,
i play ut2004 (x64) on Linux Mint 20.3 21 now.

Unreal Tournament 2004 DVD
https://archive.org/details/ut-2004-dvd

i installed with the orginal linux-installer.sh script from UT2004 DVD Version

(https://i.imgur.com/3Ao9cvs.jpeg)

mount UT2004_DVD.ISO

cd Downloads
sudo mkdir /media/yourUsername/UT2004_DVD
sudo mount UT2004_DVD.ISO /media/yourUsername/UT2004_DVD -o loop


Install UT2004 with linux-installer.sh
cd /media/yourUsername/UT2004_DVD
sudo sh linux-installer.sh

(https://i.imgur.com/YGT3GoD.png)

press the spacebar or newer version "s" key for "END USER LICENSE AGREEMENT"
CD Key like ABCDE-FGHIJ.....
(https://i.imgur.com/RBE6JIs.png)

after install unmount iso
sudo umount /media/yourUsername/UT2004_DVD

installed libraries
sudo apt-get install libstdc++5
sudo apt-get install libopenal1
sudo apt-get install libsdl1.2debian

installed UT2004 Mega Pack Linux + LinuxPatch 3369.2 from
https://www.utzone.de/forum/downloads.php?do=file&id=1194_UT2004-Mega-Pack-Linux-+-LinuxPatch-3369.2

#!/bin/sh
URL="https://www.utzone.de/forum/downloads.php?do=file&id=1194_UT2004-Mega-Pack-Linux-+-LinuxPatch-3369.2"
FILE=ut2004megapack-linux.tar.bz2
if test -f "$FILE"; then
    echo "$FILE exists."
tar -jxvf $FILE
cd UT2004MegaPack/
sudo cp -R * /usr/local/games/ut2004/
else
    echo "$FILE does not exist."

echo "Download $FILE URL= $URL"
fi


Linked the libs to ut2004 folder or copy the libs to ut2004 system folder
sudo ln -sf /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0  /usr/local/games/ut2004/System/libSDL-1.2.so.0
(libSDL-1.2.so.0 linked to libSDL-1.2.so.0.11.4)

sudo ln -sf /usr/lib/x86_64-linux-gnu/libopenal.so.1 /usr/local/games/ut2004/System/openal.so
(openal.so linked to libopenal.so.1.19.1)

graphics card problems (Intel HD Graphics laptop)
resolution higher 800x600 > UT crashed (driver)
sudo apt-get install xserver-xorg-video-intel-hwe-18.04
Error Message like
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  153 (XFree86-VidModeExtension)
  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
  Value in failed request:  0x6800016
  Serial number of failed request:  235
  Current serial number in output stream:  237
AL lib: (EE) alc_cleanup: 2 devices not closed

Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: -Adler- on May 25, 2022, 19:10
Update
i forgot to write you must change the start file
64bit start file default is 32bit
(info)when u use 32bit


sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libstdc++5:i386
sudo apt-get install libopenal1:i386
sudo apt-get install libsdl1.2debian:i386


modify
/usr/local/games/ut2004/ut2004
starter

32bit (default)

# Let's boogie!
if [ -x "${UT2004_DATA_PATH}/ut2004-bin" ]
then
cd "${UT2004_DATA_PATH}/"
exec "./ut2004-bin" $*
fi



change to
64bit start file

# Let's boogie!
if [ -x "${UT2004_DATA_PATH}/ut2004-bin-linux-amd64" ]
then
cd "${UT2004_DATA_PATH}/"
exec "./ut2004-bin-linux-amd64" $*
fi



execute ut2004
in terminal
cd /usr/local/games/ut2004
sh ./ut2004


update
or in "System" folder
exec ./ut2004-bin-linux-amd64

Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: -Adler- on May 26, 2022, 15:02
test
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: Piglet on May 26, 2022, 15:34
Seems to be working!
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: -Adler- on May 26, 2022, 16:29
yeah but i cant moify, edit my post (reply)

editing is working now. thx.
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: Piglet on May 26, 2022, 17:03
Try now
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: The_Cowboy on July 12, 2022, 00:46
The above instructions work perfectly well!
Kudos!!
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: -Adler- on August 13, 2022, 14:41
Quote from: The_Cowboy on July 12, 2022, 00:46
The above instructions work perfectly well!
Kudos!!

thanks
i updated the instructions (mount iso. run linux-installer.sh)
https://miasma.rocks/index.php?topic=1789.msg23118#msg23118 (https://miasma.rocks/index.php?topic=1789.msg23118#msg23118)
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: KoTELLO on August 15, 2022, 11:57
Hi  -Adler- !

Is it possible to run ut2004 on a macbook with an m1 processor?
Title: Re: Is there a way to make GOG purchase work in Linux (Ubunt)
Post by: -Adler- on August 17, 2022, 18:33
Hi KoTELLO,
maybe with the programm CrossOver
https://www.codeweavers.com/crossover#mac (https://www.codeweavers.com/crossover#mac) try the 14 day trail
macOS Compatibility
https://www.applegamingwiki.com/wiki/Unreal_Tournament_2004 (https://www.applegamingwiki.com/wiki/Unreal_Tournament_2004)

Unreal Tournament 2004 - CrossOver/WINE - M1 Apple Silicon - MacBook Air 2020