Is there a way to make GOG purchase work in Linux (Ubunt)  (Read 28479 times)

The_Cowboy

  • 1337
  • *
  • Posts: 259
  • Country: in
  • CodeZilla
Howdy!

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



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?
Quote from: Wormbo
You learn UnrealScript mainly by reading other people's code. Removing code without an important reason (download size reduction and lack of helpfulness are not important in that sense) is extremely antisocial IMHO.

tirofijo!!

  • Sr. Member
  • *
  • Posts: 214
  • Country: ec
  • bash the fash
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #1 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/

Kyhado

  • Newbie
  • *
  • Posts: 14
  • Country: us
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #2 on: May 06, 2022, 18:11 »
Nice

Veica

  • 1337
  • *
  • Posts: 724
  • Country: ca
  • \m/
    • xS0NARx
    • VeicaNoriceia
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #3 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.
« Last Edit: May 06, 2022, 18:41 by [MiA]Latte »
Previously known as: xS0NARx, Njordr, Latte, or whatever the "name of the week" was.

The_Cowboy

  • 1337
  • *
  • Posts: 259
  • Country: in
  • CodeZilla
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #4 on: May 07, 2022, 01:25 »
Thanks guys for quick responses.

Gonna go through each of them.
Quote from: Wormbo
You learn UnrealScript mainly by reading other people's code. Removing code without an important reason (download size reduction and lack of helpfulness are not important in that sense) is extremely antisocial IMHO.

-Adler-

  • Junior Member
  • *
  • Posts: 45
  • Country: 00
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #5 on: May 07, 2022, 12:41 »
Download
Unreal tournament 2004 DVD
https://archive.org/details/ut-2004-dvd

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

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

Code: [Select]
#!/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
« Last Edit: May 08, 2022, 10:02 by -Adler- »
-----------------------------------------------------------------
Sorry, but I don't trust anything that bleeds for five days and doesn't die.

The_Cowboy

  • 1337
  • *
  • Posts: 259
  • Country: in
  • CodeZilla
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #6 on: May 09, 2022, 01:06 »
Download
Unreal tournament 2004 DVD
https://archive.org/details/ut-2004-dvd

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

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

Code: [Select]
#!/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).
Quote from: Wormbo
You learn UnrealScript mainly by reading other people's code. Removing code without an important reason (download size reduction and lack of helpfulness are not important in that sense) is extremely antisocial IMHO.

Gil-galad

  • Full MemberĀ 
  • *
  • Posts: 72
  • Country: pt
  • Hail the Holy Flying Spaguetti Monster!
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #7 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.


You have a gog version that I didn't try.


« Last Edit: May 15, 2022, 20:01 by Gil-galad »
His sword was long, his lance was keen.
His shining helm afar was seen;
the countless stars of heaven's field
were mirrored in his silver shield.

The Fall of Gil-galad - J. R. R. Tolkien

The_Cowboy

  • 1337
  • *
  • Posts: 259
  • Country: in
  • CodeZilla
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #8 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:-)
Quote from: Wormbo
You learn UnrealScript mainly by reading other people's code. Removing code without an important reason (download size reduction and lack of helpfulness are not important in that sense) is extremely antisocial IMHO.

-Adler-

  • Junior Member
  • *
  • Posts: 45
  • Country: 00
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #9 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



mount UT2004_DVD.ISO
Code: [Select]
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
Code: [Select]
cd /media/yourUsername/UT2004_DVD
sudo sh linux-installer.sh


press the spacebar or newer version "s" key for "END USER LICENSE AGREEMENT"
CD Key like ABCDE-FGHIJ.....


after install unmount iso
Code: [Select]
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

Code: [Select]
#!/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)
Code: [Select]
sudo apt-get install xserver-xorg-video-intel-hwe-18.04Error Message like
Code: [Select]
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
« Last Edit: October 21, 2023, 14:27 by -Adler- »
-----------------------------------------------------------------
Sorry, but I don't trust anything that bleeds for five days and doesn't die.

-Adler-

  • Junior Member
  • *
  • Posts: 45
  • Country: 00
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #10 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
Code: [Select]

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)
Code: [Select]
# Let's boogie!
if [ -x "${UT2004_DATA_PATH}/ut2004-bin" ]
then
cd "${UT2004_DATA_PATH}/"
exec "./ut2004-bin" $*
fi


change to
64bit start file

Code: [Select]
# 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
Code: [Select]
cd /usr/local/games/ut2004
sh ./ut2004

update
or in "System" folder
Code: [Select]
exec ./ut2004-bin-linux-amd64
« Last Edit: May 26, 2022, 18:13 by -Adler- »
-----------------------------------------------------------------
Sorry, but I don't trust anything that bleeds for five days and doesn't die.

-Adler-

  • Junior Member
  • *
  • Posts: 45
  • Country: 00
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #11 on: May 26, 2022, 15:02 »
test
-----------------------------------------------------------------
Sorry, but I don't trust anything that bleeds for five days and doesn't die.

Piglet

  • 1337
  • *
  • Posts: 3244
  • Country: gb
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #12 on: May 26, 2022, 15:34 »
Seems to be working!

-Adler-

  • Junior Member
  • *
  • Posts: 45
  • Country: 00
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #13 on: May 26, 2022, 16:29 »
yeah but i cant moify, edit my post (reply)

editing is working now. thx.
« Last Edit: May 26, 2022, 17:56 by -Adler- »
-----------------------------------------------------------------
Sorry, but I don't trust anything that bleeds for five days and doesn't die.

Piglet

  • 1337
  • *
  • Posts: 3244
  • Country: gb
Re: Is there a way to make GOG purchase work in Linux (Ubunt)
« Reply #14 on: May 26, 2022, 17:03 »
Try now