Problems with installation on Ubuntu

Discussion of the Generic Collectible Card Game engine created by Tommi "wigy" Ronkainen and mantained nowadays by Kodi
Post Reply
Alter Tuk
Ex Council Member
Posts: 453
Joined: Sun Aug 27, 2006 6:20 pm
Location: Germany

Hi folks,

i tried to install GCCG under Ubuntu. I followed the instructions on sourceforge.net but maybe i messed something up.

I installed sdl, sdl-ttf, sdl-mixer, sdl-net and sdl imgage with apt in the terminal and checked with synaptic as well. It seems to be installed. Then I followed the instructions but when I try to start ./Metw it doesnt work. Any thoughts?

Image

Image
[url=http://gccg.sourceforge.net/]Come to GCCG or die a lonely death.[/url]
Sauron
Ex Council Chairman
Posts: 550
Joined: Tue Sep 19, 2006 3:27 pm

probably need to edit the metw script and see where it's failing. It may be written under a different script, like kshell or bash.
Alter Tuk
Ex Council Member
Posts: 453
Joined: Sun Aug 27, 2006 6:20 pm
Location: Germany

I forgot to mention that i used gccg under Ubuntu with my old computer. So the mistake must be somewhere in the installation process.
[url=http://gccg.sourceforge.net/]Come to GCCG or die a lonely death.[/url]
emux
Posts: 25
Joined: Mon Nov 05, 2012 6:56 pm

try with:

./ccg_client metw.xml
Alter Tuk
Ex Council Member
Posts: 453
Joined: Sun Aug 27, 2006 6:20 pm
Location: Germany

Ok thanks to my mate domse we made it run again. There is a bug in the script which I never could have found out on my own. Im posting here in case that anyone else has ever the same problem. Maybe there is someone who can fix that in the download file?

Change the script as following:

- change
#!/bin/sh --login
to
#!/bin/bash --login

- put the new server
--server gccg.councilofelrond.org
at the right spot.

Here is the corrected script of the Metw file.




#!/bin/bash --login
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./lib"
DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:./lib"
export LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH

CCG_PATH=`which $0`
CCG_PATH=`dirname $CCG_PATH`
cd $CCG_PATH

if [ ! -f ./scripts/client.functions ]; then
echo "You must install 'client' package."
exit 1
fi

if [ "$1" = "--text" ]; then
if [ ! -x ./ccg_text_client ]; then
echo "You must install package containing program binaries for text version, for example 'linux-text-i386'."
exit 1
fi
shift
./ccg_text_client $* metw.xml
else
if [ ! -x ./ccg_client ]; then
echo "You must install package containing program binaries, for example 'linux-i386'."
exit 1
fi
./ccg_client $* --server gccg.councilofelrond.org metw.xml
fi
[url=http://gccg.sourceforge.net/]Come to GCCG or die a lonely death.[/url]
jhunholz
Ex Council Chairman
Posts: 206
Joined: Mon Apr 17, 2006 7:24 pm

This is actually an Ubuntu specific problem. Ubuntu uses Dash as their default shell instead of Bash. Usually the first thing I do when I install Ubuntu is change the default shell back to Bash.
Post Reply

Return to “GCCG”