PDA

View Full Version : [Problem] CoD2 1.0 Server



buLLeT_
6th June 2018, 16:58
The server does not appear on the Internet


set sv_hostname "TDM"
sets Admin "123123231"
sets Scripter "123123231"
sets Mail "lama12345@gmail.com"
sets XFire "123123231"

scr_motd COW^8...

set net_ip ""
set net_port "28960"
set g_banIPs ""
set sv_minPing "0"
set sv_maxPing "0"
set sv_maxRate 25000

//set rcon_password "asd"
//set sv_maxclients "30"

// Client-Passwort (ENTWEDER ODER!)
set g_password ""
set sv_privatepassword ""
set sv_privateclients ""

set g_antilag 1
set sv_fps 20

//Wiederverbindungs-Limit (Minuten?)
set sv_reconnectlimit "0"
set sv_voice 0
set sv_voicequality 0 // 0-9

set sv_disableClientConsole 0
set g_deadChat "1"

//gebannte Zeit nach Kick (Sekunden)
set sv_kickBanTime 0

set logfile 1
set g_log "games_mp.log"
set g_logsync 1 // 1=immediatly 2=buffered

set sv_pure 1

set sv_floodProtect 1

set sv_allowAnonymous 0

set scr_killcam 1

set scr_spectatefree 1
set scr_spectateenemy 1

set scr_drawfriend 1

set scr_friendlyfire 0 // 0=off 1=on 2=reflect 3=shared

set g_allowvote 0

seta sv_master1 "cod2master.activision.com"
seta sv_master2 "master0.gamespy.com"
seta sv_master3 "master1.gamespy.com"
seta sv_master4 "cod2authorize.activision.com"
seta sv_master5 "cod2master.infinityward.com"
seta sv_master6 ""

set scr_tdm_timelimit 40

//seta sv_dl_maxRate "21000"
set sv_allowDownload 1
seta sv_wwwDownload 1
seta sv_wwwBaseURL "http://killtube.org/~k_basetdm"
seta sv_wwwDlDisconnected "1"

set mysql_host "127.0.0.1";
set mysql_user "root";
set mysql_pass "borisc[]453";
set mysql_db "cod2";
set mysql_port 3306

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"

Using cod2_lnxded_1_0a


#!/bin/bash

sv_maxclients="32"
fs_game="bc"
fs_homepath="/home/boris/Call of Duty 2"
cod="/home/boris/server/cod2_lnxded_1_0a"
com_hunkMegs="256"
config="server.cfg"
cracked="1"
net_port="28960"


args=\
"+set fs_homepath \"$fs_homepath\" "\
"+set sv_cracked $cracked "\
"+set fs_game $fs_game "\
"+set net_port $net_port "\
"+set com_hunkMegs $com_hunkMegs "\
"+set sv_maxclients $sv_maxclients "\
"+set fs_basepath \"$fs_homepath\" "\
"+exec $config"

LD_PRELOAD="/home/boris/server/libcod2_1_0.so" $cod $args +set g_gametype tdm +map mp_toujane




