-- [ Picked text/plain from multipart/alternative ] (This may get posted twice; I apologize in advance)
There's a pretty straightforward way to do it if sv_downloadurl is in use. And by straightforward, I mean it can be done without too much black magic and reverse engineering. Given a list of servers, query each server S for the name of the current map M (this is pretty easy to do if you've used sockets before -- use this<http://developer.valvesoftware.com/wiki/Source_Server_Queries>as a reference). If M is not in your Half-Life 2 maps folder, then you'll need to download it. So, query S for the value of its sv_downloadurl cvar, and then download the file from <sv_downloadurl>/maps/<mapname>.bz2. To automatically extract the map is a slightly different story -- you'll probably need to find a command-line unzip utility capable of dealing with bz2; this one <http://www.7-zip.org/> comes to mind. Also, you'll need to write code to deal with .res files, since not all mappers know to package all custom assets into the bsp. Run the above paragraph once every ten minutes or so, and over the course of 5-10 hours you should be completely up to date on all the servers you check. The one hiccup is that this doesn't work for servers without sv_downloadurl -- I imagine it'd be possible with lots of packet sniffing and reverse engineering, but the legality of that is questionable. I think this program would be pretty straightforward to write in C#. Actually, if you don't write it then I probably will... but I have other fish to fry at the moment. -Mike On 9/28/05, Draco <[EMAIL PROTECTED]> wrote: > > -- > [ Picked text/plain from multipart/alternative ] > Ah, so you want it to check the map rotation of any server, find all the > maps in it, then allow you to find and download them? > > Sounds like quite a task, I do not think it is possible without having > access to the servers files( via FTP or something) > > -- > Draco > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

