Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Libcod CoD2 1.0

  1. #1
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts

    Libcod CoD2 1.0

    Hello there, Kung Foo Man may I ask if you could make libcod version for cod2 1.0? Or is there already a 1.0 version?
    Thanks in advice.
    Last edited by YuriJurek; 12th November 2013 at 20:51.

  2. #2
    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
    Hey, the "base" is working (e.g. accessing MySQL-functions through stack functions), but many version-dependent functions are not implemented (e.g. functions to query +moveright etc.).

    I've uploaded the build now: http://killtube.org/downloads/libcod/
    timescale 0.01

  3. The Following 2 Users Say Thank You to kung foo man For This Useful Post:

    BlancO (13th November 2013),YuriJurek (12th November 2013)

  4. #3
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Thank you for quick response, that's what I was looking for.

    Btw. I get the following when Running no mysql version of libcod:
    PHP Code:
    > [WARNINGCompiled for: 210
    Compiled
    Sep 17 2013 23:08:19
    > [INFOvalue of closer=08111d32
    > [PLUGIN LOADED
    And when I try to run libcod with mysql support I get this error:
    PHP Code:
    ./cod2_lnxdederror while loading shared librarieslibmysqlclient.so.18cannot open shared object fileNo such file or directory 
    Any advice on how to fix that? Because Mysql support is what I was really looking for.

    Thank you again.

  5. #4
    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
    The MySQL-lib is missing, as written under Requirements: https://github.com/kungfooman/libcod

    Code:
    dpkg --add-architecture i386
    apt-get update
    apt-get install gcc-multilib
    apt-get install libmysqlclient-dev:i386
    timescale 0.01

  6. The Following User Says Thank You to kung foo man For This Useful Post:

    YuriJurek (13th November 2013)

  7. #5
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Thank you for your answer, I'll check it out as soon as I can.

  8. #6
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Well now I get this:
    PHP Code:
    dpkgunknown option --add-architecture




    Type dpkg 
    --help for help about installing and deinstalling packages[*];
    Use `
    dselect' or `aptitude' for user-friendly package management;
    Type dpkg -Dhelp for a list of dpkg debug flag values;
    Type dpkg --force-help for a list of forcing options;
    Type dpkg-deb --help for help about manipulating *.deb files;




    Options marked[*] produce a lot of output - pipe it through `less' 
    or `more' ! 
    It's Debian 6.0 btw.

    I've tried these but with no positive result:
    PHP Code:
    dpkg --configure -a
    apt
    -get update
    apt
    -get upgrade 
    Any further assistance would be appreciated.
    Last edited by YuriJurek; 13th November 2013 at 17:11.

  9. #7
    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
    Hey, installing the libraries by hand might be easier:

    Download the mysql libs from here: http://dbg.killtube.org/libcod/libs/mysql/

    Then write in your start script (fit paths ofc):

    Code:
    export LD_LIBRARY_PATH="/root/helper/game_cod2/libs/mysql"
    export LD_PRELOAD="/root/helper/game_cod2/libs/libcod2_1_2.so"
    
    ./cod2_lnxded_1.2_patch_va_loc +set g_gametype tdm etc.
    This old way should work always, just a bit messy to handle system libs by hand.
    timescale 0.01

  10. #8
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Still nothing -.- My Startup Script:
    PHP Code:
    cd /home/cod2/server
    export LD_LIBRARY_PATH
    ="/home/cod2/server/libs/mysql"
    export LD_PRELOAD="/home/cod2/server/libs/libcod2_1_0.so"
    ./cod2_lnxded +set dedicated "2" +set net_port "28960" +set fs_game "update" +exec update.cfg 
    That's the output:
    PHP Code:
    ./cod2_lnxdederror while loading shared librarieslibmysqlclient.so.18cannot open shared object fileNo such file or directory 
    ...

  11. #9
    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
    Ah, it's compiled against version .18 now, but you got version .16

    Code:
    ldd bin/libcod2_1_0.so
            linux-gate.so.1 =>  (0xf7779000)
            libmysqlclient.so.18 => /usr/lib/i386-linux-gnu/libmysqlclient.so.18 (0xf742c000)
            libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xf7428000)
            libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf740a000)
            libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf72a7000)
            libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xf728e000)
            libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7275000)
            librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xf726c000)
            libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf717f000)
            libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf7159000)
            /lib/ld-linux.so.2 (0xf777a000)
    I guess you can just rename your .16 to .18
    timescale 0.01

  12. The Following User Says Thank You to kung foo man For This Useful Post:

    BlancO (13th November 2013)

  13. #10
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Thank you finally got it to work. Very appreciate your time.

Posting Permissions

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