boris@cod2-server:~$ ./cod2.sh
> [LIBCOD] Compiled for: CoD2 1.0
> [LIBCOD] Compiled Jun 6 2018 17:49:57 using GCC 5.4.0 20160609
> [PLUGIN LOADED]
CoD2 MP 1.0 build linux-i386 Oct 24 2005
----- FS_Startup -----
Current search path:
/home/boris/Call of Duty 2/bc/bc3.iwd (10 files)
/home/boris/Call of Duty 2/bc/bc2.iwd (48 files)
/home/boris/Call of Duty 2/bc/bc1.iwd (53 files)
/home/boris/Call of Duty 2/bc
/home/boris/Call of Duty 2/main/iw_14.iwd (4038 files)
/home/boris/Call of Duty 2/main/iw_13.iwd (22624 files)
/home/boris/Call of Duty 2/main/iw_12.iwd (1016 files)
/home/boris/Call of Duty 2/main/iw_11.iwd (1462 files)
/home/boris/Call of Duty 2/main/iw_10.iwd (1936 files)
/home/boris/Call of Duty 2/main/iw_09.iwd (2142 files)
/home/boris/Call of Duty 2/main/iw_08.iwd (2723 files)
/home/boris/Call of Duty 2/main/iw_07.iwd (3384 files)
/home/boris/Call of Duty 2/main/iw_06.iwd (990 files)
/home/boris/Call of Duty 2/main/iw_05.iwd (928 files)
/home/boris/Call of Duty 2/main/iw_04.iwd (698 files)
/home/boris/Call of Duty 2/main/iw_03.iwd (26 files)
/home/boris/Call of Duty 2/main/iw_02.iwd (40 files)
/home/boris/Call of Duty 2/main/iw_01.iwd (16 files)
/home/boris/Call of Duty 2/main/iw_00.iwd (102 files)
/home/boris/Call of Duty 2/main
/home/boris/Call of Duty 2/raw
/home/boris/Call of Duty 2/raw_shared
/home/boris/Call of Duty 2/devraw
/home/boris/Call of Duty 2/devraw_shared
/home/boris/Call of Duty 2/main/localized_english_iw10.iwd (414 files)
/home/boris/Call of Duty 2/main/localized_english_iw09.iwd (98 files)
/home/boris/Call of Duty 2/main/localized_english_iw08.iwd (8 files)
/home/boris/Call of Duty 2/main/localized_english_iw07.iwd (1014 files)
/home/boris/Call of Duty 2/main/localized_english_iw06.iwd (3110 files)
/home/boris/Call of Duty 2/main/localized_english_iw05.iwd (5310 files)
/home/boris/Call of Duty 2/main/localized_english_iw04.iwd (6240 files)
/home/boris/Call of Duty 2/main/localized_english_iw03.iwd (6580 files)
/home/boris/Call of Duty 2/main/localized_english_iw02.iwd (6404 files)
/home/boris/Call of Duty 2/main/localized_english_iw01.iwd (5510 files)
/home/boris/Call of Duty 2/main/localized_english_iw00.iwd (4764 files)

File Handles:
----------------------
81688 files in iwd files
execing default_mp.cfg
couldn't exec language.cfg
execing config_mp_server.cfg
fs_homepath is write protected.
fs_game is write protected.
fs_basepath is write protected.
Opening IP socket: localhost:28960
ERROR: UDP_OpenSocket: bind: Address already in use
Opening IP socket: localhost:28961
Hostname: cod2-server.0.2.15
Alias: cod2-server
IP: 127.0.1.1
--- Common Initialization Complete ---
fs_homepath is write protected.
fs_game is write protected.
net_port is write protected.
fs_basepath is write protected.
execing server.cfg
net_ip is write protected.
net_port is write protected.
logfile opened on Wed Jun 6 18:57:29 2018

------ Server Initialization ------
Server: mp_toujane
----- FS_Startup -----
Current search path:
/home/boris/Call of Duty 2/bc/bc3.iwd (10 files)
/home/boris/Call of Duty 2/bc/bc2.iwd (48 files)
/home/boris/Call of Duty 2/bc/bc1.iwd (53 files)
/home/boris/Call of Duty 2/bc
/home/boris/Call of Duty 2/main/iw_14.iwd (4038 files)
/home/boris/Call of Duty 2/main/iw_13.iwd (22624 files)
/home/boris/Call of Duty 2/main/iw_12.iwd (1016 files)
/home/boris/Call of Duty 2/main/iw_11.iwd (1462 files)
/home/boris/Call of Duty 2/main/iw_10.iwd (1936 files)
/home/boris/Call of Duty 2/main/iw_09.iwd (2142 files)
/home/boris/Call of Duty 2/main/iw_08.iwd (2723 files)
/home/boris/Call of Duty 2/main/iw_07.iwd (3384 files)
/home/boris/Call of Duty 2/main/iw_06.iwd (990 files)
/home/boris/Call of Duty 2/main/iw_05.iwd (928 files)
/home/boris/Call of Duty 2/main/iw_04.iwd (698 files)
/home/boris/Call of Duty 2/main/iw_03.iwd (26 files)
/home/boris/Call of Duty 2/main/iw_02.iwd (40 files)
/home/boris/Call of Duty 2/main/iw_01.iwd (16 files)
/home/boris/Call of Duty 2/main/iw_00.iwd (102 files)
/home/boris/Call of Duty 2/main
/home/boris/Call of Duty 2/raw
/home/boris/Call of Duty 2/raw_shared
/home/boris/Call of Duty 2/devraw
/home/boris/Call of Duty 2/devraw_shared
/home/boris/Call of Duty 2/main/localized_english_iw10.iwd (414 files)
/home/boris/Call of Duty 2/main/localized_english_iw09.iwd (98 files)
/home/boris/Call of Duty 2/main/localized_english_iw08.iwd (8 files)
/home/boris/Call of Duty 2/main/localized_english_iw07.iwd (1014 files)
/home/boris/Call of Duty 2/main/localized_english_iw06.iwd (3110 files)
/home/boris/Call of Duty 2/main/localized_english_iw05.iwd (5310 files)
/home/boris/Call of Duty 2/main/localized_english_iw04.iwd (6240 files)
/home/boris/Call of Duty 2/main/localized_english_iw03.iwd (6580 files)
/home/boris/Call of Duty 2/main/localized_english_iw02.iwd (6404 files)
/home/boris/Call of Duty 2/main/localized_english_iw01.iwd (5510 files)
/home/boris/Call of Duty 2/main/localized_english_iw00.iwd (4764 files)

