Fistful of Frags
 This topic has been pinned, so it's probably important
!^  [developer] Apr 29, 2014 @ 7:00am
Dedicated server download
I guess you know how steamcmd works, for the rest it's just this (save it to txt file):

@NoPromptForPassword 1 login anonymous force_install_dir ../yourfolder app_update 295230 validate

You also can grab the dedicated server app from your Steam/Tools section, of course.

Update:

If someone wants to setup a dedicated server for Linux, once the mod files are downloaded using steamcmd, this would be the command line to start the server:

./srcds_run -console -game fof +maxplayers 20 +map fof_fistful -ip x.x.x.x -port 27015 (last 2 ones are optional)

Last edited by !^; May 10, 2014 @ 7:01am
< >
Showing 16-30 of 62 comments
Hatch May 13, 2014 @ 4:03pm 
thanks R_Yell
KapN May 13, 2014 @ 4:51pm 
So I made the shortcut and I'm in properties... Where is the command line? Are you talking about CMD? And also, you're telling me that i should put ./srcds_run?


Originally posted by Hatch:
Where can I find info about the game? Such as about the different gamemodes and about changing them. Also the variables and commands


Tkappp, make a shortcut of that icon, in properties, type in the run command line options like in linux just dont put ./srcds_run etc
Hatch May 13, 2014 @ 8:30pm 
no, once u create the shortcut of the srcds.exe then go into the properties of the shortcut and in ur target after the path type: -secure -console -game fof -nohltv +map fof_revenge +maxplayers 20

then just press ok and double click the shortcut to run it
Last edited by Hatch; May 13, 2014 @ 8:31pm
KapN May 13, 2014 @ 8:45pm 
Originally posted by Hatch:
no, once u create the shortcut of the srcds.exe then go into the properties of the shortcut and in ur target after the path type: -secure -console -game fof -nohltv +map fof_revenge +maxplayers 20

then just press ok and double click the shortcut to run it

"The name '-secure' specified in the Target box is invalid." What up with this? lul
Hatch May 13, 2014 @ 9:08pm 
copy paste everything u have in the target box
KapN May 13, 2014 @ 9:30pm 
Thanks Hatch. If I run into any further problems I'll update you on my status ;)
KapN May 14, 2014 @ 4:15pm 
Hatch-
Sorry dude but I'm back. when my friend tried to join to test it out it said 'Connection failed after 4 retries'....
Originally posted by HTCKTkappp:
Hatch-
Sorry dude but I'm back. when my friend tried to join to test it out it said 'Connection failed after 4 retries'....
I you connect to it yourself locally on your LAN? if so, and your friend can not ... port forwarding[portforward.com]
KapN May 14, 2014 @ 5:24pm 
Originally posted by Weasel:
Originally posted by HTCKTkappp:
Hatch-
Sorry dude but I'm back. when my friend tried to join to test it out it said 'Connection failed after 4 retries'....
I you connect to it yourself locally on your LAN? if so, and your friend can not ... port forwarding[portforward.com]
I'm familiar with port forwarding. What ports do I use?
If you do not specify any ports for the dedicated server, it will try to grab the engine default (UDP 27015 - all these ports are "UDP" by the way). However, if you are running it behind the same router/firewall as other computer(s) that you are playing FoF on (or other Source or GoldSrc based games), then the router will have probably already "translated & forwarded" that port on the fly to the other PC.

Or, if you are running the "dedicated server" on the same PC you are gaming-on, then the game-client may have already grabbed 27015 - forcing the game-server to use something else (27016 or whatever it automatically ties next).

So, it is best to manually specify what port the game-server will use to host the game (different than anything the client would try to automatically use), and then "port-forward" that at the router/firewall.

You can force the dedicated server to use a particular port, such as "27666" - way outside the normal "27015" it (or clients) would be automatically trying to use. If you are starting the game-server from a command-line, you just add "+port 27666" to the command-line options.

Also, remember that you must also specify a start-up map, either:
  • Adding it into your start-up command-line ("+map fof_mapname"), or
  • Create an fof/cfg/autoexec.cfg file and put "map fof_mapname" as the last line of that file.
Last edited by [WL/S³] Weasel (Probably AFK); May 14, 2014 @ 9:07pm
KapN May 14, 2014 @ 6:40pm 
Thanks Weasel. One more thing: how to I change the gamemode, put a password on, and finally, when I'm on the weapons menu, I can't onto onto the second page of primaries. Or is that default to the 'Shootout' gamemode?
SmokaCola May 14, 2014 @ 7:37pm 
Originally posted by R_Yell:
I'm no expert in server hosting, I'm afraid. I rented a core i3 3.4GHz server (2 physical + 2 logical cores) and 4GB memory is enough for 4 dedicated, 20 slot servers. Maybe more, didn't pushed it yet.

