Results 1 to 8 of 8

Thread: [Problem] CoD2 1.0 Server

  1. #1
    Private
    Join Date
    Feb 2018
    Posts
    28
    Thanks
    12
    Thanked 17 Times in 16 Posts

    [Problem] CoD2 1.0 Server

    The server does not appear on the Internet

    Code:
    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

    Code:
    #!/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

    Code:
    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
    Last edited by buLLeT_; 6th June 2018 at 18:57.

  2. #2
    Private
    Join Date
    Jan 2018
    Location
    Somewhere
    Posts
    43
    Thanks
    10
    Thanked 21 Times in 16 Posts
    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
    Code:
    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.

  3. The Following User Says Thank You to Polat For This Useful Post:

    buLLeT_ (7th June 2018)

  4. #3
    Private
    Join Date
    Feb 2018
    Posts
    28
    Thanks
    12
    Thanked 17 Times in 16 Posts
    Quote Originally Posted by Polat View Post
    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
    Code:
    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
    Click image for larger version. 

Name:	port.png 
Views:	80 
Size:	955.7 KB 
ID:	1528
    Click image for larger version. 

Name:	Untitled.png 
Views:	68 
Size:	65.4 KB 
ID:	1527

  5. #4
    Private
    Join Date
    Jan 2018
    Location
    Somewhere
    Posts
    43
    Thanks
    10
    Thanked 21 Times in 16 Posts
    You've to set the port in server.cfg

    Code:
    set net_port "28960"

  6. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    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)
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  7. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (8th June 2018),Mitch (8th June 2018)

  8. #6
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by Polat View Post
    You've to set the port in server.cfg

    Code:
    set net_port "28960"
    No, this should be in the startup line.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  9. #7
    Private
    Join Date
    Jan 2018
    Location
    Somewhere
    Posts
    43
    Thanks
    10
    Thanked 21 Times in 16 Posts
    Quote Originally Posted by IzNoGoD View Post
    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.

  10. #8
    Private
    Join Date
    Feb 2018
    Posts
    28
    Thanks
    12
    Thanked 17 Times in 16 Posts
    Click image for larger version. 

Name:	Untitled.png 
Views:	31 
Size:	1.42 MB 
ID:	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

    Click image for larger version. 

Name:	Untitled.png 
Views:	30 
Size:	619.5 KB 
ID:	1535
    Last edited by buLLeT_; 16th June 2018 at 19:18.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •