Comments on: Launching maps and demos with a doubleclick http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/ The greatest Quake 1 Singleplayer site on this planet. Tue, 09 Aug 2011 22:15:18 +0000 hourly 1 By: k2 http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-2479 k2 Sun, 04 Jul 2010 13:09:03 +0000 http://www.quaddicted.com/?p=374#comment-2479 Other launcher or starter: #!/bin/bash # path-to-quake-engine cd /usr/local/games/quake/ mod=`zenity --list --height=300 --title="Mod" --text="Choose mod" --radiolist --column "Select" --column "Mod" TRUE id1 FALSE mod1 FALSE mod2 FALSE mod3 FALSE mod4 FALSE mod5 FALSE mod6 FALSE mod7 FALSE mod8 FALSE mod9 FALSE mod10` if [ "$?" -eq 1 ]; then exit fi skill=`zenity --list --height=290 --title="Skill" --text="Choose skill" --radiolist --column "Select" --column "Choose skill" FALSE 0 TRUE 1 FALSE 2 FALSE 3` if [ "$?" -eq 1 ]; then exit fi map=`(zenity --title="Map" --text="Write map or leave empty to main menu" --entry)` if [ "$?" -eq 1 ]; then exit fi ./quake -fullscreen -width 800 -height 600 -game "$mod" +skill "$skill" +map "$map" Here is my original and pictures http://kadve.blogspot.com/2010/06/blog-post.html . I am using Debian and Gnome. Other launcher or starter:

#!/bin/bash
# path-to-quake-engine
cd /usr/local/games/quake/
mod=`zenity –list –height=300 –title=”Mod” –text=”Choose mod” –radiolist –column “Select” –column “Mod” TRUE id1 FALSE mod1 FALSE mod2 FALSE mod3 FALSE mod4 FALSE mod5 FALSE mod6 FALSE mod7 FALSE mod8 FALSE mod9 FALSE mod10`
if [ "$?" -eq 1 ]; then
exit
fi
skill=`zenity –list –height=290 –title=”Skill” –text=”Choose skill” –radiolist –column “Select” –column “Choose skill” FALSE 0 TRUE 1 FALSE 2 FALSE 3`
if [ "$?" -eq 1 ]; then
exit
fi
map=`(zenity –title=”Map” –text=”Write map or leave empty to main menu” –entry)`
if [ "$?" -eq 1 ]; then
exit
fi
./quake -fullscreen -width 800 -height 600 -game “$mod” +skill “$skill” +map “$map”

Here is my original and pictures http://kadve.blogspot.com/2010/06/blog-post.html . I am using Debian and Gnome.

]]>
By: Stevenaaus http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-2365 Stevenaaus Mon, 01 Mar 2010 04:24:36 +0000 http://www.quaddicted.com/?p=374#comment-2365 I linked this page in my how-to update (http://www.quaddicted.com/?p=374). It might be up... sometime in the next week ? I linked this page in my how-to update (http://www.quaddicted.com/?p=374). It might be up… sometime in the next week ?

]]>
By: Spirit http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-922 Spirit Sun, 08 Mar 2009 11:31:28 +0000 http://www.quaddicted.com/?p=374#comment-922 Nice! Thanks for sharing that. Nice! Thanks for sharing that.

]]>
By: metlslime http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-921 metlslime Sun, 08 Mar 2009 10:02:09 +0000 http://www.quaddicted.com/?p=374#comment-921 Final step: 4. Make sure that "play" is the default action (click on "set default" after creating the action) for BSP files, otherwise you can use the context menu but double-click won't work. Final step:

4. Make sure that “play” is the default action (click on “set default” after creating the action) for BSP files, otherwise you can use the context menu but double-click won’t work.

]]>
By: metlslime http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-920 metlslime Sun, 08 Mar 2009 09:58:57 +0000 http://www.quaddicted.com/?p=374#comment-920 part 2: to actually make this work: 1. save the file to e.g. "D:\Scripts\quake_bsp_run.js" 2. in windows explorer, choose Tools -> Folder Options -> File Types and find the entry for "BSP File" and click "Advanced" 3. Click "New..." and in the first field type "Play" and for the second field type "WScript.exe D:\Scripts\quake_bsp_run.js %1" This works on XP, probably works on 2000 too, but i have no idea if it works in Vista or any of the 95/98/ME versions. part 2: to actually make this work:

1. save the file to e.g. “D:\Scripts\quake_bsp_run.js”

