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.
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.
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
Thank you for quick response, that's what I was looking for.
Btw. I get the following when Running no mysql version of libcod:And when I try to run libcod with mysql support I get this error:PHP Code:
> [WARNING] Compiled for: 210
Compiled: Sep 17 2013 23:08:19
> [INFO] value of closer=08111d32
> [PLUGIN LOADED]
Any advice on how to fix that? Because Mysql support is what I was really looking for.PHP Code:
./cod2_lnxded: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
Thank you again.
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
YuriJurek (13th November 2013)
Thank you for your answer, I'll check it out as soon as I can.
Well now I get this:It's Debian 6.0 btw.PHP Code:
dpkg: unknown 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' !
I've tried these but with no positive result:Any further assistance would be appreciated.PHP Code:
dpkg --configure -a
apt-get update
apt-get upgrade
Last edited by YuriJurek; 13th November 2013 at 17:11.
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):
This old way should work always, just a bit messy to handle system libs by hand.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.
timescale 0.01
Still nothing -.- My Startup Script:That's the output: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
...PHP Code:
./cod2_lnxded: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
Ah, it's compiled against version .18 now, but you got version .16
I guess you can just rename your .16 to .18Code: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)
timescale 0.01
BlancO (13th November 2013)
Thank you finally got it to work. Very appreciate your time.