Raised This Month: $ Target: $400
 0% 

Sockets Module


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
|2ob
Senior Member
Join Date: Mar 2004
Location: Ontario, Canada
Old 03-30-2004 , 18:26   Sockets Module
Reply With Quote #1

Would this module make downloading files like maps, sounds, models faster? and is it backwards compatible?
__________________
24/7 Custom Maps Vitrus | Style by www.WebGZ.net
64.247.24.125:27015

Visit Vitrus's Clan Site!

I would put more, but they have a limit on chars
|2ob is offline
Send a message via AIM to |2ob Send a message via MSN to |2ob
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-30-2004 , 18:26  
Reply With Quote #2

sv_download_url might help ya... it dont come from server...
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
|2ob
Senior Member
Join Date: Mar 2004
Location: Ontario, Canada
Old 03-30-2004 , 18:29  
Reply With Quote #3

how would i use sv_download_url for specific files or missing maps.. stuff liek that?
__________________
24/7 Custom Maps Vitrus | Style by www.WebGZ.net
64.247.24.125:27015

Visit Vitrus's Clan Site!

I would put more, but they have a limit on chars
|2ob is offline
Send a message via AIM to |2ob Send a message via MSN to |2ob
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-30-2004 , 18:30  
Reply With Quote #4

Hold on a sec, let me find you a url for more info... it's posted in detail somewhere...

Vic/DT

I will edit this post with a link...

Here ya go, many cross links but you should be an expert when done

http://steampowered.com/forums/showt...threadid=11173
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
|2ob
Senior Member
Join Date: Mar 2004
Location: Ontario, Canada
Old 03-30-2004 , 18:32  
Reply With Quote #5

thanks. for AMX plugins that use vexd modules, what do i do? just put
#define <engine> instead?
__________________
24/7 Custom Maps Vitrus | Style by www.WebGZ.net
64.247.24.125:27015

Visit Vitrus's Clan Site!

I would put more, but they have a limit on chars
|2ob is offline
Send a message via AIM to |2ob Send a message via MSN to |2ob
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-30-2004 , 18:38  
Reply With Quote #6

Man... Now I gotta bust you... there are many messages about that already

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
cyko
Member
Join Date: Mar 2004
Old 03-30-2004 , 18:40  
Reply With Quote #7

Quote:
Originally Posted by DoubleTap
sv_download_url might help ya... it dont come from server...
Its sv_downloadurl

Quote:
the "sv_downloadurl" cvar

============================================
Half-Life Fast HTTP Asset Downloading Instructions
V1.02 January 22, 2004


SUMMARY
-------

Half-Life now supports the download of custom content (maps,
skins, sounds,
and so on) from a HTTP server (ie: webserver) when connecting,
instead of
downloading directly from the game server itself.

HTTP downloading has three major benefits:

1) There is no impact on the game server when downloading
custom content, as
a completely separate HTTP content server does the transfer

2) Players will download custom content at their maximum
transfer rate,
resulting in *much* faster downloads

3) Players who are downloading custom content do not take up a
player slot
on the server while they wait


WHAT PLAYERS CONNECTING TO A SERVER WITH CUSTOM CONTENT WILL SEE
----------------------------------------------------------------

When a player connects to a server utilizing custom content, one
of two
things will occur:

1) If the server is not configured for HTTP download, the game
server
will use the normal "trickle" download mechanism

2) If the server is configured for HTTP downloading, the player
will
see an enhanced download dialog, and much faster downloads.
While
this content is downloading, they are not connected to the
game
server. Once the download finishes, they are automatically
reconnected to the game server, and ready to play.


CONFIGURING YOUR SERVER TO USE FAST HTTP ASSET DOWNLOADING
----------------------------------------------------------

1) Make a list of all the custom files (bsp, wav, mdl, etc)
used on your server

2) Put these files on a HTTP server (ie: webserver), keeping
the folder
layout intact

3) OPTIONAL: To display a "banner image" to players that
download content,
place a 340x56 pixel image in the file <custom content
directory>/gfx/banner.gif

4) Set the sv_downloadurl cvar to
"http://yourserver/custom_content_directory/"


Example:

