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 IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quick update for ubuntu 16.04 and the current libcod version (which doesnt require the gcc-multilib thing anymore):

    PHP Code:
    dpkg --add-architecture i386
    apt
    -get update
    apt
    -get install libstdc++5:i386 libstdc++6:i386 libmysqlclient-dev:i386 g++-multilib git
    git 
    clone https://github.com/voron00/libcod
    cd libcod
    ./doit.sh cod2_1_3 
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. #2
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    Somehow I only can start the server on localhost, but I would like to make the server available for everyone.

    When I run the server.sh, console tells me:
    PHP Code:
    Opening IP socketlocalhost:28960 
    I tried to set dedicate to 2, so that the server is for everyone available.
    Now the console this
    PHP Code:
    dedicated is read only
    I am not sure if it's an error or warning, but it's still running on localhost.

    This is my server.sh (which is inside my CoD2 folder):
    PHP Code:
    #!/bin/bash

    cod="/home/CoD2/cod2_lnxded_1_3"

    $cod +set dedicated 2 +set fs_game "loveboy" +set com_hunkMegs "256" +set sv_maxclients "16" +exec server.cfg +set g_gametype hq +map_rotate 
    I also tried to set the net_ip with my real IPv4 address
    PHP Code:
    $cod +set dedicated 2 +set fs_game "loveboy" +set com_hunkMegs "256" +set sv_maxclients "16" +set net_ip "12.34.56.78" +exec server.cfg +set g_gametype hq +map_rotate 
    but the server crashes.

    The error:
    PHP Code:
    Opening IP socket12.34.56.78:28960
    ERROR
    UPD_OpenSocketbindCannot assign requested
    Opening IP socket
    12.34.56.78:28961
    ERROR
    UPD_OpenSocketbindCannot assign requested
    Opening IP socket
    12.34.56.78:28962
    ERROR
    UPD_OpenSocketbindCannot assign requested

    ... till :28969

    Sys_Error
    Error during initialization:
    Couldn't allocate IP port 
    I also tried to open port in my firewall
    PHP Code:
    iptables -A INPUT -p udp -d 12.34.56.78 --dport 28960 -m state --state NEW -j ACCEPT 
    and tried to check it with
    PHP Code:
    iptables -
    and found my new entry (successful), but still same errors.
    My opened port disappears when I restart ubuntu.


    Does anyone maybe know what to do?

Posting Permissions

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