Tip: Xchat and UT2004

Discussion about XChat on Linux and other unix like systems.

Tip: Xchat and UT200

Postby eazy » 26 Apr 2007 19:35

I have posted this on Ubuntu forum and I thought I could post it here as well. Who knows, there might be a UT2004-oholic here also ;)

You can not start UT2004 from xchat with UT2004-links (ut2004://) normally (normal IP works). To make those links clickable you have to compile xchat from source.

Download the source and decompress it. Open the file: /xchat2/src/common/url.c with a text editor. Find the line { D("gopher://") }, .Copy that line and paste it under the line you just copied. Change gopher:// to ut2004://. When you are done it looks like this:

----Cut-----
{ D("rtsp://") },
{ D("gopher://") },
{ D("ut2004://") },
},
suffix[] = {
{ D(".org") },
{ D(".net") },
----cut----

Save the file and compile. When xchat is installed, start xchat and go to settings --> advanced --> URL-Handler. Make a new post and name it Open with UT2004 (or whatever you prefer) then add the command !ut2004 %s Make a new post and Name it Spec with UT2004 and the command !ut2004 %s?SpectatorOnly=1 Now you can start UT2004 as a player or as a spectator from Xchat if you right click on either a "normal IP" or a ut2004://IP

I expect that this will work for UT3 when that time comes, but the URL will probably be ut3://
eazy
 
Posts: 48
Joined: 25 Jul 2006 18:38

Re: Tip: Xchat and UT2004

Postby stallien » 24 May 2011 08:40

Well, to be honest, I was not sure whether we could start UT2004 from X chat. Seems not! Anyway, I guess we can do so by compiling x chat from the source. However, I am having a bit of trouble here compiling after saving the file. Any idea why? Anyway, now that UT3 is here, I am also wondering whether the same issue would be repeated there! From what I gather, not much has been done on the UT3!
stallien
 
Posts: 1
Joined: 24 May 2011 08:36


Return to XChat

Who is online

Users browsing this forum: No registered users and 0 guests