File Handles:
handle 1: console_mp_server.log
----------------------
81688 files in iwd files
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: Oct 24 2005
-----------------------------------
MySQL-Connection created: handle=173005288
-----------------------------------
Hitch warning: 4504 msec frame time
Resolving cod2master.activision.com
cod2master.activision.com resolved to 185.34.104.231:20710
Sending heartbeat to cod2master.activision.com
Going from CS_FREE to CS_CONNECTED for (num 0 guid 0)
Sending heartbeat to cod2master.activision.com


edit: Ubuntu server 16.04 64bit

Polat
7th June 2018, 16:06
Some servers might take a long time to appear on the master list. I got this too on my server.

There is no problem with your server.cfg, but try to replace this lines with your lines.

It's worth a try tho


set sv_master1 "cod2master.activision.com"
set sv_master2 "master.gamespy.com:28960"
set sv_master3 "master0.gamespy.com"
set sv_master4 "dedifrag.com"
set sv_master5 "cod6authorize.activision.com"
set sv_master6 "codmaster.activision.com"
set sv_master7 "coduomaster.activision.com"
set sv_master8 "master0.gamespy.com"
set sv_master9 "master1.gamespy.com"
set sv_master10 "master.gamespy.com:28960"
set sv_master11 "coduoauthorize.activision.com"
set sv_master12 "master0.gamespy.com"
set sv_master13 "dedifrag.com"
set sv_master14 "codmaster.infinityward.com"
set sv_master15 "codauthorize.activision.com"
set sv_gamespy "1"


Also, make sure that you have a cracked server.

buLLeT_
7th June 2018, 17:48
Some servers might take a long time to appear on the master list. I got this too on my server.

There is no problem with your server.cfg, but try to replace this lines with your lines.

It's worth a try tho


set sv_master1 "cod2master.activision.com"
set sv_master2 "master.gamespy.com:28960"
set sv_master3 "master0.gamespy.com"
set sv_master4 "dedifrag.com"
set sv_master5 "cod6authorize.activision.com"
set sv_master6 "codmaster.activision.com"
set sv_master7 "coduomaster.activision.com"
set sv_master8 "master0.gamespy.com"
set sv_master9 "master1.gamespy.com"
set sv_master10 "master.gamespy.com:28960"
set sv_master11 "coduoauthorize.activision.com"
set sv_master12 "master0.gamespy.com"
set sv_master13 "dedifrag.com"
set sv_master14 "codmaster.infinityward.com"
set sv_master15 "codauthorize.activision.com"
set sv_gamespy "1"


Also, make sure that you have a cracked server.

Now i have problem with port
1528
1527

Polat
8th June 2018, 12:03
You've to set the port in server.cfg


set net_port "28960"

IzNoGoD
8th June 2018, 17:40
Cod seems to load the port as an int16, while it should get loaded as an uint16. This means any port above 32k is shown as its negative counter part (port number minus 65k)

IzNoGoD
10th June 2018, 16:06
You've to set the port in server.cfg


set net_port "28960"

No, this should be in the startup line.

Polat
11th June 2018, 13:58
No, this should be in the startup line.

You can do it with a startup line or put it in your server.cfg, I'm doing it with the server.cfg, never tried it with a startup line.

buLLeT_
16th June 2018, 18:01
1534

3 servers appear and after a few seconds they disappear, now use 1.3 version

Binary file: cod2_lnxded_1_3


I see server through gametracker

1535