CS1.6进度条里面的信息 content hosting provided by
http://onix.fatal.ru/files/download.jpgThis topic explains how to change the banner (When loading into a server there'll be a banner underneath the text "content hosting provided by") For those who needs a step by step explanation, here it is:
There are 3 types of servers:
1) Game Server
2) Content server
3) Fast Download server
1) Game server: What you have and people play on.
2) Content server: Used to verify the resources on the players system and download VAC if it is enabled on the game server. As well as some form of centralized control and the servers through which your client connects to the STEAM network. They are the steam network in one form or another.
3) Fast Download server: Used to store any game resources (maps, models, sounds, exc.) that do not come as default with the players system or already exist on the players system. Fast Download servers are used because STEAM can directly connect to them and download at web speed ( i.e. the speed you would download a file from a website through your browser: from 90 to 300 KBps if not more) instead of the usual 8 or so KBps which HL will download at from the game server. A fast Download server link must be specified in the server.sfg file.
Point: as the player connects to the same server the content server will verify that the players system has all the files necessary which the game server tells it are necessary for the current map.
Point: if the content server determines that the players system is missing files it will disconnect the player from the game server and redirect his/her system to the specified fast Download server to download the missing files. When that is done, the player抯 system is disconnected from the fast Download server and redirected back to the game server, where as you connect the content server will verify that the game server resources and the player抯 systems files match and are all in existence in both locations for the current map.
As you connect to a game server you will be watching the content server do its work, the banner you will see under the progress bars will either be a 搗alve content server?banner or an advertisement if the content server belongs to company contracting with valve as a provider of content server and bandwidth. That banner can抰 be changed unless you are one of the specified companies. (Actually this can be done, but it is a rather troublesome operation, including deleting registry files, blocking ip's and risking Valve (the company) getting upset and shut down your server)
If the content server determines that the player抯 system is missing files it will redirect the player抯 system to the fast Download server you have specified. Now, the banner which will be displayed under the progress bars as the player downloads the necessary resources you CAN change.
Usually the fast Download server and the game server belong to the same organization, group, clan, so, because they can抰 advertise their name outside from the server name, they will have a banner on their fast Download server advertising who they are and any other info they want.
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. To display a "banner image" to players that download content, place a 340x56 pixel image in the file <custom content directory>/gfx/banner.gif
So to summarize. On your webserver that you host custom maps etc, you have a directory for all custom maps etc. For example /mywebserverdirectory/serverresources /
In this directory you create a gfx directory, and place your custom content image which is only 340X56 pixels in size, and is properly created and saved as banner.gif.
So thus you would have /mywebserverdirectory/serverresources /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\your@email.address\Counter-Strike\cst rike\maps\de_generic.map
C:\Program Files\Steam\SteamCache\your@email.address\Counte r-Strike\cstrike\de_generic.wad
C:\Program Files\Steam\SteamCache\your@email.address\Counte r-Strike\cstrike\sound\ambience\de_generic_a.wav
C:\Program Files\Steam\SteamCache\your@email.address\Counte r-Strike\cstrike\sound\ambience\de_generic_b.wav
C:\Program Files\Steam\SteamCache\your@email.address\Counte r-Strike\cstrike\sound\ambience\de_generic_c.wav
You have web space (perhaps through your ISP) with the URL " http:// lantznet.se/hlm/" 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:// lantznet.se/hlm/cstrike/maps/de_generic.map
http:// lantznet.se/hlm/cstrike/de_generic.wad
http:// lantznet.se/hlm/cstrike/sound/ambience/de_generic_a.wav
http:// lantznet.se/hlm/cstrike/sound/ambience/de_generic_b.wav
http:// lantznet.se/hlm/cstrike/sound/ambience/de_generic_c.wav
You now set the "sv_downloadurl" cvar on your game server to
" http:// lantznet.se/hlm/cstrike".
Players who then 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
* 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-critical and potentiel dangerous files cannot be downloaded (ie: *.exe, *.vbs, etc)
SUMMARY
---------
The command you enter into the server is:
sv_downloadurl "http://<yoururl>/valve/"
use quotemarks on either side of the string and include the final "/".
(valve = hldm, cstrike = counterstrike, etc.)
Then you create folders for gfx/env, maps, overviews, sound, sprites and models and populate them with the respective resource and in the "valve" directory exactly the way you would populate your server normally, including the WAD files.
If the client has ANY of the files already (including the WAD) it will not be overwritten, there is no way to do that, the client must delete the out of date or offending resource himself.
NOTE: You need to make .res files for all the maps and you need to make sure all resource names listed (and placed at the http) are spelled exactly the same.
If the bsp has all lower-case letters for the entity then the .res file must be all lower-case and the file name itself must be all lower-case.
Win32 http servers are more case insensitive then linux http servers but its best to do the job right in the beginning otherwise you end up propagating bad resources to all the clients which will make things a real headache later.
I was admin 6 months ago on a different server, belonging to the biggest internet caf?chain in Denmark (Boomtown) which is owned by a major tele-company. They had their own banner. Which is why I suggested valve (webadmin of hlm) that he changed his as well. I thought it was pretty easy to change, but I was wrong. Anyways, I hope this helps those interested.
The banner above needs to have the following preferences:
8 bit image
Indexed color
width: 340px
height: 56px
extension: .gif
回复: CS1.6进度条里面的信息 content hosting provided by
====== Полная инструкция ======Внимание! Данная информация была опубликована впервые на форуме Reallite!
от 03.04.07. Тем самым источник является данный форум!
======================================================
…И так после многочисленных тестов я определил следующее, а это следующее работает на 100 %.
[==============================================================]
CONTENT HOSTING PROVIDED BY:
[==============================================================]
1) Создайте директорию в своём хостинге: «cstrike/gfx», и поместите туда следующий файл: «steam_banner.gif» (разрешение файла должно быть 340X56)!
2) Теперь создайте html страничку только следующего образца:
===============================================================
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" style="margin: 0px" bgcolor="#000000">
<html>
<a href="http://www.reallite.cs2.ru/cstrike/gfx/" target="_new"><img border="0" src="steam_banner.gif"></a>
</html>
</body>
================================================================
НЕЧЕГО НЕ РЕДАКТИРУЙТЕ, кроме адреса хостинга. Вместо этого: «www.reallite.cs2.ru» впишите url своего хостинга. Например: «www.reallite.cs2.ru»
А на полном примере: «www.reallite.cs2.ru/cstrike/gfx/»
3) Поместите html страничку в туже директорию «cstrike/gfx». В сумме у Вас должно получиться так: «cstrike\gfx\steam_banner.gif» и
«cstrike\gfx\steam_banner.html»
====================================================================
4) Внимательно читайте ещё несколько раз и досконально перепроверяйте!
====================================================================
5) Создаём файл реестра:
====================================================================
Windows Registry Editor Version 5.00
"LastContentProviderURL"="http://www.reallite.cs2.ru/cstrike/gfx/steam_banner.html"
====================================================================
ДЕЛАЙТЕ ВСЁ ТОЧНО ТАКЖЕ, где «www.reallite.cs2.ru» адрес Вашего хостинга.
6) P.S, Данный импорт реестра должны ввести все игроки Вашего сервера.
Иначе они ничего кроме Вас не увидят!
===================================================================
Ну вот и всё…
При точных действиях выполняемых Вами по инструкции, могу дать 100 % гарантию отображения Вашего рекламного баннера при скачивании файлов с сервера....
[=======================================================]
CONTENT HOSTING PROVIDED BY:
[=======================================================]
=================================================================================
Этот же баннер будет отображаться и при подключении ко всем серверам Steam Counter-Strike.
=================================================================================
回复: CS1.6进度条里面的信息 content hosting provided by
相关帖子地址http://reallite.cs2.ru/modules.php?name=Forums&file=viewtopic&t=238&postdays=0&postorder=asc&start=30
http://lantznet.se/hlm/forum/forum_posts.asp?TID=69
回复: CS1.6进度条里面的信息 content hosting provided by
没汉化的么......难道要让我用网页翻译.郁闷回复: CS1.6进度条里面的信息 content hosting provided by
正在翻译着呢、。。。。。。。。。。回复: CS1.6进度条里面的信息 content hosting provided by
这google翻译真不行啊…………回复: CS1.6进度条里面的信息 content hosting provided by
等会看我的翻译就行了。。。。。。回复: CS1.6进度条里面的信息 content hosting provided by
这个话题解释了如何改变游戏中的图片(当进入服务器的时候,会读取有个提供者的图片和内容)需要一步一步的告诉你如何实现,往下面看:
你需要有3种不同类型的服务器
1.游戏服务器
2.内容服务器
3.高速下载服务器
==========================================================
1.游戏服务器:就是你和其他人一起玩的服务器(HLDS)
2.内容服务器:用来验证资源,对于玩家来说还有就是下载vac(如果你开启了vac).还有些协议让玩家连接到steam的网络上
3.高速下载服务器:用于保存存放任何游戏资源(地图, 模型, 音效, 等等)让各个玩家进行下载.如果使用了高速下载服务器
,可以大大的提高了玩家的下载速度.(WEB存放资源使用HTTP下载,速度可达90-300KBps或者更高)默认的HL引擎做资源传送速度只有8KBps.高速下载服务器的下载链接必须要写入server.cfg.
要点:玩家连接到服务器上,服务器必须告诉客户端目前所使用的地图,服务器会检查客户端所需要的文件。
要点:如果内容服务器发现玩家缺少文件,服务器会自动断开玩家的连接,并让玩家自动连接到高速下载服务器上去下载缺少的文件。等待玩家下载完毕了后,高速下载服务器会断开玩家的连接,并让玩家自动连接到游戏服务器当中。内容服务器验证服务器资源和玩家的文件,如果相同,就认为是当前的游戏地图。
正如你连接到一个游戏服务器,你肯定会看的内容服务器也在工作着。所以你会在进程的底部看到设置的图片。这些图片或者广告多是valve的.但是如果你想自定义,这样图片是可以改变的。但是它是相当麻烦的1个操作,包括删除注册表文件,阻止valve的广告并冒充valve的公司去做这样的图片。如果你于心不忍或者怕被追究法律责任,可以关闭掉服务器。
如果内容服务器确定玩家客户端缺少文件,它会重定向玩家去告诉下载服务器。现在,图片会跟进度条一起显示,并显示在进程的底部,这是你无法改变的事实。通常高速下载服务器和游戏服务器属于同一组织、工作组、团队等等。。因为他们可以用统一服务器名宣传自己,如果他们有1个好的图片,用高速下载服务器快速的下载他们的广告以及任何的其他信息,这都是他们想要的。
================================================================================================
配置你的服务器以使用高速资产的HTTP下载
1.找一些服务器需要的资源文件(bsp,wav,mdl,等等)
2.把需要的资源文件放入HTTP服务器上,保证这些文件的目录摆放正确性和完整性。
3.制作一个能展示你个性的图片,以便玩家下载资源的时候可以看到。(必须340*56像素的图像文件)
<自定义内容目录>/gfx/banner.gif
总结一下,在你的HTTP服务器上,你要有一个目录放自定义的地图等等,例如/ mywebserverdirectory / serverresources /
在这个目录下,你需要建立一个gfx目录,然后放入你自定义的图片(图片必须340*56),制作好图片后,命名为banner.gif保存在gfx目录下.
按以上的步骤做完了后,你会看到这样的目录 / mywebserverdirectory / serverresources / gfx / banner.gif
4.在server.cfg文件里加入这样的参数 例如 sv_downloadurl "http://yourserver/custom_content_directory/"
==================================================================================================
比如:
-------
你的服务器没有使用通常的地图,而使用了一个叫"de_generic"的地图,你需要按照以下的规定和文件。
C:\Program Files\Steam\SteamCache\your@email.address\Counter-Strike\cst rike\maps\de_generic.map
C:\Program Files\Steam\SteamCache\your@email.address\Counte r-Strike\cstrike\de_generic.wad
C:\Program Files\Steam\SteamCache\your@email.address\Counte r-Strike\cstrike\sound\ambience\de_generic_a.wav
C:\Program Files\Steam\SteamCache\your@email.address\Counte r-Strike\cstrike\sound\ambience\de_generic_b.wav
C:\Program Files\Steam\SteamCache\your@email.address\Counte r-Strike\cstrike\sound\ambience\de_generic_c.wav
你有一个网络空间(详细情况请询问当地ISP) 使用了这个URL(网络路径) "http://lanznet.se/hlm/" 具体请你设置为自己的内容.
要做到这一点,你要复制"de_generic"这个地图需要的文件到你的网络空间,放置到一个文件夹里,命名为"my_cstrike",
这个文件夹必要要在你的网络空间的高层目录.还必须保证目录摆放的完整性和正确性。
你现在的目录里放置的文件应该呈下列的路径:
http:// lantznet.se/hlm/cstrike/maps/de_generic.map
http:// lantznet.se/hlm/cstrike/de_generic.wad
http:// lantznet.se/hlm/cstrike/sound/ambience/de_generic_a.wav
http:// lantznet.se/hlm/cstrike/sound/ambience/de_generic_b.wav
http:// lantznet.se/hlm/cstrike/sound/ambience/de_generic_c.wav
你现在打开server.cfg,修改设置"sv_downloadurl"这个参数为" http:// lantznet.se/hlm/cstrike"
现在当玩家连接你的服务器,网络空间服务器会让玩家自动下载地图"de_generic"和其他这个地图需要的文件。当然也有特例,比如玩家已经有了这些文件。
===========================================================================================================
技术细节
* sv_downloadurl只支持127个字符长度
* 如果玩家的客户端的文件名相同,需要下载的文件不会被覆盖,只能被跳过
* 某些游戏不支持的格式和会对玩家系统带来潜在危险的文件不能进行下载的(比如 批处理文件bat、执行文件exe、脚本文
件vbs,等等。。)
============================================================================================================
摘要
sv_downloadurl命令需要要有,格式为sv_downloadurl "http://<yoururl>/valve/"
使用这个命令的时候,在URL两侧的字符必须要有 /
当你建立的目录放入很多的gfx/env,map,overviews,sound,sprites和models这些文件了,还请最好放到vavle这个目录中,确保游戏还不缺少wad这样重要的文件。如果客户端有很多wad文件或者不缺少wad文件,他们不会被覆盖掉,没有办法解决不能覆盖这个问题,所以只能客户端去自行删除掉过期的资源文件。
注意! 你必须要自行为每张地图制作.res文件,以确保正确的进行下载传送,必须保证.res文件里面传送的文件名不能相同。
如果bsp文件名为小写,也请在.res文件中也使用小写.意思就是确保资源文件名和res文件中的文件名大小写统一.win32的HTTP服务器是不区分大小写的,所以最好使用linux的HTTP服务器。如果在一开始你就破坏掉了客户端的下载资源,再想维护起来就是很让人头疼的事情,因为下载的文件不能覆盖的,需要客户端自行删除掉过期和错误的文件的。
============================================================================================================
加入一些需要注意的东西
1.图片要这样的格式去制作
8 bit image
Indexed color
width: 340px
height: 56px
extension: .gif
2.建立一个简单的html文件
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" style="margin: 0px" bgcolor="#000000">
<html>
<a href="http://www.reallite.cs2.ru/cstrike/gfx/" target="_new"><img border="0" src="banner.gif"></a>
</html>
</body>
保存为banner.html
3.把html文件放到相同的目录下"cstrike / gfx " 目录下要有 "cstrike \ gfx \ banner.gif" 和 "cstrike \ gfx \
banner.html
http://www.steampowered.com/platform/banner/cs_25.html 这个是steam官方的html
http://www.steampowered.com/platform/banner/img/nvidia.jpg 是steam官方的图
4.注册表修改的路径为
Windows Registry Editor Version 5.00
"LastContentProviderURL"="http://www.reallite.cs2.ru/cstrike/gfx/steam_banner.html"