Chips' Fun House Forum Index

Post new topic   Reply to topic

View next topic
View previous topic
Page 1 of 5
Goto page 1, 2, 3, 4, 5  Next
Chips' Fun House Forum Index  ~  Want to create your own server?  ~  How to make your own server...
Author Message
Chips
PostPosted: Mon Jan 24, 2005 7:53 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

The thread on this subject was getting far too big. Since many are asking these questions lately, it's become rather hard to look thrugh here. I put all the important stuff together in one post...everything else were just questions already answered and comments... Razz

Step 1 - Download
Dowload the dedicated server prog here:
http://steampowered.com/?area=getsteamnow
Save the hldsupdatetool to a directory of your choice. This example below assumes you created a folder on your C drive called HLServer.

Although Snickers use of GCFscape and a bat file for updating are excellent ones...the new user may very well screw that up and cause more sleepless nights than needed. Extracting the files will make the download quicker as most of the content will be there. However, if you extract any one thing to the wrong place...poof...it won't work. I humbly suggest you dl the entire server contents; you'll be assured everything will be in the right place. With todays hi speed connections...this should take 30 to 40 minutes tops.

Step 2 - Create an Account
Once you have downloaded HLDS standalone version, open up a DOS prompt, which can be found in START>Run...>cmd

The following discusses the "default" directory for the tool...change to whatever directory you chose to install the server

Then change the directory to C:\HLServer by typing: cd C:\HLServer
Now that you are in the HLServer directory lets get started on making and updating your account/server.

To Make a new account:
Type: hldsupdatetool.exe -command create -username USERNAME -email EMAIL@WEBOST.COM -password PASSWORD -question ANY QUESTION HERE -answer ANSWER TO QUESTION

**All the BOLD letters have to be exchanged with your information.

Step 3 - Update
Once you have made an account, you now update HLDS. This update command will both update an existing server or download the complete server where none exists. At this point, all you have is the updatetool in a folder by itself.
Type: hldsupdatetool.exe -command update -game "GAMENAME" -dir c:\HLServer -username "USERNAME" -password "PASSWORD"

**All the BOLD letters have to be exchanged with your information.

*All the information on the update has to be the correct information as when you created your account.

*The -dir C:\HLServer is the default, if you changed it to somewhere else, change that directory. If there are spaces in your directory to your HLDS, amek sure you put quotes around it, like "C:\Half Life\HLServer"

*Plus you can add to the end of that -remember_password to save your account, and not have to worry about logging on again.

You should now have a complete working server in your HLServer folder...with only the default maps.

Step 4 - Configuring Server
In the servers tfc folder, there will be a serve configuration file...server.cfg.
Variables for many different things run on your server are entered here. This is a copy of my server config...

-------------------------------------------------------------------------------------
// Use this file to configure your DEDICATED server.
// This config file is executed everytime the server changes levels.

echo Executing server.cfg

log on
hostname "PUT YOUR SERVER NAME HERE"
//host_framerate "100" //commented out //see sys_ticrate below
allow_spectators "1"
pausable "0"
decalfrequency "10"
rcon_password "XXXXXX"
//maxplayers "" //variable set in hlds shortcut
sys_ticrate "0" //open any .avi file to get max fps from server
hpk_maxsize "1.0" //allows the upload of custom logos..sv_allowupload must be 1

//server variables
sv_password ""
sv_spectator_password ""
sv_spectalk "1"
sv_clienttrace 3.5
sv_maxspeed 500
sv_challengetime "0"
sv_maxrate "10000"
sv_minrate "0"
sv_maxupdaterate "24"
sv_maxspectators "0"
sv_timeout "120"
sv_allowdownload "1"
sv_allowupload "1"
sv_proxies "0"
sv_aim "0"
sv_lan "0"
sv_cheats "0"
sv_voicecodec "voice_speex"
sv_voicequality "5"
sv_voiceenable "1"
sv_alltalk "1"
sv_downloadurl "USED FOR DL OF MAPS ETC FROM THE WEB"

