My friend needs one and I wanted to find it 4 him. He tried Only Mortal but it had no Urt listings and he couldn't figure out how to use it and since I have PC I couldn't help. If anyone knows we would appreciate it.
Advertisement
Anyone know a good mac game server browser???
Advertisement
#8
Posted 14 July 2004 - 06:13 AM
acctually I have not read the 3.7 discussion even once so ............
since no one else is answering I'll DL OM and tell you the answer which is
just highlight the q3 icon .. hit get new list .. wait a min the select q3ut3 as the mod bam yer done .
ill.. from the source for MacUrT3
/*****************************************************************************
* Copyright © 2003
* $Id: $
*
* Authors: Derk-Jan Hartman <thedj at users.sf.net>
* Kade Behm <clublights at mac.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#import "UTOpenInterface.h"
NSString *UTQ3ALocationKey=@"Location of Quake3 10.2 G4.app";
@implementation UTOpenInterface
/* only one, shared instance/object of this entire class */
static UTOpenInterface *_o_sharedInstance = nil;
+ (UTOpenInterface *)sharedInstance
{
return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init];
}
- (id)init
{
if (_o_sharedInstance) {
[self dealloc];
} else {
_o_sharedInstance = [super init];
}
/* Default prefs */
NSMutableDictionary *defaultValues=[NSMutableDictionary dictionary];
[defaultValues setObject: @"/Applications/Quake3/Quake3 10.2 G4.app" forKey: UTQ3ALocationKey];
[[NSUserDefaults standardUserDefaults] registerDefaults: defaultValues];
return _o_sharedInstance;
}
/* executed when the Interface is done loading */
- (void)awakeFromNib
{
/* Whenever the text in the URL dialog changes, run URLPathChanged */
[[NSNotificationCenter defaultCenter] addObserver: self
selector: @selector(URLPathChanged:)
name: NSControlTextDidChangeNotification
object: openURLTextfield];
}
- (IBAction)launchQ3A:(id)sender
{
[self runQuake3WithArg:[NSArray array]];
}
- (IBAction)launchUrT:(id)sender
{
[self runQuake3WithArg: [NSArray arrayWithObject: @"+set fs_game q3ut3"]];
}
/* Close the window. nothing else to do atm. */
- (IBAction)openCancel:(id)sender
{
[openURLWindow orderOut:self];
}
/* Retrieve the url from the textfield and if a valid URL, open it. */
- (IBAction)openURL:(id)sender
{
NSURL *a_url = [NSURL URLWithString: [openURLTextfield stringValue]];
if ( a_url )
[self openWithURL: a_url];
}
/* Open the q3ut url a_url */
- (void)openWithURL:(NSURL *)a_url
{
NSArray *argArray;
NSString *host, *port, *game;
if( a_url != nil )
{
/* add to open recent */
} else {
/* invalid url */
return;
}
host = [a_url host];
port = [[a_url port] stringValue];
game = @"q3ut3";
argArray = [NSArray arrayWithObject: [NSString
stringWithFormat: @"+set fs_game %@ +connect %@:%@", game, host, port]];
[openURLWindow orderOut:self];
[self runQuake3WithArg: argArray];
}
- (IBAction)showOpenURL:(id)sender
{
/* show the window */
[openURLWindow makeKeyAndOrderFront:self];
}
- (void)URLPathChanged:(NSNotification *)o_notification
{
/* Not currently used */
}
/* This does the actual launching */
- (void)runQuake3WithArg: (NSArray *)a_array
{
NSTask *qTask;
NSString *quakeBin = [[preferences stringForKey: UTQ3ALocationKey] stringByAppendingPathComponent: @"Contents/MacOS/Quake3 G4"];
qTask = [NSTask launchedTaskWithLaunchPath: quakeBin arguments: a_array];
}
@end
/* Used when a URL is being passed to the program */
@implementation UTGetURLScriptCommand
- (id)performDefaultImplementation {
NSString *o_command = [[self commandDescription] commandName];
NSString *o_urlString = [self directParameter];
if ( [o_command isEqualToString:@"GetURL"] ||
[o_command isEqualToString:@"OpenURL"] )
{
[[UTOpenInterface sharedInstance] openWithURL:
[NSURL URLWithString: o_urlString]];
}
return nil;
}
@end
since no one else is answering I'll DL OM and tell you the answer which is
just highlight the q3 icon .. hit get new list .. wait a min the select q3ut3 as the mod bam yer done .
ill.. from the source for MacUrT3
/*****************************************************************************
* Copyright © 2003
* $Id: $
*
* Authors: Derk-Jan Hartman <thedj at users.sf.net>
* Kade Behm <clublights at mac.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#import "UTOpenInterface.h"
NSString *UTQ3ALocationKey=@"Location of Quake3 10.2 G4.app";
@implementation UTOpenInterface
/* only one, shared instance/object of this entire class */
static UTOpenInterface *_o_sharedInstance = nil;
+ (UTOpenInterface *)sharedInstance
{
return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init];
}
- (id)init
{
if (_o_sharedInstance) {
[self dealloc];
} else {
_o_sharedInstance = [super init];
}
/* Default prefs */
NSMutableDictionary *defaultValues=[NSMutableDictionary dictionary];
[defaultValues setObject: @"/Applications/Quake3/Quake3 10.2 G4.app" forKey: UTQ3ALocationKey];
[[NSUserDefaults standardUserDefaults] registerDefaults: defaultValues];
return _o_sharedInstance;
}
/* executed when the Interface is done loading */
- (void)awakeFromNib
{
/* Whenever the text in the URL dialog changes, run URLPathChanged */
[[NSNotificationCenter defaultCenter] addObserver: self
selector: @selector(URLPathChanged:)
name: NSControlTextDidChangeNotification
object: openURLTextfield];
}
- (IBAction)launchQ3A:(id)sender
{
[self runQuake3WithArg:[NSArray array]];
}
- (IBAction)launchUrT:(id)sender
{
[self runQuake3WithArg: [NSArray arrayWithObject: @"+set fs_game q3ut3"]];
}
/* Close the window. nothing else to do atm. */
- (IBAction)openCancel:(id)sender
{
[openURLWindow orderOut:self];
}
/* Retrieve the url from the textfield and if a valid URL, open it. */
- (IBAction)openURL:(id)sender
{
NSURL *a_url = [NSURL URLWithString: [openURLTextfield stringValue]];
if ( a_url )
[self openWithURL: a_url];
}
/* Open the q3ut url a_url */
- (void)openWithURL:(NSURL *)a_url
{
NSArray *argArray;
NSString *host, *port, *game;
if( a_url != nil )
{
/* add to open recent */
} else {
/* invalid url */
return;
}
host = [a_url host];
port = [[a_url port] stringValue];
game = @"q3ut3";
argArray = [NSArray arrayWithObject: [NSString
stringWithFormat: @"+set fs_game %@ +connect %@:%@", game, host, port]];
[openURLWindow orderOut:self];
[self runQuake3WithArg: argArray];
}
- (IBAction)showOpenURL:(id)sender
{
/* show the window */
[openURLWindow makeKeyAndOrderFront:self];
}
- (void)URLPathChanged:(NSNotification *)o_notification
{
/* Not currently used */
}
/* This does the actual launching */
- (void)runQuake3WithArg: (NSArray *)a_array
{
NSTask *qTask;
NSString *quakeBin = [[preferences stringForKey: UTQ3ALocationKey] stringByAppendingPathComponent: @"Contents/MacOS/Quake3 G4"];
qTask = [NSTask launchedTaskWithLaunchPath: quakeBin arguments: a_array];
}
@end
/* Used when a URL is being passed to the program */
@implementation UTGetURLScriptCommand
- (id)performDefaultImplementation {
NSString *o_command = [[self commandDescription] commandName];
NSString *o_urlString = [self directParameter];
if ( [o_command isEqualToString:@"GetURL"] ||
[o_command isEqualToString:@"OpenURL"] )
{
[[UTOpenInterface sharedInstance] openWithURL:
[NSURL URLWithString: o_urlString]];
}
return nil;
}
@end