So I'd say at least a 2GHz single core CPU and 1GB memory could run a 20 slot server. I'm not fully sure though.

Ubuntu 12.04 / Debian 7 with GLIB fix works fine, software wise.

If it helps, I have a box running the latest Ubuntu version. It's a single core with 1GB of memory and I have 3 instances of FoF running on it with source mod. Running the top command I'm seeing about 25-30% usage from all three instances of the game.

I've also used the renice command to give the instances higher priority. No one has complained about lag yet; however, the server only has about 10% breathing room for the processor. Gotta love NFOServers.
Originally posted by HTCKTkappp:
One more thing:
Actually, I think this counts as three things, but who's counting ...

Originally posted by HTCKTkappp:
how to I change the gamemode [...]

non-Team Shootout:
If you want non-team every-man-for-hisself deathmatch shootout, then ...
Make sure something like this is in your fof/cfg/server.cfg file:
// // Regarding "fof_sv_currentmode" // // 1 = Deathmatch (team based or non-team) // other numbers may be added in the // future to support other game-modes // built-into later versions of the game. // fof_sv_currentmode 1 // // Regarding "mp_teamplay" // // 1 = Team-based deathmatch // 0 = No teams, free-for-all deathmatch // mp_teamplay 0 //
Make sure +mp_teamplay 0 is in your start-up command-line, or in your fof/cfg/autoexec.cfg file. That will ensure that it shows properly on the server-list.

Team-based Shootout:
On the other-hand, if you want the team-based shootout, then there are a few more options you probably need to specify. Make sure something like this is in your fof/cfg/server.cfg file:
// // Regarding "fof_sv_currentmode" // // 1 = Deathmatch (team based or non-team) // other numbers may be added in the // future to support other game-modes // built-into later versions of the game. // fof_sv_currentmode 1 // // Regarding "mp_teamplay" // // 1 = Team-based deathmatch // 0 = No teams, free-for-all deathmatch // mp_teamplay 1 // // Regarding "mp_friendlyfire" // // 0 = friendly-fire disabled, you can NOT hurt teammates // 1 = friendly-fire enabled, you CAN hurt teammates // mp_friendlyfire 0 // // Regarding "fof_sv_maxteams" // // 2 = Vigilantes & Desperados // 3 = Vigilantes, Desperados & Bandidos // 4 = Vigilantes, Desperados, Bandidos & Rangers // fof_sv_maxteams 4 //
Make sure +mp_teamplay 1 is in your start-up command-line, or in your fof/cfg/autoexec.cfg file. That will ensure that it shows properly on the server-list.

Originally posted by HTCKTkappp:
[...] put a password on [...]
Make sure something like this is in your fof/cfg/server.cfg file:
// // Regarding "sv_password" // // "" = no password // "somepassword" = makes the password "somepassword" // sv_password "whateverpasswordyouwanthere" //
Originally posted by HTCKTkappp:
[...] I can't onto onto the second page of primaries. Or is that default to the 'Shootout' gamemode?
Yes, that is correct. A "limited selection" of starting primary weapons is a "feature" of the non-team ("every-man-for-hisself") shootout mode.
Last edited by [WL/S³] Weasel (Probably AFK); May 14, 2014 @ 9:05pm
KapN May 15, 2014 @ 5:08pm 
Thanks so much Weasel. Youve been a great help. Thats all I need to know and the server is going smoothly! :D
Tea May 15, 2014 @ 5:19pm 
Originally posted by LINUX Liam:
What sys req would we need for a Linux based server? Wondering how cheaply I can set one up.

Can say that I'm running a server (you'll find it under warhaggis.com) on a VPS with 3GB RAM and access to 3 CPU cores (at 2.8GHz). The FOF server plus my system's other services have it idling at around 800MB memory with CPU spiking at only about 30% at the most. Pings to the server from terrestrial clients is a consistent 20-30 with good connections in the 10s. So it performs very well, I'd say you could set one up very cheaply indeed.

I think there's enough resources spare, even, to run a second one.
Last edited by Tea; May 15, 2014 @ 5:20pm
< >
Showing 16-30 of 62 comments
Per page: 1530 50