//map specific variables
mp_timelimit "30"
mp_fraglimit "0"
mp_teamplay "1301"
mp_forcerespawn "1"
mp_footsteps "1"
mp_falldamage "1"
mp_flashlight "1"
mp_logfile "1"

//tfc specific variables
tfc_respawndelay "0"
tfc_clanbattle_prematch "0"
tfc_spam_limit "0"
tfc_spam_penalty1 "0"
tfc_spam_penalty2 "0"
tfc_autokick_kills "0"
tfc_autokick_time "0"
tfc_fragscoring "1"
tfc_autoteam "1"
tfc_balance_teams "1"
tfc_balance_scores "0"
tfc_birthday "0"
tfc_clanbattle "0"
tfc_clanbattle_locked "0"
tfc_spectchat 1

//class restriction variables
cr_soldier "0"
cr_sniper "0"
cr_engineer "0"
cr_medic "0"
cr_hwguy "0"
cr_demoman "0"
cr_spy "0"
cr_scout "0"
cr_pyro "0"
cr_random "0"

//files to execute
exec "addons/adminmod/config/adminmod.cfg"
exec "banned.cfg"

echo Server.cfg loaded
--------------------------------------------------------------------------------------
Anything above in red is what you need to fill in yourself. Use Snickers formulas to calculate your own rates. The voice codec can be set at a quality from 1 to 5...5 being the best. The exec adminmod.cfg is "commented out" for now...until (and if) you install this. If you don't wish to use a variable in this config file; either delete it completely or "comment" it out by placing two slashes (//) in front of the variable...it will be ignored.

Step 5 - Configuring Shortcut
Last step...for now at least... Laughing
In your HLServer folder...right click hlds.exe and "create shortcut" to it.
Now...right click the shortcut and select properties. In the target line...enter the following: C:\HLServer\hlds.exe -console -game tfc +port 27016 +map 2fort +maxplayers 20

The -console opens the server console in a dos box instead of the windows gui. The -game tfc is self explanatory as are the map and player settings (although, you have to select map and maxplayers you want). You must run the game server on a port other than you play on to be able to join it. The steam client runs on port 27015...so I run my server on 27016.

Start the server with this new shortcut...and you should have a fully working tfc server with only the standard maps. All this is a fairly good accomplishment. When you get this up and running...we'll discuss mods for admin, bots and other mods and plug-ins.


Last edited by Chips on Fri Sep 23, 2005 12:57 am; edited 7 times in total

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Tue Jan 25, 2005 5:42 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

Go to www.dslreports.com as Snickers suggested. Select "tests & tools" on the left bar of the site. Then select "speed test"...post the results here.

We'll help ya from there... Laughing

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Tue Jan 25, 2005 8:51 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

Okay...it all revolves around your "upload" speed...not bad at 502 kbps.

Basically, "sv_maxrate and sv_maxupdaterate" are the single two most important settings in running a lag free server

Take your upload and divide by 48 to get slots you should use. 502 / 48 = 10.45. So go with an even ten.

Running backwards you can calculate your sv_maxrate this way.
sv_maxrate = bandwidth X 128 / server size. So 502 X 128 / 10 = 6425.

The calculation that is recommended for sv_maxupdaterate is as follows:
sv_maxupdaterate = sv_maxrate / 512. So 6425 / 512 = 12.54.

So...I suggest you go with:

Slots: 10
sv_maxrate 6425
sv_maxupdaterate 12

See how these work out and let us know...


Last edited by Chips on Tue Mar 29, 2005 4:35 am; edited 1 time in total

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Snickers
PostPosted: Wed Jan 26, 2005 4:49 pm  Reply with quote
Forum Soldier
Forum Soldier


Joined: 25 Nov 2004
Posts: 417

Here's a useful BAT file that protects HLDS from crashes (note: I just edited the one from srcds.com, so credit goes to them for making the watchdog

paste this in a txt file and rename the file into a .bat file (all you have to do is replace .txt with .bat)

