Day of Infamy

Day of Infamy

26 ratings
LAN Party: Dedicated Server for COOP vs Bots
By SpuriousTuple
This guide covers how to setup a dedicated server for Day of Infamy to be used on a Local Area Network (LAN) with coop missions and bots.
   
Award
Favorite
Favorited
Unfavorite
Intro
This guide explains how I created a dedicated server for Day of Infamy on my local network for a LAN party with coop missions and bots. I admit, I'm a noob at using dedicated servers, and I just wanted to get something up quickly. I had to spend hours searching through forums to get a server up and running. Hopefully this guide saves others time.

I'm not entirely sure this is the best way to get a server up and running, but it worked for me. If anyone has any suggestions to improve this, please say so in the comments. Thanks.

This guide is similar to my other guide for Insurgency, which you can find here
Download and Install the Dedicated Server
  1. Create a folder for SteamCMD and the dedicated server to install to (For this example we use D:\steamcmd)
  2. Download SteamCMD for Windows http://media.steampowered.com/installer/steamcmd.zip
  3. Unzip SteamCMD to D:\steamcmd
  4. Run steamcmd.exe
  5. Enter the following commands at the prompt:
    login anonymous app_update 462310 validate quit

Note: The app_update command will start a 10GB download.
Create a startup file to start your server
  • Open the folder:
    D:\steamcmd\steamapps\common\Day of Infamy Dedicated Server
  • Create a batch file (start.bat) with the following command:
    srcds -console +sv_pure 0 +map "sicily stronghold"
Create a server.cfg file
Note: Some of the settings in server.cfg are self explainitory, while others I have no idea what they do. It's pretty obvious that some of these settings are also used with Insurgency. Some work, some don't (which is what made figuring this out so difficult), so I'm not entirely sure this is the best config to use. If someone knows more about this, or a better way, please say so in the comments.

  • Open the folder:
    D:\steamcmd\steamapps\common\Day of Infamy Dedicated Server\doi\cfg
  • Create a file named server.cfg and paste this in it:
    // Make sure the right people are banned. Done first due to a game bug. exec banned_user.cfg exec banned_ip.cfg // Name Of Server hostname "My DOI Server" // some gameplay-related settings // "tactical operation" mapcycle by default - firefight, vip, search and destroy mapcyclefile "mapcycle_coop.txt" mp_friendlyfire 1 // How to punish team killing ( 0 = none, 1 = warning, 2 = kill ) mp_tkpunish "1" sv_hud_deathmessages 0 sv_hud_scoreboard_show_kd 1 // show friendly player names when looking at them sv_hud_targetindicator 1 // timer for the pre-game (before the game starts, usually after map change or on mp_restartgame 1) mp_timer_pregame 10 // timer for the pre-round (before the round starts, usually after a previous round ends or on mp_restartround 1) mp_timer_preround 10 // timer for the post-round (after the round starts) mp_timer_postround 15 // timer for the post-game (at the end of a game / map rotation) mp_timer_postgame 21 // if set higher than 0, the server will add this many bots to each team ins_bot_quota 12 // enabling this will allow the dead and living to VOIP each other sv_deadvoice 1 // enabling this will allow the dead and living to chat text each other sv_deadchat 1 // is deadchat limited to just your team? sv_deadchat_team 1 sv_playlist nwi/coop mp_coop_lobbysize 16 //Number of players on team in coop //Advertisements //sm_advertisements_enabled 1 //sm_advertisements_interval 90 // General HL Cvars sv_contact "myemailaddress" decalfrequency 60 mp_decals 100 sv_cheats 0 sv_maxupdaterate 120 sv_maxrate 0 sv_minrate 100000 sv_timeout 120 sv_allowupload 1 sv_allowdownload 1 // Rcon Stuff //rcon_password "****************" // write out any new bans. writeid writeip //files mapcyclefile mapcycle_coop.txt /////////////////////////////////////////////////////////////////////////////////////////// ///// BOT SETTINGS /////// ////////////////////////////////////////////////////////////////////////////////////////// ins_bot_change_difficulty 1 //When to change bot difficulty, 1 = instantly, 0 = when new bots are added ins_bot_count_checkpoint 0 //A set bot count for Checkpoint ins_bot_count_checkpoint_max 16 //The max bot count for Checkpoint ins_bot_count_checkpoint_min 5 //The min bot count for Checkpoint ins_bot_count_hunt 0 //a set bot count for hunt ins_bot_count_hunt_max 25 //The max bot count for hunt ins_bot_count_hunt_min 15 //The min bot count for hunt ins_bot_difficulty 1 //difficult of bots ins_bot_quota 12 //How many bots to place on each team when no players are present? /////////////////////////////////////////////////////////////////////////////////////////// ///// VOTING /////// ////////////////////////////////////////////////////////////////////////////////////////// sv_allow_votes 1 //allow voting sv_map_voting 1 //allow map voting sv_vote_allow_spectators 0 //allow spectator voting sv_vote_command_delay 5 //How long after a vote passes until the action happens sv_vote_creation_timer 120 //How long after a vote passes until the action happens sv_vote_failure_timer 90 //A vote that fails cannot be re-submitted for this long sv_vote_issue_botcount_allowed 1 //Can people hold votes to change AI count?? sv_vote_issue_botcount_min_population 1 //The voting population required to pass a bot count vote sv_vote_issue_botcount_min_ratio .5 //ratio needed to be yes to pass? (1.0 = All votes need to be yes) sv_vote_issue_botdifficulty_allowed 1 //Can people hold votes to change AI difficulty? sv_vote_issue_botdifficulty_min_population 1 //population to pass a bot difficulty vote? sv_vote_issue_botdifficulty_min_ratio .5 //ratio needed to be yes to pass? (1.0 = All votes need to be yes) sv_vote_issue_changegamemode_allowed 1 //Can people hold votes to change the gamemode? sv_vote_issue_changelevel_allowed 1 //Can people hold votes to change levels? sv_vote_issue_kick_allowed 1 //Can people hold votes to kick players from the server? sv_vote_issue_nextlevel_allowed 1 //Can people hold votes to set the next level? sv_vote_issue_nextlevel_allowextend 1 //Allow players to extend the current map? sv_vote_issue_nextlevel_choicesmode 1 //Present players with a list of maps to choose from? sv_vote_issue_nextlevel_prevent_change 1 //Not allowed to vote for a nextlevel if one has already been set sv_vote_issue_nextlevel_round_count_delay 1 //How many rounds before map voting can begin sv_vote_issue_restart_game_allowed 1 //Can people hold votes to restart the game? sv_vote_issue_restart_round_allowed 1 //Can people hold votes to restart the round? sv_vote_issue_scramble_teams_allowed 1 //Can people hold votes to scramble teams? sv_vote_issue_switch_teams_allowed 1 //Can people hold votes to switch teams? sv_vote_kick_ban_duration_cheating 240 minutes //How long should a kick ban last for if a player is kicked for hacking? (minutes) sv_vote_kick_ban_duration_idle 0 //How long should a kick ban last for if a player is kicked for idling? (minutes) sv_vote_kick_ban_duration_trolling 60 //How long should a kick ban last for if a player is kicked for trolling? (minutes) sv_vote_kick_ban_owner 1 //If a user is successfully votebanned, shall we also ban the game owner if the game has been shared? sv_vote_kick_hack_min_population 1 //The voting population required to kick a person for hacking sv_vote_kick_hack_min_ratio .5 //What ratio of the votes needs to be yes to pass? (1.0 = All votes need to be yes) sv_vote_kick_idle_min_population 0 //The voting population required to kick a person for being idle sv_vote_kick_idle_min_ratio 0 //The voting population required to kick a person for being idle sv_vote_kick_min_players 2 //The minimum number of players needed on the server to start a vote kick sv_vote_kick_min_voters 2 //Minimum maxplayers 24 sv_master_legacy_mode 0 heartbeat
