User panel stuff on forum
  16 posts on 1 page  1
Client Talk
2007-10-13, 14:30
Member
75 posts

Registered:
May 2006
Hello,

Deurk recently asked about the possibility to make use of a protocol prefix for qw. I did some googling and found it was possible to register your own protocol prefixes such as http:// or ftp:// in the windows registry. Passed that info on to deurk who tried registering qw:// and he got it working with ezQuake (except there was no support for it). This support makes it possible to have qw-urls on webpages, or paste them on irc or whatever. When clicked they will launch the associated program.

So I decided to add a new command /qwurl that parses qw-urls, which have the following format:
qw://server:port/[join, connect, spectate, observe, qtv]

Examples:
Connect to server (same behaviour):
qw://server:port/
qw://server:port/join
qw://server:port/connect

Observe:
qw://server:port/spectate
qw://server:port/observe

QTV:
qw://channel@qtvproxy:port/qtv

Deurk added a "Play now!" button to his QTV where you can try it out => http://qw.deurk.net:27599/nowplaying

Also to make it simple to register ezQuake as the qwurl-protocol handler, I added a command /register_qwurl_protocol that registers the currently running exe in the registry.

Also the default behaviour on startup is to check the registry if the current exe is the registered one, and if not, shows a warning message in the console. Behaviour for this can be changed using this cvar:

cl_verify_qwprotocol:
0 = Don't check
1 = Check
2 = Don't check, always register the current exe.

Another added feature that also includes demo playback and .qtv-files. Before when you ran a demo file in explorer it would start ezQuake and play it. But! if there was already a client running you'd get a message "qwcl is already running". The new behaviour is to play the file in the currently running ezQuake instead.

Note that this was just added to CVS, to be able to use it you need a 1.9 alpha build that was built 2007-10-13+
http://uttergrottan.localghost.net/ezquake/dev/nightlybuilds/
2007-10-13, 14:34
Member
151 posts

Registered:
Feb 2006
Cool stuff Too bad I'm a linuxfreak nowadays!
2007-10-13, 14:42
Member
2259 posts

Registered:
Jan 2006
very very good cokeman!!
2007-10-13, 15:07
Member
1433 posts

Registered:
Jan 2006
Would be nice to be able to click the addresses here - http://www.quakeservers.net/quakeworld/servers/t=2on2/
2007-10-13, 15:09
Member
250 posts

Registered:
Jul 2007
Is the port obligatory? If yes, how about a default to 27500?
2007-10-13, 15:09
Member
250 posts

Registered:
Jul 2007
Oh... btw, sensible feature overall.
2007-10-13, 15:58
Member
1011 posts

Registered:
Feb 2006
dakoth wrote:
Cool stuff Too bad I'm a linuxfreak nowadays!

linux support via firefox would be trivial
2007-10-13, 16:01
Member
75 posts

Registered:
May 2006
pattah wrote:
Is the port obligatory? If yes, how about a default to 27500?

That makes sense, I'll add that

... Nevermind, that's already supported, I'm on drugs
2007-10-13, 17:27
Member
151 posts

Registered:
Feb 2006
oldman wrote:
dakoth wrote:
Cool stuff Too bad I'm a linuxfreak nowadays!

linux support via firefox would be trivial

Wouldn't know where to start, since this method makes use of the windows registry
2007-10-13, 18:24
Member
1026 posts

Registered:
Feb 2006
better yet.. you could make a Firefox extension for qw:// links

-> would work in all operating systems..
god damn hippies >_<
2007-10-13, 21:26
Member
1011 posts

Registered:
Feb 2006
why all this talk about extensions???

1) 'about:config'
2) Right-click on any text in there and select "New" and then "String"
3) In the first dialog box, as preference name, type in "network.protocol-handler.app.qw"
4) In the second dialog box, as string value, type in "/usr/games/ezquake-gl.glx"

Then when you click on qw:// links, firefox will launch ezquake with qw:// parameter - obviously you need latest cvs build for it to pickup Cokeman's parsing :-)
2007-10-13, 21:35
Member
151 posts

Registered:
Feb 2006
oldman wrote:
why all this talk about extensions???

1) 'about:config'
2) Right-click on any text in there and select "New" and then "String"
3) In the first dialog box, as preference name, type in "network.protocol-handler.app.qw"
4) In the second dialog box, as string value, type in "/usr/games/ezquake-gl.glx"

Then when you click on qw:// links, firefox will launch ezquake with qw:// parameter - obviously you need latest cvs build for it to pickup Cokeman's parsing :-)

Tried that, but it didn't work for me. Says roughly that 'firefox doesn't have an application associated with handling the protocol'.
2007-10-13, 21:52
Member
1011 posts

Registered:
Feb 2006
worked fine for me, no need to restart firefox (2.0.0.6)

are you sure you got the .app.qw bit spelt correctly? your 'firefox doesn't have an application associated with handling the protocol' was what i saw before i'd added the config entry - after i'd added it, first time i got a 'are you sure you want to launch ezquake' and a 'remember for next time' tickbox
2007-10-13, 22:19
Member
151 posts

Registered:
Feb 2006
http://www.pici.se/136827/

Only tried it in windows, but should be the same, no?
2007-10-13, 22:33
Member
75 posts

Registered:
May 2006
oldman wrote:
why all this talk about extensions???

1) 'about:config'
2) Right-click on any text in there and select "New" and then "String"
3) In the first dialog box, as preference name, type in "network.protocol-handler.app.qw"
4) In the second dialog box, as string value, type in "/usr/games/ezquake-gl.glx"

Then when you click on qw:// links, firefox will launch ezquake with qw:// parameter - obviously you need latest cvs build for it to pickup Cokeman's parsing :-)

You need to have +qwurl qw://the_url on the command line when associating it also.
2007-10-13, 23:42
Member
1011 posts

Registered:
Feb 2006
you can't have arguments on the protocol-handler setting, i made a little script qwprotocol to call with arguments

$ cat qwprotocol
#!/bin/sh

~/Games/quake/ezquake-gl.glx +qwurl $*
  16 posts on 1 page  1