Sign in to follow this  
neo97

Create a server

Recommended Posts

Guys, I'm wondering how to create a online lan sever where I can play with my friends. Any Ideas?

Share this post


Link to post
Share on other sites
39 minutes ago, neo97 said:

Guys, I'm wondering how to create a online lan sever where I can play with my friends. Any Ideas?

copied from main page

Setting up a Call of Duty 4 server with Cod4x 1.8

Download binaries: Linux Windows

You also require the base game to run a server. Copy every .iwd file in cod4directory/main/ to serverdirectory/main/. Also copy everything inside cod4directory/zone to serverdirectory/zone.

Now you can run the server with ./cod4x18_dedrun +map mp_killhouse. If you are running a local server on Windows use cod4x18_dedrun.exe +map mp_killhouse +set dedicated 2 +set net_ip 127.0.0.1. Join the server with your client via the console (^) by typing /connect 127.0.0.1 (if hosted locally), and see if you can join the server.

Hint: you probably want to run the server on a separate user. Please don't run the server (any server) as root. That would be a major security threat.

A more detailed server tutorial is available on our wiki. Also read about new banlists here

Share this post


Link to post
Share on other sites
47 minutes ago, wkuzma said:

copied from main page

Setting up a Call of Duty 4 server with Cod4x 1.8

Download binaries: Linux Windows

You also require the base game to run a server. Copy every .iwd file in cod4directory/main/ to serverdirectory/main/. Also copy everything inside cod4directory/zone to serverdirectory/zone.

Now you can run the server with ./cod4x18_dedrun +map mp_killhouse. If you are running a local server on Windows use cod4x18_dedrun.exe +map mp_killhouse +set dedicated 2 +set net_ip 127.0.0.1. Join the server with your client via the console (^) by typing /connect 127.0.0.1 (if hosted locally), and see if you can join the server.

Hint: you probably want to run the server on a separate user. Please don't run the server (any server) as root. That would be a major security threat.

A more detailed server tutorial is available on our wiki. Also read about new banlists here

Thank You for the quick reply.

After copying zone and main files, I opened this cod4x18_dedrun.exe. Then a console appears. Then what? I'm not sure what to do next.

 

Share this post


Link to post
Share on other sites

your stating an online lan in your first post which I took only you and a few friends are a part of an internal lan

for an internal lan I would first try typing status in the console to see if your server is running you have to start it as explained in the example above

if you server is running then start your client game as if you were

going to play online and look for your server locally and join if you find it.

 

if your talking about your friends joining from outside your lan ie the internet then there is more to do to get it online.

things like a shortcut to run the server with startup commands

my startup shortcut contains D:\cod4x\cod4x18_dedrun.exe +exec run.cfg +set net_port 28960 +map_rotate

a server config file to be able to name the server and tell it how you want it to run mine is called run.cfg

if I were you I would look up in google how to run a cod4 server it should explain a server config file

the server config goes in the directory main which you copied over from cod4

in any case here is a copy of mine with all reference to my server blanked out

//////////////////////////////////////////////
//////////////////////////////////////////

// Color Codes
// Colors for text. Do not clear the comment in front of the color codes.
// Useful for your server name, motd msg's - Information and ref use only
// ^1 = Red
// ^2 = Green
// ^3 = Yellow
// ^4 = Blue
// ^5 = Cyan
// ^6 = pink/Magenta
// ^7 = White
// ^0 = Black

// Public Information


set sv_hostname ""
sets Administrator ""
sets Email ""
sets Hosted_By ""
sets Irc ""
sets website ""

sets Location ""
sets Url ""
sets _Mod ""
sets _ModVer ""
sets _ModUpdate ""
sets _Maps "Stock"
set scr_motd ""

// Common Server Settings
// Log Settings
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 ""  // Name of log file, default is games_mp.log
set sv_log_damage "1"

// Network options
set sv_maxping "650"
set sv_minping "0"
set sv_minrate "5000"
set sv_maxrate "12000"
set sv_connectTimeout "220"
set g_antilag "1"

// Master servers
set sv_masterservers "cod4master.cod4x.me"

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

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect.  Good for
// matches, practices, etc.
set g_password ""

// Player slots setup
set sv_maxclients "24"         // MAX server player slots, this is TOTAL player slots
set sv_privateclients ""       // Number of private player slots, maxclients - privateclients = public slots