Create a mapcycle
Note: I'm not entirely sure the mapcycle is working, but here it is. You can always change maps once the server is up and running (explained below).

  • Open the folder:
    D:\steamcmd\steamapps\common\Day of Infamy Dedicated Server\doi
  • Create a file named mapcycle_coop.txt and paste this in it:
    sicily stronghold sicily entrenchment sicily patrol dog_red stronghold dog_red entrenchment bastogne entrenchment bastogne stronghold bastogne patrol reichswald stronghold reichswald entrenchment reichswald patrol ortona entrenchment ortona stronghold ortona patrol comacchio entrenchment comacchio stronghold comacchio patrol
Start the Dedicated Server
  • Start Day of Infamy game
  • Alt-tab back to the Windows desktop
  • Run the Start.bat file you created earlier
  • Alt-tab back to Day of Infamy game and click on Server Browser. You should now see your local dedicated server in the LAN tab. You might have to click the Refresh button.
  • An update to the game may have removed the LAN server browser. In that case, open the console and type: connect <ip address>:27016
Change maps during play
At the server command prompt (the command window that opened when you ran Start.bat), you can change maps during play. The command window doesn't look like an actual prompt, but you can type these commands in and they will work.

Currently the following maps are available for coop:
  • sicily
  • dog_red
  • bastogne
  • reichswald
  • ortona
  • comacchio

There are currently 3 modes that these maps can be used with coop:
  • Stronghold (attacking)
  • Entrenchment (defending, or the opposite of Stronghold)
  • Patrol

To change a map enter the following command at the servers command prompt:
map bastonge stronghold
8 Comments
Marcel 18 Jan, 2021 @ 4:47pm 
For the step "Create a start up file to start your server," the instructions are a bit vague and confused me. I eventually figured it out, and just in case any one else is also confused, here's what the author meant: Open Notepad and copy this text into it:
srcds -console +sv_pure 0 +map "sicily stronghold"
Next save the file as start.bat in the Day of Infamy Dedicated Server folder.
MadSam 28 Apr, 2018 @ 3:21pm 
Guide is a great orientation for creating your own little lan server, but you should leave step server.cfg aside. There is no need and it would not work either (the parameters are wrong, I think, ins_bot should be doi_bot?). So just leave that be and put the legacy serverbrowser back (options menu). Rest works just fine, remember to use the legacy browser to find your server.
GusMan06 16 Feb, 2018 @ 8:24pm 
actually don't worry found in downnloads folder
GusMan06 16 Feb, 2018 @ 8:23pm 
I made it upto

'Create a startup file to start your server
Open the folder:
D:\steamcmd\steamapps\common\Day of Infamy Dedicated Server'

but couldn't find the folder
超次元⭐幸运星 14 Oct, 2017 @ 9:51am 
this is not used!462310 is error!
Alphonzo 11 Oct, 2017 @ 2:47pm 
does it still work
mursulakka 11 Oct, 2017 @ 12:23pm 
this is diamond
Cryptic 10 Jun, 2017 @ 3:28pm 
this is ancient