Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 72 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 General
General game questions, comments, and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Hosting CoD 4 Server
_SpuD_
General Member
Since: Jan 30, 2007
Posts: 190
Last: Jun 22, 2008
[view latest posts]
Level 4
Category: CoD4 General
Posted: Friday, Jun. 20, 2008 04:02 pm
Hi,
I am currently hosting a server on my pc for me and a few mates to play on but just haveing a few problems

First, My friends can join BUT only by going /connect xx.xxx.xx.xxx, as the server does not show up in the CoD 4 server list, Was just wondering how i make it show up,

Second, I made a config File for my server, which worked fine but now every time i try to run the shortcut that has +exec myserver.cfg, The console comes up but fails to start up the server? (At the moment i just launch up the game and go to start new server and all the settings, I think, are saved there so i just click start and it works fine!

My question is how do i get the server to show up in the list and why wont CoD 4 run my config??

Here is my config...

Code:
sets sv_hostname "^2S^7pu^2D^2'^7s ^2H^7ard^2C^7ore ^2S^7erver^2'"
sets _Admin "^1^7pu^1D^1'"
sets _Email ""
sets _Website ""
sets _Location "DakaDakaStan"
sets _Irc ""

set scr_motd "^8Welcome to ^2S^7pu^2D^2'^7s ^2H^7ard^2C^7ore ^2S^7erver^2'  ^8Have Fun and Enjoy the Game^1!"

set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1" // 0 = NO log, 1 = log file enabled
set g_log "Spud_Server_HC.log" // Name of log file, default is games_mp.log
set sv_log_damage "1"

set net_port "28960" // Set your port number
set com_hunkMegs "1024"
set net_noipx "1" // Allow ONLY tcp/ip protocol, player/server communications

set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet

set sv_master1 "cod2master.activision.com"
set sv_master2 "cod2authorize.activision.com"
set sv_master3 "cod2master.infinityward.com"
set sv_master3 "cod2update.activision.com"
set sv_master4 "master.gamespy.com:28960"
set sv_master5 "master0.gamespy.com"
set sv_master6 "master1.gamespy.com"
set sv_master7 "clanservers.net"
set sv_gamespy "1"

set rcon_password "***" // RCON must supply pw to use
set sv_privatePassword "***" // Private slots, non-public slots

set sv_maxclients "14" // MAX server player slots, this is TOTAL player slots
set sv_privateclients "2"

set scr_player_forcerespawn "1" 
set scr_player_respawndelay "-1" 

set sv_minPing "0" // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "350" // MAX player ping on CONNECT, any higher and player isnt allowed to connect

set sv_allowdownload "0"
//seta sv_wwwDownload "1"
//seta sv_wwwBaseURL "http://www.xxx.xxx.xx"
//seta sv_wwwDlDisconnected "1"

set sv_maxRate "5000"

set sv_fps "20"

set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

set sv_floodProtect "1"
set sv_reconnectlimit "3"

set sv_disableClientConsole "0"
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"
set sv_punkbuster "0"

set sv_kickBanTime "3600"

set sv_voice "0"
set sv_voiceQuality "1"
set voice_deadChat "1"
set voice_global "0"
set voice_localEcho "0"
set winvoice_mic_mute "1"

set sv_allowAnonymous "0"
set g_antilag "0"
set g_compassShowEnemies "0"
//ui_maxclients 32

set sv_mapRotation "gametype koth map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype dm map mp_cargoship gametype war map mp_citystreets gametype dm map mp_convoy gametype war map mp_countdown gametype koth map mp_crash gametype dm map mp_crossfire gametype dm map mp_farm gametype dm map mp_overgrown gametype dm map mp_pipeline gametype dm map mp_shipment gametype war map mp_showdown gametype dm map mp_strike gametype dm map mp_vacant"



Btw, i have forwarded all my ports on my local and network firewall and also i have just tried pinging my external IP from Cmd.exe and it works fine, but if i try joining my own server by going /connect xx.xxx.xx.xxx it just times out ( This not really a problem as i join locally, but i should be able to connect exteranal shouldnt i?)

Thanks for any answers :)

SpuD
Share |
supersword
General Member
Since: Jul 28, 2004
Posts: 1990
Last: Apr 18, 2024
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD4 General
Posted: Friday, Jun. 20, 2008 04:12 pm
Hmm. It's been a while since I delved into the realm of servers but here goes.

-- removed this bit, I will repost it when I confirm about the master servers --

Now as for your loading issue. Use this in the target:

+set dedicated 2 +exec dedicated.cfg

Make sure that is outside of the quotes but inside the Target text box.

Hope that helps,
Supersword.