Your server uses the non-standard map "de_generic", which
requires the following files:

C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\maps\de
_generic.map
C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\de_gene
ric.wad
C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\sound\a
mbience\de_generic_a.wav
C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\sound\a
mbience\de_generic_b.wav
C:\Program
Files\Steam\SteamCache\[email protected]\Cou nter-Strike\cstrike\sound\a
mbience\de_generic_c.wav


You have web space (perhaps through your ISP) with the URL
"http://www.turtlerockstudios.com/~matt" that you will use to
host your
custom content.

To do this, you copy the files needed for "de_generic" to your
webspace,
placing them in a folder called "my_cstrike" in your webspace
top-level directory,
keeping their directory layout intact.

You now have the following files in your webspace:


http://www.turtlerockstudios.com/~m.../de_generic.map

http://www.turtlerockstudios.com/~m.../de_generic.wad

http://www.turtlerockstudios.com/~m...mbience/de_gene
ric_a.wav

http://www.turtlerockstudios.com/~m...mbience/de_gene
ric_b.wav

http://www.turtlerockstudios.com/~m...mbience/de_gene
ric_c.wav

You now set the "sv_downloadurl" cvar on your game server to
"http://www.turtlerockstudios.com/~matt/my_cstrike/". Now,
players who connect
to your server will automatically download the map "de_generic"
and its required
files from your webspace when they connect (unless they already
have it, of course).


TECHNICAL DETAILS
-----------------

* The maximum length of the sv_downloadurl is 127 characters

* A username and password can be specified for the HTTP server
by embedding
them in the sv_downloadurl like so:

http://[email protected]

( Note - recent IE patches make disable this functionality )

* If a connecting player has an existing file of the same name,
it will not
be overwritten. The download file will be skipped.

* Certain game-crtical and/or dangerous files cannot be
downloaded (ie: *.exe, *.vbs, etc)
The above was taken from:

http://www.cs-foren.de/main/index.ph...;threadid=6104

And if you are familiar with htaccess/htpasswd, I received this on the hlds_l mailing list, courtest of Ryan Shulze:

Quote:
.htaccess file:

SetEnvIf User-Agent ^Half-Life hlclient
Order Deny,Allow
Deny from all
Allow from env=hlclient
Granted, you must remember that some browsers allow them to spoof their User-Agent to make it look like they are 'Half-Life hlclient', but you'll divert some people away. This is mostly an issue because as of right now, sv_downloadurl is a public cvar, so its very easy for people to just use the same url as yourself and you find yourself with a hefty bandwidth bill on your hands.
cyko is offline
|2ob
Senior Member
Join Date: Mar 2004
Location: Ontario, Canada
Old 03-30-2004 , 19:03  
Reply With Quote #8

wow, thanks, ill ask my ISP.
__________________
24/7 Custom Maps Vitrus | Style by www.WebGZ.net
64.247.24.125:27015

Visit Vitrus's Clan Site!

I would put more, but they have a limit on chars
|2ob is offline
Send a message via AIM to |2ob Send a message via MSN to |2ob
Ronkkrop
Member
Join Date: May 2004
Old 05-07-2004 , 04:56   uhhhhhh?
Reply With Quote #9

Quote:
CONFIGURING YOUR SERVER TO USE FAST HTTP ASSET DOWNLOADING
----------------------------------------------------------

1) Make a list of all the custom files (bsp, wav, mdl, etc)
used on your server
where does this list go? It's a beautiful thing otherwise.
__________________
"I refuse to join any club that would have me as a member."
--Groucho Marx
Ronkkrop is offline
Send a message via ICQ to Ronkkrop Send a message via AIM to Ronkkrop Send a message via MSN to Ronkkrop Send a message via Yahoo to Ronkkrop
Neo
Member
Join Date: Mar 2004
Old 05-07-2004 , 07:09  
Reply With Quote #10

they dont mean an accual list, they mean put the files needed into the folders, the list is to help organize you.
__________________
Quote:
Originally Posted by Johnny got his gun
Valve said SDK should be here within the week, so well, expect our final release on... hm... Tuesday.
Neo is offline
Send a message via AIM to Neo
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode