1up Sidebar Gadget created by SNKMFER[1up].
]
(a shrunk down window initially created for Dj_Laidas[1up])
Should work with Vista as well. And I believe Ron has a version of XP it will work with.
Should work with Vista as well. And I believe Ron has a version of XP it will work with.
I would very much like to get that from you Ron. :D
Should work with Vista as well. And I believe Ron has a version of XP it will work with.
I would very much like to get that from you Ron. :D
I think Ron and I run the same version of XP (since he showed it to me a while ago), Windows XP Ultimate by Johnny... You can find the torrent download here at www.winxpu.info (http://www.winxpu.info) (it can take forever to dl though) I could arrange to send you a disk in the mail if need be, let me know :)
/Users/jjjj/1ups_mac: line 1: {rtf1macansicpg10000cocoartf824cocoasubrtf480: command not foundThere isn't even a "}" on line 2 XD
/Users/jjjj/1ups_mac: line 2: syntax error near unexpected token `}'
/Users/jjjj/1ups_mac: line 2: `{\fonttbl\f0\fmodern\fcharset77 Courier;}'
I do not understand why either of you are not using the getstatus command to get the info you want and format it however you want instead of trying to parse remote php files which puts a strain on our site that is not needed. All the info you need can be obtained using the getstatus command this is how sites like game tracker and others like it work so use the tools that are already available to you instead of making life more difficult for yourselves.
As far as connecting to a server from within an application goes that is extremely simple to do as well, simply call the urt executable with the connect and ip parameters like this (path/to/urt_executable.exe connect 127.0.0.1) you don't even need to supply a port if the server you are connecting to is using the default port (ie 27960) but if it's not then you just add the port after the ip like this (127.0.1.0:55555)
Like I said all of the things your trying to accomplish can be done in much simpler ways so do yourselves a favor and search google for "quake 3 rcon protocol" and you should be good to go once you understand the basics which is extremely easy to do (1 line of code to be exact)
Good Luck,
Tesla[1up]
Also, the script in it's current state doesn't work well with the Mac versions of the tools I've used, but it's easily fixed. I was going to make this interactive, in the way that you double click a desktop icon and it launches a terminal for you, but I'll hold off on that until I know if Dougy can make a GUI for it.
That's strange, Pyrite said that it wasn't interpreting newline characters (\n in GNU sed) properly on his system; Macs have BSD sed, which is slightly different. Let me know if you can't get a widget-type thing working and I'll see if I can do anything.
At some point I'd like to see if I can use the getstatus command like Tesla said.
Oh and can a Mac user confirm the status of launching into servers please?
Once I sort out the newline character thing, I think I can speed the player search up again.
Originally it was parallel downloading and parsing, but it caused 32 processes to spawn simultaneously, and this set off the anti-forkbomb restrictions I have on my rig. So I switched to sequential download and parse - the idea is to have parallel downloads and sequential parsing, to speed it back up.
Parallel download and parsing was ~0.65s, sequential download and parse ~3.80s, so I'm hoping the parallel downloads will bring the time down below 3s.
exec 3<>/dev/udp/208.43.15.85/27960
echo -e "\xff\xff\xff\xffgetstatus">&3
cat <&3
How the hell do you hack sed? You mean you installed GNU sed probably.
Oh and Pyrite, I got the socket redirection working, and stopped it from hanging the script too. ;)
I'll get started with sed tomorrow to parse all the data and make it look nice. :P
Shell Script¶
If you are using a Linix/Unix/Solaris/BSD box then you can get the status of the server on the command line.
Rcon Status (password required)
printf '\xFF\xFF\xFF\xFFrcon <PASSWORD> status\n' | nc -u -n -w 1 <SERVER_IP> <SERVER_PORT> | sed -ne ':x;/\xFF/{N;s/\xFF\xFF\xFF\xFFprint\n//;tx};/^$/d;p'
Basic Status (no password required)
printf '\xFF\xFF\xFF\xFFgetstatus\n' | nc -u -n -w 1 <SERVER_IP> <SERVER_PORT>
(Replace <PASSWORD>, <SERVER_IP>, <SERVER_PORT> above with the actual values)
Good idea, I dunno what RSS syntax is like as I've never bothered with it but as long as I can parse it, I'm game. If the script is going to use an RSS feed for server IPs, I'd either have to have a switch in the script for the user to update a local file containing the IPs, from which the main script would read every time, or have the RSS downloaded every time it's run. I don't want to use up more bandwidth than necessary, even if its just a few kilobytes. It all adds up.
I guess I could use sed to make the script edit itself lol. But I don't know how that would work in terms of different install locations. The home dir is a good place if it's going to be run directly by the user, whereas somewhere like /usr/bin would be more suitable if it's just going to be a backend.
Updated: 09
Icy: 208.43.15.8:27960
Xmas: 208.43.15.89:27960
Oh I see. Sorry I'm trying to do about 10 things at once here and didn't read it properly :P
I'm still concerned over how this won't work on all platforms... I kinda feel that because I'm unable to do anything that works on all platforms, that I'm doing a half-assed job... And I don't want a 1up server monitor app to look half-assed because I don't want to give people that kind of impression about 1up. I just want everyone to have a nice consistent looking app that functions the same on all platforms, not my hacky piece of s*** excuse for an app. I either need to knuckle down and try and learn some Java or hand this over to someone who actually knows what they're doing.
OK I need to update it to sort out that first run problem, and also for Mumble instead of Vent, so I'll post the link to the updated version as soon as I have the right info.
Nice one Dougy! I guess I remembered incorrectly about bash 4 being needed...I'll be sorting it out later.
Also you've confirmed something I've seen happen on my end - the map names are sometimes wrong on first load. I'm not sure why but I haven't got round to looking into it, I think it's the parallel queries to the server script... I'll probably point it to individual scripts for each server and see how that affect things.
What did you have to do to get bash 3.2 on your Mac?