edited on Jun. 20, 2008 12:16 pm by supersword
Share |
_SpuD_
General Member
Since: Jan 30, 2007
Posts: 190
Last: Jun 22, 2008
[view latest posts]
Level 4
Category: CoD4 General
Posted: Friday, Jun. 20, 2008 04:17 pm
Thanks for that, Yeah i should have seen that, guess they based it on a call of duty 2 config

The error i get in the console now is

Code:
CPU vendor is "GenuineIntel"
CPU name is "Intel(R) Core(TM)2 Duo CPU     E6850  @ 3.00GHz"
2 logical CPUs reported
2 physical CPUs detected
Measured CPU speed is 3.00 GHz
Total CPU performance is estimated as 11.26 GHz
System memory is 1024 MB (capped at 1 GB)
Video card is "NVIDIA GeForce 8800 GTX"
Streaming SIMD Extensions (SSE) supported

Winsock Initialized
Opening IP socket: localhost:28960
Hostname: TARDIS
IP: 192.168.0.10
dedicated is read only.
end $init 609 ms
--- Common Initialization Complete ---
execing myserver.cfg from disk
dedicated is read only.
Build 565 nightly Fri May 09 2008 02:47:59PM
logfile opened on Fri Jun 20 17:15:55 2008

sv_cheats is read only.
sv_punkbuster is write protected.
dedicated is read only.
Working directory: C:\Games\Call of Duty 4 - Modern Warfare
PunkBuster Server: pb_sv_SsNext = 116146 (0 to 999999)
PunkBuster Server: pb_sv_LogNext = 25 (1 to 999999)
PunkBuster Server: PB Log File C:\Games\Call of Duty 4 - Modern Warfare\pb\svlogs\00000025.log Opened for COD4 (w)
PunkBuster Server: 0 Power Players loaded from C:\Games\Call of Duty 4 - Modern Warfare\pb\pbpower.dat
PunkBuster Server: 0 PB Rcon Filters loaded from C:\Games\Call of Duty 4 - Modern Warfare\pb\pbrcon.dat
PunkBuster Server: 0 Map lines loaded from C:\Games\Call of Duty 4 - Modern Warfare\pb\pbsvmaps.cfg
PunkBuster Server: Attempting to resolve master6.evenbalance.com
PunkBuster Server: Resolved to [69.59.138.4]
PunkBuster Server: PunkBuster Server (v1.664 | A1402 C2.065) Enabled
Huffman Took 2 Milliseconds
Hitch warning: 703 msec frame time
PunkBuster Server: Game Version [CoD4 MP 1.6 build 565 nightly Fri May 09 2008 02:47:59PM win-x86]


Thanks for your help

SpuD
Share |
supersword
General Member
Since: Jul 28, 2004
Posts: 1990
Last: Apr 18, 2024
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD4 General
Posted: Friday, Jun. 20, 2008 04:24 pm
Well from what I remember, a hitch warning was just ignored. As for punkbuster, I can't see anything major in there. You seem to have it running but for the sake of being sure, add in +sv_punkbuster 1 to your shortcut.

If it looks the same, just try and connect to the Tardis, Doctor. :P

/connect 192.168.0.10
Share |
_SpuD_
General Member
Since: Jan 30, 2007
Posts: 190
Last: Jun 22, 2008
[view latest posts]
Level 4
Category: CoD4 General
Posted: Friday, Jun. 20, 2008 04:32 pm
Haha :P

