Printable Version of Topic

Click here to view this topic in its original format

[splatterladder] Board _ [splatterladder] - Feedback _ Gamelauncher hack for linux/firefox

Posted by: BeaTtheMeaT666 Feb 9 2006, 08:30 AM

Hi,

after browsing your serverlist I thought I might be handy to have something for linux people to launch ET from firefox. That's what I did (nothing fancy, but cheap):

CODE

#!/bin/sh

#
# etlaunch.sh launches ET from splatterladder.com
#

ET="/usr/games/bin/et"
SERVER=`echo ${1} | cut -d "/" -f 3`

${ET} +connect ${SERVER}



You may have to adjust ${ET} to fit your ET installation.

Make this script executable:

CODE

chmod 755 etlaunch.sh



Then type "about:config" in firefox as URL, an add 2 new variables by clicking right mouse, selecting "New":

The first one is of type "boolean":
network.protocol-handler.external.et

Value is "true".

The second one is of type "String":
network.protocol-handler.app.et

use the path to etlaunch.sh as value

That's it. Just click on the connect button in the serverlist and et should start.

Cheers,

BeaTtheMeaT

Posted by: sl.Proddi Feb 9 2006, 02:39 PM

the complete URL-Syntax is:

CODE
<protocol>://[<password>@]<ip:port>[/<protocol>][/option1][/option2][/option3][...]


examples:
CODE
et://12.34.56.78:1234/84
et://password@12.34.56.78:1234
etqw://password@12.34.56.78:1234/10

Posted by: Thermo Feb 9 2006, 05:29 PM

Hey thanks, BeatTheMeat! cheers.gif respect.gif sign_fixed.gif

Posted by: Kernel Feb 27 2006, 02:32 AM

help.gif Doesn't work for me. It said that et is not a registered protocol.
bash.gif crash.gif

Posted by: phantom666 Sep 7 2006, 03:24 PM

where do i put the first thing on the et console?

Posted by: durand Sep 30 2007, 01:21 PM

You dont need to use the ET console for anything...
Save that script somewhere, like /home/username/bin. Then open a terminal, cd to the folder, and type chmod a+x scriptname. Then, if you use the Opera web browser, go to Tools > Preferences > Advanced > Programs > Click on add: In protocol, type et and then open in other application, just locate the file.
Now, if you just click on the link at SplatterLadder, it should open ET.

QUOTE
Doesn't work for me. It said that et is not a registered protocol.


That might be because you left a space in the value somewhere or made a slight mistake.

Posted by: Maitre Bra*tac Dec 8 2007, 07:55 PM


Hello,
I am French and I am under ubuntu, and I do not understand anything at all.

I am sorry but I am a novice under ubuntu, so
There is possible to describe the procedure step by step please. Thanks help.gif help.gif

Posted by: s0lstiCe Jan 25 2008, 04:00 PM

Hello,
I am French too :)
Sorry, but I have not understood this :

CITATION
You may have to adjust ${ET} to fit your ET installation


Thanks for your answer.

s0lstiCe

Posted by: Welon Feb 12 2008, 12:52 PM

it means that

QUOTE
ET="/usr/games/bin/et"
might not be the folder you've installed ET in. In that case you have to edit this line.

Posted by: PisseNisse Feb 21 2008, 06:45 PM

Didn't get it to work with Firefox, must have screwed up somehow, so I tried it on Opera webbrowser and it works like a charm.

In Opera you open "Tools"->"Preferenses"->"Advanced"->"Programs"
Then you choose "Add", type "et" as protocol and browse to your etlaunch.sh

Thanks BeaTtheMeaT for making the script

Posted by: s0lstiCe Mar 1 2008, 11:40 AM

CITATION(Welon @ Feb 12 2008, 12:52 PM) *
it means that
CITATION
ET="/usr/games/bin/et"
might not be the folder you've installed ET in. In that case you have to edit this line.



Thanks for the answer,
On my Kubuntu (7.10) address is:
/Home/s0lstiCe/.etwolf/

Good game all

Posted by: morsik May 2 2008, 02:36 PM

QUOTE (s0lstiCe @ Mar 1 2008, 12:40 PM) *
On my Kubuntu (7.10) address is:
/Home/s0lstiCe/.etwolf/


Here is directory for downloaded files, profiles, mods. Not for Game Binaries. In default (in my) installation, ET installs in /usr/share/games/enemy-territory

Well, you must add:
CODE
ET="/usr/share/games/enemy-territory/et"

(an example for me)

PS. I have Fedora.

Posted by: Nizzle May 30 2008, 09:41 PM

I might have a little problem here sadd.gif

made the script.. changed the location of my ET directory (tested this thing and it does launch ET for me)
made the changes to firefox and that too seems to do something..

now when I click the et links from splatterladder firefox gives me a selection box of what app to run.. made sense to me since it has an option for remember my decision
it even shows the etlaunch.sh in that dialog

all of that seemed to work properly and made me very happy.. I closed some apps and hit the OK button with remember my decision and etlaunch.sh marked
and now it doesn't do shit.. sadd.gif

sooo.. suggestions please :)
running Ubuntu 8.04 in 64 bit mode which seems to have firefox3


**EDIT**
yay fixed it.. dunno how but it works now =D

Posted by: DogsOfWar Oct 3 2008, 12:45 AM

QUOTE (Nizzle @ May 31 2008, 04:41 AM) *
I might have a little problem here sadd.gif

made the script.. changed the location of my ET directory (tested this thing and it does launch ET for me)
made the changes to firefox and that too seems to do something..