2. in windows explorer, choose Tools -> Folder Options -> File Types and find the entry for “BSP File” and click “Advanced”

3. Click “New…” and in the first field type “Play” and for the second field type “WScript.exe D:\Scripts\quake_bsp_run.js %1″

This works on XP, probably works on 2000 too, but i have no idea if it works in Vista or any of the 95/98/ME versions.

]]>
By: metlslime http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-919 metlslime Sun, 08 Mar 2009 09:53:41 +0000 http://www.quaddicted.com/?p=374#comment-919 actually you can do this in windows with a javascript or vbscript file using WScript.exe, i just wrote myself such a script a few days ago: var fs = new ActiveXObject("Scripting.FileSystemObject"); var shell = new ActiveXObject("WScript.Shell"); var arg = WScript.Arguments(0); var filename = fs.GetFileName(arg); if (filename.match(/^(.+)\.bsp$/i)) { var mapname = RegExp.$1; if (shell.CurrentDirectory.match(/quake\\(.+)\\maps/i)) { var modname = RegExp.$1; shell.CurrentDirectory = fs.GetParentFolderName(arg) + "\\..\\.."; shell.Run( "fitzquake -game " + modname + " -width 1680 -height 1050 -bpp 32 -heapsize 64000 +map " + mapname ); } } actually you can do this in windows with a javascript or vbscript file using WScript.exe, i just wrote myself such a script a few days ago:

var fs = new ActiveXObject(“Scripting.FileSystemObject”);
var shell = new ActiveXObject(“WScript.Shell”);
var arg = WScript.Arguments(0);
var filename = fs.GetFileName(arg);

if (filename.match(/^(.+)\.bsp$/i))
{
var mapname = RegExp.$1;

if (shell.CurrentDirectory.match(/quake\\(.+)\\maps/i))
{
var modname = RegExp.$1;

shell.CurrentDirectory = fs.GetParentFolderName(arg) + “\\..\\..”;
shell.Run( “fitzquake -game ” + modname + ” -width 1680 -height 1050 -bpp 32 -heapsize 64000 +map ” + mapname );
}
}

]]>
By: Spirit http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-893 Spirit Thu, 19 Feb 2009 15:43:30 +0000 http://www.quaddicted.com/?p=374#comment-893 And some more (sda and hacking): e4m7u msacro ogitrev progref And some more (sda and hacking):
e4m7u
msacro
ogitrev
progref

]]>
By: Spirit http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-892 Spirit Thu, 19 Feb 2009 15:25:46 +0000 http://www.quaddicted.com/?p=374#comment-892 Added the following (originally pocketquake) map to filebase: kustok.zip Added the following (originally pocketquake) map to filebase:
kustok.zip

]]>
By: dooomer http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-890 dooomer Sun, 15 Feb 2009 08:06:07 +0000 http://www.quaddicted.com/?p=374#comment-890 I believe in Windows one can do the same with CMD batch files, even without bash or cygwin. I believe in Windows one can do the same with CMD batch files, even without bash or cygwin.

]]>
By: Spirit http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-880 Spirit Thu, 05 Feb 2009 07:46:00 +0000 http://www.quaddicted.com/?p=374#comment-880 Yeah, I thought about things like that (cygwin) too. But that's cheating. ;) Yeah, I thought about things like that (cygwin) too. But that’s cheating. ;)

]]>
By: Bad Sector http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-879 Bad Sector Thu, 05 Feb 2009 04:04:07 +0000 http://www.quaddicted.com/?p=374#comment-879 You can do the same in Windows if you have bash available (like, for example, if you have MSYS installed) - there is nothing Linux-specific to it :-P. You can do the same in Windows if you have bash available (like, for example, if you have MSYS installed) – there is nothing Linux-specific to it :-P.

]]>
By: Spirit http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-878 Spirit Wed, 04 Feb 2009 17:45:11 +0000 http://www.quaddicted.com/?p=374#comment-878 Heh, I don't get why people have so much trouble getting that connection. Really. :D Heh, I don’t get why people have so much trouble getting that connection. Really. :D

]]>
By: RickyT23 http://www.quaddicted.com/tips-and-tricks/launching-maps-and-demos-with-a-doubleclick/comment-page-1/#comment-877 RickyT23 Wed, 04 Feb 2009 16:35:53 +0000 http://www.quaddicted.com/?p=374#comment-877 Schbirid Fuck. I only just realised that was you :P Schbirid

Fuck. I only just realised that was you :P

]]>