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
    ... 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.

  2. 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
  •