now when I click the et links from splatterladder firefox gives me a selection box of what app to run.. made sense to me since it has an option for remember my decision
it even shows the etlaunch.sh in that dialog

all of that seemed to work properly and made me very happy.. I closed some apps and hit the OK button with remember my decision and etlaunch.sh marked
and now it doesn't do shit.. sadd.gif

sooo.. suggestions please :)
running Ubuntu 8.04 in 64 bit mode which seems to have firefox3


**EDIT**
yay fixed it.. dunno how but it works now =D

Hi Nizzle, I have the same setup, Ubuntu like the first line to be bash. !/bin/sh also works but just for completeness... If you don't have either as the first line it will fail as you describe.

To get mine to work I also had to change the network.protocol-handler.app.et setting to (ignore quotes) "sh etlaunch.sh"

And the path on my Ubuntu only needed to be et

However the physical path in Ubuntu is usually /usr/local/games/enemy-territory
===================
#!/bin/bash

#
# etlaunch.sh launches ET from splatterladder.com
#

ET="et"
SERVER=`echo ${1} | cut -d "/" -f 3`

${ET} +connect ${SERVER}

Posted by: chef^^ Jan 9 2009, 05:30 PM

(BeaTtheMeaT666 @ Feb 9 2006, 09:30 AM) *
Hi,

after browsing your serverlist I thought I might be handy to have something for linux people to launch ET from firefox. That's what I did (nothing fancy, but cheap):

#!/bin/sh

#
# etlaunch.sh launches ET from splatterladder.com
#

ET="/usr/games/bin/et"
SERVER=`echo ${1} | cut -d "/" -f 3`

${ET} +connect ${SERVER}



You may have to adjust ${ET} to fit your ET installation.

Make this script executable:

chmod 755 etlaunch.sh



Then type "about:config" in firefox as URL, an add 2 new variables by clicking right mouse, selecting "New":

The first one is of type "boolean":
network.protocol-handler.external.et

Value is "true".

The second one is of type "String":
network.protocol-handler.app.et

use the path to etlaunch.sh as value

That's it. Just click on the connect button in the serverlist and et should start.

Cheers,

BeaTtheMeaT


Could someone make a video of this to YouTube? Please... Im like the worst linux user ever after 3 days of use grin.gif

Posted by: crashtime Jan 10 2009, 12:15 PM

I did some screenshots of how to do in FireFox (i am in windows don't kick me for that :P) but the script is easy to configure.

Place the file, for example, in /home/[youruser]/ (to assign easily the chmod)

Then go to a terminal (called in Ubuntu "terminal", in others console or konsole if you are in KDE) and write:

chmod 775 /home/[youruser]etlaunch.sh

There you have the image i captured

P.S: Nice script, it would be improved with a 'selector' of wich ET version is needed (for exmaple i play in 2.55 and 2.6b but i would use it for 2.6b only at this moment) grin.gif


 

Posted by: crashtime Jan 11 2009, 09:37 PM

There you have the file modified by me with the modification i suggested:

CODE
#!/bin/sh

#
# etlaunch.sh launches ET from splatterladder.com
#

ET="/usr/games/bin/et"
ET2="/usr/games/bin/et2.55"

SERVER=`echo ${1} | cut -d "/" -f 3`
PROTOCOL=`echo ${1} | cut -d "/" -f 4`

if [ "$PROTOCOL" = "84" ];
then ${ET} +connect ${SERVER}
else ${ET2} +connect ${SERVER}
fi


As other one, modify ET and ET2 with your own path to ET games, i have added it to myhttp://insanity.clanservers.com/site/e107_plugins/content/content.php?content.12

The rest is like BeaTtheMeaT666 said, Enjoy!

Posted by: Krauersaut Jan 11 2009, 10:44 PM

QUOTE (crashtime @ Jan 11 2009, 09:37 PM) *
There you have the file modified by me with the modification i suggested:

CODE
#!/bin/sh

#
# etlaunch.sh launches ET from splatterladder.com
#

ET="/usr/games/bin/et"
ET2="/usr/games/bin/et2.55"

SERVER=`echo ${1} | cut -d "/" -f 3`
PROTOCOL=`echo ${1} | cut -d "/" -f 4`

if [ "$PROTOCOL" = "84" ];
then ${ET} +connect ${SERVER}
else ${ET2} +connect ${SERVER}
fi


As other one, modify ET and ET2 with your own path to ET games, i have added it to myhttp://insanity.clanservers.com/site/e107_plugins/content/content.php?content.12

The rest is like BeaTtheMeaT666 said, Enjoy!

I would suggest asking him first for your permission to publish it on your website before you do it.

Posted by: crashtime Jan 11 2009, 11:41 PM

Well it is modyfied in part by me and he has credits and redirections to this page... anyway if he does not want to get published tell me and i will delete.

Posted by: Psytechnic Mar 1 2010, 01:06 AM

Some people might have noticed that in FireFox 3.5, the network.protocol-handler.app.et designation is depreciated and no longer used, meaning the browser announces that there is no associated application to the et protocol. The way I found to get this to work is using some information http://kb.mozillazine.org/Register_protocol and http://ubuntuforums.org/showthread.php?t=125584. This is based on an ubuntu 9.10 with FireFox 3.5 and requires some gnome libraries.

after following the etlaunch.sh making process, after assigning network.protocol-handler.external.et boolean true, type this into console.

CODE
gconftool-2 -s /desktop/gnome/url-handlers/et/command '< etlaunch.sh location> %s' --type String
gconftool-2 -s /desktop/gnome/url-handlers/et/enabled --type Boolean true


If you have any comments on this, please message me.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)