THIS DOES NOT PROTECT FROM WINDOWS DIALOG BOX CRASHES (but they're uncommon)

Code:
@echo off
cls
echo Protecting hlds from crashes...
echo If you want to close hlds and this script, close the hlds window and type Y depending on your language followed by Enter.
title HLDS Watchdog (thanks to srcds.com)
:hlds
echo (%time%) hlds started.
start /wait hlds.exe -console [tag]-game tfc +map 2fort +maxplayers 10 -port 27016 +sv_lan 0[/tag]
echo (%time%) WARNING: hlds closed or crashed, restarting.
goto hlds


IF you want to shut off hlds and not restart it, click the x button on the server (not the watchdog) and then click end now when a dialog comes up
then type y then enter on the watchdog.

Edit the text that has the [tag] [/tag] to your own, DON'T COPY the tags into the text, edit the stuff thats closed with the tag then remove the tags.
Back to top
View user's profile Send private message
Chips
PostPosted: Sat Jan 29, 2005 10:53 am  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

http://www.adminmod.org/

On the left you'll see "Download"...you want the "Win v2.50.60" version.
Above that, you'll see a link for "Documentation"...click that then select "2.50.60 documentation in downloadable WinHelp format".

Read that first before trying to install...btw...if you have the room on your hard drive. Now would be a good time to copy your tfc server to another folder as a back up. In case you mess something up...you can easily put it back the way it way.

Any question (I know you'll have some)...find us here.

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Sat Jan 29, 2005 1:18 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

Renegade of Funk wrote:
do you need a download URL in your server.cfg file? You hadn't hilighted it in red so that's why I wonder... I mean if you plan to have a bunch of custom maps wouldn't you need to? Do you have one, chips?

It's not absolutely necessary. If someone connects to the server and they don't have the map, models used etc...they can download it from the server. The problem with that is...it's very slow and uses bandwidth that effects the server overall.

The download URL is used to get the maps etc. to folks much faster. But, you have to have your own web space to do this. I have a hosting package with www.powweb.com. They give me 2 gigs of storage and 5 gigs daily transfer for $7.77 per month. All the maps for the server are in the web space I pay for...about 600 megs currently.

So when someone connects to the server and they need the map...they are disconnected from the server, sent to my web space to get what they need (very quickly I might add) and then reconnected to the server.

Example: A map like Osaka is about 7 megs. It might take 10 to 20 minutes downloading that from the server (dependant on connection speed)...or about 15 to 30 SECONDS when downloaded from my web space....shnazzzy... Laughing

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Tue Feb 01, 2005 7:42 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

This post has been edited to update the chicken mod to the tfc modified version I came up with. This is in fact a CS mod.

Here's the fireworks and chicken mod...

Bear in mind...these are both very cpu intensive. If you're experiencing lag now...just wait till you add these... Razz

http://www.irsolutions.biz/fireworks_mm.zip
http://www.irsolutions.biz/chips_tfc_chicken.zip

Nice job with the server so far...good luck.


Last edited by Chips on Thu Mar 31, 2005 10:14 pm; edited 1 time in total

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Mon Feb 07, 2005 5:17 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

Demasu wrote:
How do I get my server to have a custom mapcycle?

In your server's tfc folder...there is a file called mapcycle.txt

Simply list the maps in the order you wish to run them in that file. Do not use the .bsp extension...just the mapname.

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Mon Feb 21, 2005 5:07 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

Instructions on using ServerDoc to restart your server in case of a crash. Also, see Snicker bat file above which essentially does the same thing.

First...download the free version of serverdoc:
http://www.serverdoc.com/modules.php?name=Downloads&d_op=viewdownload&cid=1
This version "times out" every couple of months and you'll just have to dl the newest version and replace the executable...very simple.

Second...create a folder under your your servers "root" folder. Extract the serverdoc contents there.
For reference, this is my setup...TFCServer is my "root" folder.
Example:F:\Games\TFCServer\ServerDoc

Third...go to your "serverdoc" folder and create a shortcut to "serverdoc.exe"
The "target" of this shortcut would read:
Example:F:\Games\TFCServer\ServerDoc\serverdoc.exe

Fourth...add the full contents of the shortcut "target" for hlds.exe to the serverdoc shortcut target.
ExampleF:\Games\TFCServer\ServerDoc\serverdoc.exe F:\Games\TFCServer\hlds.exe -console -game tfc +port 27016 +map concjumpTFC +maxplayers 8

Fifth...always use the serverdoc shortcut to start your server now. When and if (in your case, it more just a matter of when Laughing ), serverdoc will restart it automatically in 10 seconds. The above examples are again for reference and reflect my set up. Use it as a guide to get yours working.

Enjoy


Last edited by Chips on Tue Mar 29, 2005 4:38 am; edited 1 time in total

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Mon Feb 21, 2005 5:37 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

If you wish to have the sounds work on your server...do the following...

Place this file in your tfc folder: http://www.irsolutions.biz/SND-LIST.CFG

Place this plug-in in your ...addons\adminmod\scripts folder:
http://www.irsolutions.biz/plugin_sank_sounds.amx

Last...add this line to your ...addons\adminmod\config\plugin.ini file:
addons/adminmod/scripts/plugin_sank_sounds.amx

Important: Make sure you have the following in your server.cfg...
sv_allowdownload "1"
sv_allowupload "1"

------------------------------------------------------------------------------
If you want to use the tag checker that is used on the other 3 servers...do the following...

Place this file in your tfc folder: http://www.irsolutions.biz/TAGS.zip
I had to zip this file. Plain text files just open in IE if you link to them. Just extract it and put in your tfc folder.

Place this plug-in in your ...addons\adminmod\scripts folder:
http://www.irsolutions.biz/plugin_checktags.amx

Last...add this line to your ...addons\adminmod\config\plugin.ini file:
addons/adminmod/scripts/plugin_checktags.amx


Last edited by Chips on Tue Mar 29, 2005 4:39 am; edited 3 times in total

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Tue Mar 01, 2005 5:58 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

http://www.adminop.net/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=68&ttitle=Radio_Mod_Windows

Just above the registered users ratings graph...there's a link to "Download this file now".

Installs just like the fireworks. Anyone that connects to your server who doesn't have this mod...is in for a loooooooooong download. Wink

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Chips
PostPosted: Tue Apr 05, 2005 7:29 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

If you can't dl and install the Radiomod from the above post...try this.

Download from me here.

Follow the instructions in the install.txt file that's included... Cool

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Creamy White Sponge
PostPosted: Sat May 14, 2005 4:14 pm  Reply with quote
Forum Sniper
Forum Sniper


Joined: 25 Nov 2004
Posts: 736
Location: Cardiff, South Wales (UK)

Need help with sv_downloadurl.

http://www.combatgold1.co.uk/game-files/svencoop/

Those are my custom files, as you can see, they are all intact, and there is a banner.

So, in my SvenCoop server config, I have:

sv_downloadurl "http://www.combatgold1.co.uk/game-files/svencoop/"

Sould be ok, right?

Well, I purposely removed a custom map to try it. It does NOT use the webserver to get it, although it exists.

_________________
Thanks,

Adam Reece
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
Chips
PostPosted: Sat May 14, 2005 4:45 pm  Reply with quote
Grand High Exalted Mystic Ruler
Grand High Exalted Mystic Ruler


Joined: 23 Nov 2004
Posts: 6505
Location: New Jersey

I looks right. Confused

Only thing I could think of off the top of my head is:

sv_allowdownload "1"

Do you have this in your server config Question

_________________





The only good game, is a fair game...
Why do we park on driveways and drive on parkways! George Carlin - 1937-2008

-[CfH]-Server Admin
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Creamy White Sponge
PostPosted: Sat May 14, 2005 4:53 pm  Reply with quote
Forum Sniper
Forum Sniper


Joined: 25 Nov 2004
Posts: 736
Location: Cardiff, South Wales (UK)

Yeah, I tried it on 0 too incase that conflicted.

Do I have to make res files for all the maps?

_________________
Thanks,

Adam Reece
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
Display posts from previous:   
All times are GMT - 5 Hours

View next topic
View previous topic
Page 1 of 5
Goto page 1, 2, 3, 4, 5  Next
Chips' Fun House Forum Index  ~  Want to create your own server?

Post new topic   Reply to topic

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB and Ad Infinitum v1.06