// Client Downloadsettings (0=off/1=on)
set sv_allowdownload "1"
set sv_wwwDownload "1"
set sv_wwwbaseurl ""
set sv_wwwDlDisconnected "0"

// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

// AntiFlooding Settings
set sv_floodProtect "1"
set sv_reconnectlimit "3"

// Anti Cheat Settings
set sv_disableClientConsole "1"
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"

// In-game voice communication system
set sv_voice "1"
set sv_voiceQuality "9"
set voice_deadChat "0"
set voice_global "0"
set voice_localEcho "0"
set winvoice_mic_mute "1"

// Misc
set sv_allowAnonymous "1"
set g_antilag "1"
set g_compassShowEnemies "0"
set scr_drawfriend "1"
set scr_forcerespawn "1"

// Custom
set g_allowvote "0"
set scr_teambalance "1"

// Map Rotation Config
// "dm"    - free for all deathmatch
// "dom"    - domination
// "koth"    - headquarters
// "sab"    - sabotage
// "sd"    - search & destroy
// "war"    - team deathmatch


// DEATHMATCH
set scr_dm_scorelimit        100
set scr_dm_timelimit        unlimited
set scr_dm_roundlimit        1
set scr_dm_numlives         0
set scr_dm_playerrespawndelay 0
set scr_dm_waverespawndelay 0

// DOMINATION
set scr_dom_scorelimit        200
set scr_dom_timelimit        0
set scr_dom_roundlimit        1
set scr_dom_numlives         0
set scr_dom_playerrespawndelay 0
set scr_dom_waverespawndelay 0

// TEAM DEATHMATCH
set scr_war_scorelimit        300
set scr_war_timelimit        20
set scr_war_roundlimit        2
set scr_war_numlives         0
set scr_war_playerrespawndelay 0
set scr_war_waverespawndelay 0

// SABOTAGE
set scr_sab_scorelimit        3
set scr_sab_timelimit        5
set scr_sab_roundlimit        0
set scr_sab_roundswitch        1
set scr_sab_numlives         0
set scr_sab_bombtimer        30
set scr_sab_planttime        2.5
set scr_sab_defusetime        5
set scr_sab_hotpotato        0
set scr_sab_playerrespawndelay 7.5
set scr_sab_waverespawndelay 0
set scr_sab_killicon        1

// SEARCH AND DESTROY
set scr_sd_scorelimit        8
set scr_sd_timelimit        4
set scr_sd_roundlimit        0
set scr_sd_roundswitch        4         // rounds between switching teams
set scr_sd_numlives         1         // elimination
set scr_sd_bombtimer        45
set scr_sd_planttime        10
set scr_sd_defusetime        10
set scr_sd_multibomb        0
set scr_sd_playerrespawndelay 0
set scr_sd_waverespawndelay 0

// UI
set scr_hardcore                    0
set scr_oldschool                 0
set ui_hud_obituaries                1
set ui_hud_showobjicons             1
set scr_enable_nightvision            1
set scr_enable_music                1
set scr_enable_hiticon                1


// Hardpoints
set scr_allowuav    "1"                    // allow enemy uav radar                    [ OFF = 0, ON = 1, DEFAULT = 1 ]
set scr_allowartillery    "1"                // allow artillery strikes            [ OFF = 0, ON = 1, DEFAULT = 0 ]
set scr_allowhelicopter    "1"                // allow calling a helicopter            [ OFF = 0, ON = 1, DEFAULT = 0 ]

// gametype to load
set g_gametype "dm"


set sv_mapRotation "gametype dm map mp_crash_snow
gametype dm map mp_vacant gametype dm map mp_broadcast
gametype dm map mp_shipment gametype dm map mp_convoy
gametype dm map mp_showdown gametype dm map mp_pipeline
gametype dm map mp_backlot gametype dm map mp_killhouse
gametype dm map mp_carentan gametype dm map mp_strike
gametype dm map mp_showdown gametype dm map mp_citystreets
gametype dm map mp_broadcast gametype dm map mp_killhouse
gametype dm map mp_bloc gametype dm map mp_backlot"

//load plugins for used on cod4x for banlists and b3

loadplugin "b3hide"

set b3Prefix "!"
set b3Hide "1"
set b3HideLvl "24"

loadplugin simplebanlist

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this