Page 1 of 1

only one wish

Posted: Tue Jan 03, 2006 8:03 pm
by BadPing
hy all
all best for 2006! hope you started well this year.
Last night i had a dream: i saw my mac and i turned it on. after started the os i wanna play that q3a. and to find my favoret server an to join in the game, i used a widget.
So my request is to find a member here who can make a q3a-widget for us all.
please please please
ONLY THIS WISH in this year!

BadPing

Posted: Tue Jan 03, 2006 9:15 pm
by primaltheory
That wouldn't be too hard to make, just shortcuts that make command line-commands

Posted: Tue Jan 03, 2006 10:37 pm
by NCG_Mike
It's not that simple as you have to get listings from somewhere. That means UDP socket programming, unless you suck off a web site.

You might be able to use qstat from a widget but I don't know much about Widgets myself.

Posted: Tue Jan 03, 2006 11:19 pm
by primaltheory
Technically Couldn't you just make a widget that makes shortcuts and stores them in the widget? like "target or w/e" +connect 127.0.0.1 ??

Posted: Wed Jan 04, 2006 12:37 am
by Canis
If a javascript can access the commandline then it would be simple, as you could get the widget to just store your favorite ip addresses for the servers, and then apply them to a +connect parameter as the widget calls the Applicataion to open. As for one that checks server status and such, that would be a lot harder...

Posted: Wed Jan 04, 2006 1:02 am
by primaltheory
Yea, server status would be harder, but arent there q3 server browsing progs you could connect it with?

Posted: Wed Jan 04, 2006 2:23 am
by Canis
There's Only Mortal, and Gameranger, but I dont think any of them have output to a Widget. Still, with them open you dont need a widget, as they'll indicate either in the menu bar or in a window what servers are available.

Posted: Wed Jan 04, 2006 7:31 am
by S@M
java would suc, is there a better option?

Posted: Wed Jan 04, 2006 5:34 pm
by Canis
There are all kinds of options, but they'd be damn hard to code for, and given the already present server browsers and pingers, and such, I doubt anyone would spend the time on it.

Posted: Fri Jan 06, 2006 12:11 pm
by BadPing
thanxs for the replies

only one thing: i am not looking for a gamebrowser such like "gameranger" or "only mortal". these two working very well for me to find the servers.
a friend wrote a small widget for linux where he put in his favouret server-ip´s.
so (and this is my wish) he can check these few servers with one view for friends online gaming on these servers. QuakeMenue will do the same but i saw that the way via widget is more comfortable than joining a menue and view through the servers. also it has some bugs on my side.
tnx for help

Posted: Fri Jan 06, 2006 5:25 pm
by Canis
If he wrote the widget in javascript then it should be fairly easy to get working on OS X.

Posted: Sun Jan 08, 2006 1:28 pm
by BadPing
oh sorry... he didn´t it in javascript. he told me that the widget ist working together with "quakestat". so i suppose this is not usable for mac-os.
he just postet the code, maybe its a help, i dont know because i am absolut a newb in this case.
SERVER_IP=xxx.xxx.xx.xxx
SERVER_PORT=27960
karamba.addMenuConfigOption(widget,"bg","Show background")
case $1 in
"-p")
echo "`quakestat -P -sort F -q3s $SERVER_IP:$SERVER_PORT | grep 'ms' | awk '{print $4,$1,$2}'`"
;;
"-m")
echo "`qstat -q3s $SERVER_IP:$SERVER_PORT | grep '/' | awk '{print $4}'`"
;;
*)
echo -e "Usage:\n-p query player(s)\n-m query map"
;;
esac

thanxs for reading

Posted: Sun Jan 08, 2006 5:34 pm
by Canis
That information uses qstat to access the server. qstat is available for OS X and does work, but as far as getting a javascript to access it, I dont know. I know minimal javascripting. Its not hard to learn at all, so at some point I may give it a shot. Try taking a look at various widgets and open their source pages up to look at their codes.

Here's a Wolfenstein Server Status widget that should be EASILY portable to Q3 seeing how they're based off the same engine: http://www.apple.com/downloads/dashboar ... idget.html

Posted: Sun Jan 08, 2006 5:41 pm
by Canis
Actually it works for Q3 servers, you just have to enter a Q3 server IP address adn it will function. You'll have to edit the applescript included in the contents of the widget package so it points to your Q3 application instead of Wolfenstein.

Posted: Sun Jan 08, 2006 6:02 pm
by Canis
I hosted a "modified" copy of that program to work with Q3 if you have it installed in /Applications/Quake3/

Hre: http://homepage.mac.com/tkessler/.Publi ... t.wdgt.zip

Posted: Sun Jan 08, 2006 7:48 pm
by BadPing
Canis: are you married ? :icon25:
Thank you!