Using host.txt for a Server Banner

From CyberWurx Customer Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:46, 20 November 2009 (edit)
Cwadmin (Talk | contribs)

← Previous diff
Revision as of 20:52, 20 November 2009 (edit) (undo)
Cwadmin (Talk | contribs)

Next diff →
Line 22: Line 22:
http://cwgamepanel.cyberwurx.com/banners/cw-l4d2-banner.html http://cwgamepanel.cyberwurx.com/banners/cw-l4d2-banner.html
 +
 +=Useful Tools=
 +There is a nice site that enable you to have rotating banners for your gameservers.
 +
 +http://myphpsig.com/
[[Category:Gameserver]] [[Category:Left4Dead2]] [[Category:Left4Dead]] [[Category:Gameserver]] [[Category:Left4Dead2]] [[Category:Left4Dead]]

Revision as of 20:52, 20 November 2009

Understanding host.txt

A host.txt file is implementation of a server banner that will show up next to the MOTD while joining games. It is usually best to use a 500x100 jpg file stretched out inside an html file.

Here is an example of a html file used for host.txt

<html> 
<head> 
<title>My Awesome Gameserver</title> 
</head> 
 
<body style="margin:0px;padding:1px;background:#000000;" scroll="no"> 
<img src="http://mywebsite.com/l4dbanner.jpg" style="width:100%;height:100%;" /> 
</body> 
</html>

That example can be uploaded to a publicly accessible website. Your host.txt file would point to this html file.

Example host.txt

http://mywebsite.com/l4d2banner.html

Our gameservers are equipped with an example host.txt. If you would like to take a look at the code, here is the site:

http://cwgamepanel.cyberwurx.com/banners/cw-l4d2-banner.html

Useful Tools

There is a nice site that enable you to have rotating banners for your gameservers.

http://myphpsig.com/

Personal tools