Results 1 to 10 of 40

Thread: [CoD2] Setup CoD2 on your Ubuntu server

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Do step 3

    Code:
    chmod 500 ./cod2_lnxded_1_3_cracked
    or just

    Code:
    chmod +x ./cod2_lnxded_1_3_cracked
    timescale 0.01

  2. #2
    Private
    Join Date
    Mar 2018
    Posts
    36
    Thanks
    8
    Thanked 6 Times in 6 Posts
    Ok.
    Now I got this.

    Code:
    root@rgl:/home# cd cod2server
    root@rgl:/home/cod2server# chmod 500 ./cod2_lnxded_1_3_cracked
    root@rgl:/home/cod2server# chmod +x ./cod2_lnxded_1_3_cracked
    root@rgl:/home/cod2server# ./cod2_lnxded_1_3_cracked +set +exec dedicated.cfg
    ./cod2_lnxded_1_3_cracked: line 1: !DOCTYPE: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 2: html: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 3: head: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 4: title: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 5: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 6: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 7: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 8: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 9: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 10: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 11: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 12: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 13: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 14: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 15: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 16: meta: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 17: link: No such file or directory
    ./cod2_lnxded_1_3_cracked: line 18: $'\r': command not found
    ./cod2_lnxded_1_3_cracked: line 19: syntax error near unexpected token `<'
    ./cod2_lnxded_1_3_cracked: line 19: `            <link rel='stylesheet' href='/w                                                                                                 ro/viewjs-e44544f03b22fab45334dcdb8a6b3b0931e845ad.css' /><script src='/wro/view                                                                                                 js-b5af86fa1522edfe99ee6c9472e53cc88f2dc9a5.js' type='text/javascript'></script>                                                                                                 'script type="text/javascript">
    root@rgl:/home/cod2server#

  3. #3
    ... connecting
    Join Date
    Jan 2021
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hello!

    Ill have a problem with dependencies:

    apt-get -y install libmysqlclient-dev:i386Package libmysqlclient-dev:i386 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
    libmariadb-dev-compatpc64el libmariadb-devpc64el libmariadb-dev-compat
    libmariadb-dev libmariadb-dev-compat:arm64 libmariadb-dev:arm64
    libmariadb-dev:i386 libmariadb-dev-compat:i386
    apt install libmariadb-dev-compat:i386

    gives this:

    The following packages have unmet dependencies:
    libmariadb-dev:i386 : Depends: libmariadb3:i386 (= 1:10.5.12-0+deb11u1) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages. Im on Debian 11 (amd64)

    Whatever. I compiled anyway, The real problem is with running the script.

    Created startcod2.sh
    With this lines in it:

    ################################################## ##################################
    #!/bin/bash

    sv_maxclients="32"
    fs_game="main"
    fs_homepath="/home/somedirectoryname/cod2"
    cod="/home/somedirectoryname/cod2/libcod2_1_3.so"
    config="cod2server.cfg"
    cracked="1"
    net_port="28961"


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

    LD_PRELOAD="/home/somedirectoryname/cod2/libcod2_1_3.so" $cod $args +set g_gametype tdm +map mp_leningrad
    ################################################## ##################################



    I get this errors:

    bash startcod2.sh
    startcod2.sh: line 21: 47857 Segmentation fault LD_PRELOAD="/home/somedirectoryname/cod2/libcod2_1_3.so" $cod $args +set g_gametype tdm +map mp_leningrad


    Any idea?
    Last edited by Rohambili; 3rd December 2021 at 17:55.

  4. The Following User Says Thank You to Rohambili For This Useful Post:

    kung foo man (12th December 2021)

Posting Permissions

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