Yeah i have tried to connect by going /connect 192.168.0.10 but the connection always times out and no servers show up under the local list :(

I think its because the server hasnt started propelry or something as when i start a server with out a config, this is what comes up after scrolling through a load of drivers...



Code:
WARNING: unknown dvar 'bg_shock_volume_musicnopause' in file 'shock/damage_mp.shock'
WARNING: unknown dvar 'bg_shock_volume_mission' in file 'shock/damage_mp.shock'
WARNING: unknown dvar 'bg_shock_volume_announcer' in file 'shock/damage_mp.shock'
WARNING: unknown dvar 'bg_shock_volume_shellshock' in file 'shock/damage_mp.shock'
-----------------------------------
PunkBuster Server: pb_sv_GuidRelax = 7 (0 to 7)
Hitch warning: 6785 msec frame time
Resolving cod4master.activision.com
cod4master.activision.com resolved to 63.146.124.21:20810
Sending heartbeat to cod4master.activision.com
Resolving cod4master.activision.com
cod4master.activision.com resolved to 63.146.124.21:20800
Hitch warning: 780 msec frame time


I am asuming its something in the config and/or mabe something to do with Dedicated read only and punkbuster readonly? shall i remove these from the config?

And also do you no of any programs for making CoD 4 server configs as i rember there used to be ones for CoD 1 and the likes?

Thanks again

SpuD
Share |
supersword
General Member
Since: Jul 28, 2004
Posts: 1990
Last: Apr 18, 2024
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD4 General
Posted: Friday, Jun. 20, 2008 05:23 pm
That's weird. I tried to reproduce this error but I couldn't. I'm not sure what to suggest.

I cannot remember seeing any config creators. They were everywhere when Call of Duty 1 was big.
Share |
_SpuD_
General Member
Since: Jan 30, 2007
Posts: 190
Last: Jun 22, 2008
[view latest posts]
Level 4
Category: CoD4 General
Posted: Friday, Jun. 20, 2008 06:35 pm
Hmm.. That is wierd [ohwell]

Any idea's on this one??

And yeah there were loads for CoD 1 was just wondering if there were any for CoD 4?

SpuD

Edit: Also This is what i get if i try to exec the .cfg in the console itself

Code:

WARNING: unknown dvar 'bg_shock_volume_music' in file 'shock/damage_mp.shock'
WARNING: unknown dvar 'bg_shock_volume_musicnopause' in file 'shock/damage_mp.shock'
WARNING: unknown dvar 'bg_shock_volume_mission' in file 'shock/damage_mp.shock'
WARNING: unknown dvar 'bg_shock_volume_announcer' in file 'shock/damage_mp.shock'
WARNING: unknown dvar 'bg_shock_volume_shellshock' in file 'shock/damage_mp.shock'
-----------------------------------
PunkBuster Server: pb_sv_GuidRelax = 7 (0 to 7)
Hitch warning: 3308 msec frame time
Resolving cod4master.activision.com
cod4master.activision.com resolved to 63.146.124.21:20810
Sending heartbeat to cod4master.activision.com
Resolving cod4master.activision.com
cod4master.activision.com resolved to 63.146.124.21:20800
]exec myserver.cfg
execing myserver.cfg from disk
sv_cheats is read only.
sv_punkbuster is write protected.
g_antilag is read only.
g_compassShowEnemies is cheat protected.



So im guessing it has got something to do with write protected? is this a vista problem again?


And in the log i get this (i think this is from this ocasion and not a prevous one)

Code:

  0:00 InitGame: \g_compassShowEnemies\0\g_gametype\dm\gamename\Call of Duty 4\mapname\mp_broadcast\protocol\5\shortversion\1.6\sv_allowAnonymous\0\sv_disableClientConsole\0\sv_floodprotect\1\sv_hostname\^2S^7pu^2D^2'^7s ^2H^7ard^2C^7ore ^2S^7erver^2'\sv_maxclients\14\sv_maxPing\350\sv_maxRate\5000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\1\sv_pure\1\sv_voice\0\ui_maxclients\32
  0:46 J;326b673d62958bee93e735e5e96f2342;0;SpuD ' 
  1:39 D;326b673d62958bee93e735e5e96f2342;0;allies;SpuD ' ;;-1;world;;none;26;MOD_FALLING;none
  2:09 D;326b673d62958bee93e735e5e96f2342;0;allies;SpuD ' ;;-1;world;;none;1;MOD_FALLING;none
  2:26 D;326b673d62958bee93e735e5e96f2342;0;allies;SpuD ' ;;-1;world;;none;56;MOD_FALLING;none
  3:14 K;326b673d62958bee93e735e5e96f2342;0;;SpuD ' ;326b673d62958bee93e735e5e96f2342;-1;;SpuD ' ;destructible_car;198;MOD_EXPLOSIVE;none
  7:45 D;326b673d62958bee93e735e5e96f2342;0;allies;SpuD ' ;;-1;world;;none;4;MOD_FALLING;none
  8:49 Q;326b673d62958bee93e735e5e96f2342;0;SpuD ' 
  8:53 ShutdownGame:


thanks Again

SpuD


edited on Jun. 20, 2008 02:47 pm by _SpuD_
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD4 General
Posted: Saturday, Jun. 21, 2008 03:53 pm
I might be mistaken, but the connection problem you have might be because of the fact that it's your own computer you're trying to connect to.

try typing
/connect localhost

that should work, I think.
Share |
_SpuD_
General Member
Since: Jan 30, 2007
Posts: 190
Last: Jun 22, 2008
[view latest posts]
Level 4
Category: CoD4 General
Posted: Sunday, Jun. 22, 2008 04:38 pm
I have tried with my other Computer and that also times out,
Is this because its on my own subnet and ip?

People can join the server thoe which is a good thing! :)

Well i have got it working by using Modern Rcon and by starting up the server from the game normaly and once its loaded typing exec myserver.cfg which then does change all the settings.

One last question ([cool]) Does any body have like a sample .cfg for the punkbuster commands??

Thanks for all your help!

SpuD
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 General

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»