Never heard of it before, thanks!
Type: Posts; User: Whiskas
Never heard of it before, thanks!
God I'm the most dumbest in the world!
I'm running mysql on same machine as my codserver. Tried with "localhost" instead of my machine's ip and it worked! (I thought i did this before ._.).
...
Sure I can!
Of course:
level.JH_mysql = initMySQL();
and
initAsyncMySQL();
had login params inside them like in my first post.
Solution 1.
./libcod2_1_0.so: /usr/lib/i386-linux-gnu/libmysqlclient.so.18: no version information available (required by ./libcod2_1_0.so)
linux-gate.so.1 => (0xb7787000)
libdl.so.2 =>...
Got output like this, something wrong with mysql_real_connect()?
Program terminated with signal 11, Segmentation fault.
#0 0xb71b3b4b in mysql_options ()
from...
I'm not using any query, just initiating on game start. Couldn't find problem cause I don't really know how to debug segmentation fault.
I am using libcod from 29.01.15 -> http://killtube.org/downloads/libcod/2015_01_29/ To get newer libcod I should compile it myself?
init()
{
//get your host, user, pass, db, port here
...
Hey, is this script suppose to work on 1.0? Cause I've got some segmentation fault when initing and I'm not sure if it's 1.2/1.3 only.
Sorry for bothering and thanks in advance.