View Full Version : Trying to setup a LAN server-going nuts!
Bo_Nidle
11-23-2005, 03:39 PM
I have been trying to set up a LAN server to allow myself and a few mates to fight each other. I have made a config file by copying and pasting one shown on these forums but the console keeps saying it cannot read it and then tells me theres no maps in the rotation section. I have set it up as shown on here. Its driving me nuts! Can anyone set out an "idiots" guide as to what is required step-by-step PLEASE!!!
I have set my target line as described with ti set as 1 for LAN. Any help GREATLY appreciated. I can't believe the company made it this complex!!!!:confused:
Defcon|Rich
11-23-2005, 05:04 PM
First thing is make sure your permissions are set for the cfg file and it is in the correct directory.
Bo_Nidle
11-23-2005, 05:14 PM
could you elaborate on that please m8? My cfg is in the main file.
Ghost-Ryder
11-23-2005, 06:43 PM
If that is all you want to do then it is very easy.
You don't need nothing no cfg or anything.
Start COD2 multiplayer then click on New Server then set it up set it to Lan server and click on the Game type then map you want to start with Any other setting you want just click on each and set it up the way you want it.
Then all you have to do is tell your friends your IP# and click start.
Bo_Nidle
11-23-2005, 07:01 PM
I did that initialy and it brought up the console and thats when all my troubles began?!!!
Ghost-Ryder
11-23-2005, 07:26 PM
I can't help you if you don't give me any info!
You don't need a target line to run a lan server for a bit.
Bo_Nidle
11-23-2005, 08:05 PM
When I first tried to set up a LAN server the game dropped to desktop and displayed the console, it would go no further than that.
I looked around the net and found this forum that had config.cfg files which I thought I needed to copy which I did. However the console says it is unable to read the .cfg file and that it has no maps in rotation. It states the server is not running but is this only in relation to setting up a server only?
I also set up the multi play target line in the properties of the mp desktop shortcut as described on posts on this forum.
If I select "dedicated: NO" in the mp menu it starts a map no problem.However if select create a server either LAN or Internet the console appears and I'm back to square one!:confused:
This is my config: (passwords etc removed):
//Passwords
set rcon_password "" //CHANGE ME
set sv_privatePassword "" // OPTIONAL CHANGE ME
set g_password "" // Only used if you want to close your server to the public
//Logging
set g_log "Server1_mp.log"
set g_logSync "1"
//SV Pure
set sv_pure "1"
//SV Cheats
set sv_cheats "0"
//Allowed Clans
set sv_allowedClan1 ""
set sv_allowedClan2 ""
//Disable Console
set sv_disableClientConsole "0"
set sv_reconnectlimit "3"
// ************************************************** ***
// *********** Server Personality Dvars ****************
// ************************************************** ***
// Hostname and MOTD
sv_hostname ""
set scr_motd ""
// Max Players and Saved Private Possitions
set sv_maxclients "0" //Maximum players on the server who are not using the private password
set sv_privateClients "10" //Allows players to enter the server without taking up public slots
//Downloads
seta sv_allowAnonymous "0"
set sv_allowdownload "1"
// Server Packet Rate
set sv_maxRate "20000"
// Limit Laggers and reconnect spammers
set sv_reconnectlimit "3" // Limits how long a player must wait to reconnect to a server
set sv_minPing "0"
set sv_maxPing "220"
// - Banning
set g_banIPs ""
// AntiFlooding Settings
set sv_floodProtect "1"
// ************************************************** ***
// ******************** Voice *************************
// ************************************************** ***
set sv_voice "0"
set sv_voiceQuality "1"
// ************************************************** ***
// ******************** Map Rotation *******************
// ************************************************** ***
// Do NOT put your map_rotate command here! Map_rotate should be called VERY last
// Set the Gametype
set g_gametype "tdm"
// Set the Map Rotation
"set sv_maprotation "gametype tdm map mp_breakout gametype tdm map mp_brecourt gametype tdm map mp_burgundy gametype tdm map mp_carentan gametype tdm map mp_dawnville gametype tdm map mp_decoy gametype tdm map mp_downtown gametype tdm map mp_farmhouse gametype tdm map mp_leningrad gametype tdm map mp_matmata gametype tdm map mp_railyard gametype tdm map mp_toujane gametype tdm map mp_trainstation"
"set sv_maprotationcurrent ""
// ************************************************** ***
// *************** Match Setup Options *****************
// ************************************************** ***
// Use these to set how your server will play a map.
// CTF
//set scr_ctf_scorelimit "5"
//set scr_ctf_timelimit "30"
// S&D
//set scr_sd_bombtimer "60"
//set scr_sd_graceperiod "15"
//set scr_sd_roundlength "4"
//set scr_sd_roundlimit "0"
//set scr_sd_scorelimit "10"
//set scr_sd_timelimit "0"
// TDM
set scr_tdm_scorelimit "100"
set scr_tdm_timelimit "20"
// DM
//set scr_dm_scorelimit "50"
//set scr_dm_timelimit "30"
// HQ
//set scr_hq_scorelimit "600"
//set scr_hq_timelimit "30"
// ************************************************** ***
// ***************** Gameplay Dvars ********************
// ************************************************** ***
// Team Icons
set scr_drawfriend "1"
// Friendly Fire
set scr_friendlyfire "0"
// Kill Cam & Spectate
set scr_killcam "0"
set scr_spectatefree "0"
set scr_spectateenemy "0"
// Auto Team Balance
set scr_teambalance "1"
// Force Respawn
set scr_forcerespawn "1"
// ************************************************
// ******************* Voting *********************
// ************************************************
set g_allowvote "0"
// ************************************************** ***
// ************ Weapon Settings ************************
// ************************************************** ***
// Weapon Ammo Pools
set g_weaponAmmoPools "0"
//Snipers
set scr_allow_enfieldsniper "1"
set scr_allow_kar98ksniper "1"
set scr_allow_nagantsniper "1"
set scr_allow_springfield "1"
set scr_allow_svt40 "1"
// Rifles
set scr_allow_enfield "1"
set scr_allow_kar98k "1"
set scr_allow_m1carbine "1"
set scr_allow_m1garand "1"
set scr_allow_nagant "1"
set scr_allow_g43 "1"
// MGs
set scr_allow_bar "0"
set scr_allow_bren "0"
set scr_allow_mp44 "0"
set scr_allow_ppsh "0"
//SMGs
set scr_allow_sten "1"
set scr_allow_mp40 "1"
set scr_allow_thompson "1"
set scr_allow_pps42 "1"
set scr_allow_greasegun "1"
// Shotgun
set scr_allow_shotgun "0"
// Grenades
set scr_allow_smokegrenades "1"
set scr_allow_fraggrenades "1"
map_rotate
Do I have to go thru all that to play on a LAN? and if I do what am I doing wrong? And if not what do I have to do?
All I want to do is kill my mates ;)
Ghost-Ryder
11-23-2005, 08:29 PM
if you want to use a config file then it has to me in the Main folder.
And you need to add a comandline on your target line.
Should look like this if you use the default install directory
For a lan server don't even think you need to add the IP#
"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +set dedicated 1 +exec auto_exec.cfg +map_rotate"
if you use this make sure you name your config file the same auto_exec.cfg
make sure you have a profile set up before starting a server.
Config file you posted:
Make sure
set g_gametype "tdm"
// Set the Map Rotation
"set sv_maprotation "gametype tdm map mp_breakout gametype tdm map mp_brecourt gametype tdm map mp_burgundy gametype tdm map mp_carentan gametype tdm map mp_dawnville gametype tdm map mp_decoy gametype tdm map mp_downtown gametype tdm map mp_farmhouse gametype tdm map mp_leningrad gametype tdm map mp_matmata gametype tdm map mp_railyard gametype tdm map mp_toujane gametype tdm map mp_trainstation"
"set sv_maprotationcurrent ""
You remove the quotation marks before set (2 of them)
You wont need set g_gametype "tdm"
because you used it in the map rotatons already so no need to double up on it but it wont hurt if you leave it.
Bo_Nidle
11-23-2005, 08:58 PM
Did that.Heres what the console says when it pops up:
CoD2 MP 1.0 build win-x86 Oct 6 2005
----- FS_Startup -----
Current language: english
Current search path:
C:\Program Files\Activision\Call of Duty 2\main\z_powerserver_v07b.iwd (26 files)
C:\Program Files\Activision\Call of Duty 2\main\zzz_svr_Thompson-30.iwd (3 files)
C:\Program Files\Activision\Call of Duty 2\main\zzz_svr_cooked_nades.iwd (6 files)
C:\Program Files\Activision\Call of Duty 2\main\zzz_message_generator.iwd (14 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_14.iwd (4038 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_13.iwd (22624 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_12.iwd (1016 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_11.iwd (1462 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_10.iwd (1936 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_09.iwd (2142 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_08.iwd (2723 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_07.iwd (3384 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_06.iwd (990 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_05.iwd (928 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_04.iwd (698 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_03.iwd (26 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_02.iwd (40 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_01.iwd (16 files)
C:\Program Files\Activision\Call of Duty 2\main\iw_00.iwd (102 files)
C:\Program Files\Activision\Call of Duty 2/main
C:\Program Files\Activision\Call of Duty 2/raw
C:\Program Files\Activision\Call of Duty 2/raw_shared
C:\Program Files\Activision\Call of Duty 2/devraw
C:\Program Files\Activision\Call of Duty 2/devraw_shared
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw10.iwd (414 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw09.iwd (98 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw08.iwd (8 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw07.iwd (1014 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw06.iwd (3110 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw05.iwd (5310 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw04.iwd (6240 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw03.iwd (6580 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw02.iwd (6404 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw01.iwd (5510 files)
localized assets iwd file for english
C:\Program Files\Activision\Call of Duty 2\main\localized_english_iw00.iwd (4764 files)
localized assets iwd file for english
File Handles:
----------------------
81626 files in iwd files
execing default_mp.cfg
couldn't exec language.cfg
execing players/DAD/config_mp.cfg
dedicated is read only.
Measured CPU speed is 2.08 GHz
System memory is 1024 MB (capped at 1 GB)
Video card is "NVIDIA GeForce 6800 GT"
Streaming SIMD Extensions (SSE) supported
Winsock Initialized
Opening IP socket: localhost:28960
Hostname: DADS
IP: 192.168.0.1
IP: 213.xxx.xxx.xxx
--- Common Initialization Complete ---
dedicated is read only.
couldn't exec auto_exec.cfg
map_rotate...
"sv_mapRotation" is:""
"sv_mapRotationCurrent" is:""
No map specified in sv_mapRotation - forcing map_restart.
Server is not running.
Working directory: C:\Program Files\Activision\Call of Duty 2
Hitch warning: 1933 msec frame time
Does this give any clues? I do appreciate your efforts by the way. Got to turn in now as its 0050hrs in the UK and I have to be up for work at 0700hrs. I'll check back this afternoon. Cheers
darkmuppet
11-23-2005, 09:08 PM
When I first tried to set up a LAN server the game dropped to desktop and displayed the console, it would go no further than that.
That's working fine. Leave the console box alone.
Now restart the game up again and look for the server in the LOCAL servers tab.
You don't really need all the complicated config files to run a basic server on a LAN.
Just make sure you give your firewall permission to allow the game to show on your mates PCs. Opening port 28960 might be a help too.
Ghost-Ryder
11-23-2005, 09:29 PM
It is not working fine.
--- Common Initialization Complete ---
dedicated is read only.
couldn't exec auto_exec.cfg
map_rotate...
"sv_mapRotation" is:""
"sv_mapRotationCurrent" is:""
You did not remove the quotation marks as i stated before.
And it did not exec the config file.
But as he said and i have stated earlyer you don't need all that just to run a Lan server.
rudedog
11-23-2005, 09:54 PM
I would first back up and remove all your mods. Normally you can only use one mod at a time.
Then try and get it running with the suggestions offered by the other members.
If that does not work. please list
- show us your shortcut
- Show us your cfg after any edits from any suggestions you have been given already.
Bo_Nidle
11-24-2005, 09:53 AM
D'oh!! I have just returned my target line to the original state.I started a LAN server and the console came up and I then minimised it and started the game through the single player MP option and found my game in the Local server list!!
How do other players now join? Will they see it in the local list on their machines?
As you may have guessed i am a total n00b at this? :o
rudedog
11-24-2005, 10:43 AM
As long as all the players are part of your lan, they should be able to see the game server
When you say LAN I assume you mean you have a bunch of friends come over and you setup a little network. They bring their computers and you all connect them to the same hub/switch and you play?
If not and your trying to setup a server so other friends can play from their own home connection over the internet, then you need to take it to the next step.
We need to know some of your networking details.
-What type of connection (dsl, modem and an old fav ISDN)
-What is your UPLOAD speed?
-Are you using a router
Stay focused, your 1/2 way there. :D
Bo_Nidle
11-24-2005, 11:38 AM
I'm afraid its the latter!! so i still need to set up an Internet server don't I?:o
However on Joint Ops we sometimes used a program called BattleLan which allowed us to join a Lan game by IP number. Anyone know if it works with CoD2?
rudedog
11-24-2005, 12:39 PM
sorry it does not work like JO
You need to change your short cut to:
"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +set dedicated 2 +set dedicated 1 +exec my_server_config_file.cfg
You then need to forward port 28960 to the ip address of the box running the game
Give your friends your public IP address. Not the one that starts with 192.168.x.x
TBH, simply start CODMP create a server and give your friends the IP address. This is called a listening server, your game is actually the server.
The other thing to worry about is your going to need a lot of upstream bandwidth to host a server.
A normal home server here in the states can only handle 3-4 clients max.
use the tools over at dslreports.com to test your upload speed.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.