etf and true combat installers and Ubuntu

Need help with one of the installers?
organica

etf and true combat installers and Ubuntu

Post by organica » Tue May 08, 2007 3:32

On ubuntu feisty vanilla install...

Code: Select all

tom@bigred:~$ sudo sh ./true.combat.elite_0.49b-english-3.run 
Verifying archive integrity... All good.
Uncompressing True Combat: Elite 0.49b-english-3 Installer...............................
Searching Return to Castle Wolfenstein: Enemy Territory....
dirname: missing operand
Try `dirname --help' for more information.
md5sum: /et.x86: No such file or directory
Return to Castle Wolfenstein: Enemy Territory found in /
[: 65: e612c922bec7d8f4d7a8dfbbea3dade3: unexpected operator
Installing in /
Seems like Return to Castle Wolfenstein: Enemy Territory was installed by another user.
You have to install True Combat: Elite as the same user who did install Return to Castle Wolfenstein: Enemy Territory.
Both etf and true combat produce these errors. I tried to fix up the sear.sh file but no can do. I do have the correct full install of enemy territory and its update from the ET site.

It's installed to /usr/local/games/enemy-territory/

Any help?

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Tue May 08, 2007 9:38

seems like you having a strange version of dirname

show me the output of

dirname --help

and what version it is

organica

Post by organica » Tue May 08, 2007 11:16

sure...

Code: Select all

tom@bigred:~$ dirname --help
Usage: dirname NAME
  or:  dirname OPTION
Print NAME with its trailing /component removed; if NAME contains no /'s,
output `.' (meaning the current directory).

      --help     display this help and exit
      --version  output version information and exit

Examples:
  dirname /usr/bin/sort  Output "/usr/bin".
  dirname stdio.h        Output ".".

Report bugs to <bug-coreutils@gnu.org>.
tom@bigred:~$ dirname --version
dirname (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie and Jim Meyering.
tom@bigred:~$ 

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Tue May 08, 2007 13:47

dirname is fine

the problem must be somewhere else

i will check this later when i'm at home

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Tue May 08, 2007 20:43

really hard to say what the problem is

could you visit our irc channel and talk directly to me?

pansapiens

Installing ETF 1.6 on Ubuntu Feisty

Post by pansapiens » Mon Jun 11, 2007 5:55

I had this problem too ... it seems to stem from search.sh looking for symlinks (et and etd) in order to find the enemy-territory install directory (/usr/local/games/enemy-territory on my system), while my on my system /usr/local/bin/et is a small shell script, not a not a symlink as the ETF installer expects.
(This may just be my ET install and nothing Feisty specific though ... I can't remember how I installed ET more than a year back).

Anyhow, here's how I fixed ETF 1.6 to install:

First, extract etf_1.6-english-4.run :

Code: Select all

$ sh ./etf_1.6-english-4.run --keep --noexec
Change to the directory where it is extracted to:

Code: Select all

$ cd etf_1.6-english-4
Edit search.sh:

Code: Select all

$ vi search.sh
Below line 57 ( GAMEPATH=`dirname $GAMEDIR` ), add the line:

Code: Select all

GAMEPATH=/usr/local/games/enemy-territory
(obviously, if your ET 2.60 installation resides somewhere other than /usr/local/games/enemy-territory use that path instead)

Now run the installer (as root), and all should work as expected:

Code: Select all

$ sudo sh ./search.sh
Now come and frag me !! There doesn't seem to be anyone on playing ETF much anymore ... but maybe it's my 'difficult' timezone that is the problem :)

Cheers.

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Mon Jun 11, 2007 18:39

yeah you are right this is a feature of our script (somebody else would call it a bug) ;)

run the installer with --keep --noexec

this will extract the installer in a newly created directory
change into this new directory

open search.sh in your favourite editor

change line 51 from

if [ "$GAMEDIR" = "" ]

to

if [ "$GAMEDIR" = "" -o ! -L "$GAMEDIR" ]

run sh ./search.sh afterwards

please report back if this does the job well, thx
Last edited by kratz00 on Wed Jul 11, 2007 20:57, edited 2 times in total.

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Mon Jul 09, 2007 23:57

Has anybody of you who reported this bug, tested the fix?

pansapiens

Fix tested

Post by pansapiens » Sun Jul 15, 2007 14:20

Tested, (with /usr/local/bin/et as a symlink), installed fine for me.

Thanks for the fix.

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Sun Jul 15, 2007 15:47

Hm, is this the same setup? As you reported the problem you wrote "et" is not a symlink, it's a script. Could you verify if the fix fixes the inital problem?

Thank you.

pansapiens

Re: Fix tested

Post by pansapiens » Sun Jul 15, 2007 16:09

Sorry, I meant to say /usr/local/bin/et as a file.

It also still works with /usr/local/bin/et as a symlink.

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Sun Jul 15, 2007 16:16

Thank you very much pansapiens

I will add the fix to the installers and upload them as soon as possible.

thrash67

Post by thrash67 » Fri Jul 27, 2007 4:02

Why does it take so long for TC:E installer to find the directory? It's been searching now for about 5 minutes. Pleas make it look in the default directories before it starts searching through my entire hard drive.

EDIT:Great it's fount it. But I didn't run it as root. urgh

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Sun Jul 29, 2007 10:34

Hi thrash67,

our script tries to find the symlinks of a ET installation first
(Ubuntu did something in a other way, elsewise this post would not exist).
If this fails it's using "locate" to find the executable (no idea if Ubuntu is using/supporting this) and at last it's using "find" which can take a while.

We could have added some quick lookups for installations of ET in the users $HOME and /usr/locale/games/ but whould this change something for you?

What means "default" in your eyes? :)

PS: Please don't hijack threads if the topic does not match your problem.

umarzuki

almost sam prob

Post by umarzuki » Fri Jan 18, 2008 2:05

here's what i got:

Code: Select all

umarzuki@umarzuki-desktop:~/Desktop/etf_1.6-english-5$ sudo sh ./search.sh
Searching Return to Castle Wolfenstein: Enemy Territory....
md5sum: /home/umarzuki/.fr-fjR8QA/Enemy: No such file or directory
Return to Castle Wolfenstein: Enemy Territory found in /home/umarzuki/.fr-fjR8QA
[: 82: e612c922bec7d8f4d7a8dfbbea3dade3: unexpected operator
Installing in /home/umarzuki/.fr-fjR8QA
Seems like Return to Castle Wolfenstein: Enemy Territory was installed by another user.
You have to install True Combat: Elite as the same user who did install Return to Castle Wolfenstein: Enemy Territory.
Here's in my search.sh around line 57

Code: Select all

	GAMEDIR=`readlink $GAMEDIR`
	GAMEPATH=`dirname $GAMEDIR`
	GAMEPATH=/home/umarzuki/enemy-territory
	versioncheck $GAMEPATH/$SEARCHFILE

Locked