IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> et.GameLauncher for Linux (bash script), A simple script I made for launching ET from SL links.
The Loko
post May 8 2014, 04:48 PM
Post #1


Group Icon Private 1st Class

Group: Members

Joined: 14-July 09
From: Sevilla - Spain
Member No.: 85699



I made this script some months ago, because I missed sl.GameLauncher on Linux. I used to have several shortcuts in applications menu, but when playing on other servers I had to enter the IP manually (and I have never typed the right IP the first attempt...) bash.gif
CODE
#!/bin/bash
# et-launcher.sh script
# Launches et from SL-GameLauncher links on Linux
# The Loko

arg=$1

#First we remove the stuff before //
address=${arg#*//}

# Then we remove the last / and anything behind it.
address=${address%/*}

# Finally we launch our game with the address
./.xinit.sh ./.et-sdl-sound +connect $address


You can delete the call to xinit script if you don't use it, it's just a script for running the game in another X server (so you can "minimize" it while playing). I got it from here: https://wiki.archlinux.org/index.php/Runnin...arate_X_display

The ./.et-sdl-sound is the path to the game, I launch it with the sound fix script et-sdl-sound, that I have hidden in my home folder. ( http://nullkey.kapsi.fi/et-sdl-sound/ )

Only need to save this script in any folder (I have it as .et-launcher, hidden in the home folder too), and make it executable. Then, with your browser set to open the et:// protocol with this script.

I hope I'm not the only one playing on Linux, and this could be useful for someone hammer.gif
Go to the top of the page
 
+Quote Post
Wolf Enstein
post May 8 2014, 05:46 PM
Post #2


Group Icon General of the Army

Group: Management

Joined: 5-August 05
From: Scotland
Member No.: 12398



Great job, Loko super.gif . There's lots of players who use Linux and I'm sure this will be of benefit to them thanks.gif .


--------------------
Go to the top of the page
 
+Quote Post
TomDome
post May 9 2014, 05:46 AM
Post #3


Group Icon Tastenklimperer

Group: Management

Joined: 4-August 06
From: "Toscana of Germany" (Dreieck KA-LU-NW)
Member No.: 31172



Thanks for sharing Loko. grin.gif


--------------------
cheers Tom
...providing service for the sl since 2006.

Dont forget, this site is about games, friends and fun. Keep it all nice and friendly.



Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2024 - 05:03 AM