Forum

> > CS2D > General > Launcher script for Linux
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Launcher script for Linux

9 replies
To the start Previous 1 Next To the start

Poll Poll

Is this script usefull?

Only registered users are allowed to vote
Yes
88.89% (8)
No
11.11% (1)
9 votes cast

old Poll Launcher script for Linux

webnull
User Off Offline

Quote
Hi, i made launcher script like this from windows OS but in Bash scripting language.

Here is it:
http://odsiebie.com/pokaz/3770821---ebc3.html
http://rapidshare.com/files/248491998/Launcher.sh.tar.gz.html
http://wklej.org/id/111728/
http://paste.ubuntu.com/203546/

Features:
√ Generating Bash scripts to run CS2D on Linux
√ Generating Bath scripts to run CS2D on Windows
√ Saving Bash/Bath files
√ Running game without need to save settings to file
√ Resolution
√ Color depth
√ Join to server by IP
√ Create a server with selected map
√ Enable/Disable intro
√ Selecting graphics driver ( OpenGL , DirectX )
√ Choosing window mode ( Windowed, Fullscreen )
× Running game from script ( any bug i will fix it soon as its possible )

License:
- Free, do with it what you want

http://img146.imageshack.us/img146/3882/cs2dlauncher.png

Thanks, WebNuLL
edited 7×, last 25.06.09 04:33:20 pm

old Re: Launcher script for Linux

DC
Admin Off Offline

Quote
nice work.
I'll add that to the next version of the cs2d linux download when you give me your permission.

old Re: Launcher script for Linux

Wolf6331
User Off Offline

Quote
first nice job!

but i think here is an error:
the console gives me this error message:

"Run.sh: line 501: ./CounterStrike2D -w 800 -h 800 -32bit -gl -nointro: File or directory not found"


and the error shuold be here:

489      make_bash() {
490     bash_prompt="./CounterStrike2D$resolution_command
     $depth_command$driver_command
     $join_command$map_command$intro_command"
491     }


You should write it like this:

... ./"CounterStrike2D" ...

old Re: Launcher script for Linux

webnull
User Off Offline

Quote
@Wolf6331

Thanks.

This is my first script in Bash scripting language, sorry for bugs ;]

@DC
Im giving pemission to you, and all people, for modifing and redistributing modified/unmodified version of this script.

@edit
I have thinked to make option "Create shortcut on your desktop" but i dont know how to get full directory name, where script has launched.

Thanks, WebNuLL
edited 3×, last 25.06.09 04:47:01 pm

old Re: Launcher script for Linux

webnull
User Off Offline

Quote
Silent_Control has written
He said that it Generates Bash scripts to run CS2D on Windows so i suppose that it is for Windows too.
[Rest in Peace, Michael Jackson]


Bash scripts for Linux and Bath for Windows OS.
But script is working only in Linux, for windows you have normal graphic launcher.

Thanks, WebNuLL

old Re: Launcher script for Linux

jeepohahyo
User Off Offline

Quote
Would it also work with Bourne Shell (/bin/sh) and other shells without bash-specific syntax? I'm not able to test it for myself right now.

Don't know, might be helpful for those few per cent who don't use the bash

old Re: Launcher script for Linux

webnull
User Off Offline

Quote
@Dicker
I didnt tested it, if you can test it please send results

@edit
It works with Bourne Shell.

Thanks, WebNuLL
edited 1×, last 29.06.09 11:08:17 am
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview