callback_PlayerConnect()
{
/*....*/
//CHECK_BAN
login="";
if(isDefined(self.stats["login"])) login=self.stats["login"]; //without if, sometimes server crash :(
if(isBan(self getip()))
{...
callback_PlayerConnect()
{
/*....*/
//CHECK_BAN
login="";
if(isDefined(self.stats["login"])) login=self.stats["login"]; //without if, sometimes server crash :(
if(isBan(self getip()))
{...
I'm not sure your query is actually defined, if myip is undefined, the whole server might crash.
If nothing else, it can show you the last query done before crashing
You should also add a...
no, do a printf("select etcetera") BEFORE you do the asyncquery line
I make my ban system, Whiskas check for all queryS if(isDefined..
sometime player disconnect and cod2 make query for null login and server crash by error: Segmentation Fault
Please printf the query
Load the core dumb in gdb and show the trace, iirc just type "bt" for backtrace
next time your getstatus doesnt return anything: check net_port on your server. Sometimes the port is "in use" on mapchange, causing cod to go to port+1 and itll keep running from there
Looks almost like your connection is failing hard and/or your mysqlclient is buggy.
Can you try compiling libcod from source (mitch's git) and doublecheck your mysql parameters?
Can you debug wether the problem is in initMysql() or in initAsyncMysql?
What is the output this command?
ldd libcod2_1_0.so
ulimit -c unlimited
start ur cod2 serv here
gdb /path/to/cod2_lnxded /home/user/core
bt
Big update: Cleaned up the mysql files and made the stuff make more sense.
Here goes:
init()
{
//get your host, user, pass, db, port here
level.JH_mysql = mysql_reuse_connection();...
Here you go
fixChatArgs(args)
{
if (isDefined(args[1]))
{ // engine is adding identifier infront of the chat message
if (getAscii(args[1][0]) >= 20 && getAscii(args[1][0]) <=...
This is a very simple code to ask a question and see the result. You can improve it with some nice huds.
Libcod needed
case "vote":
if(isdefined(level.pers["voted"]) &&...
Hi, title says it, im going to show you how to export playermodels from source engine to cod(2) (Multiplayer only!!). Its not really a direct export since it requers some work, but its not too...
Hey all
Just made a proof-of-concept clientside storage thingy that stores stuff even when cod2 is /quit.
Ill release it next week or so
At first, the normal firewall script (origin somewhere from icculus mailing list?):
Create file ddos.sh
# chmod +x ddos.sh
# ./ddos.sh
# reset iptables
iptables --flush
That is due to you copying my code completely and not giving credit.
Thread closed.
Hello all,
Lately, a lot of people have been visiting killtube with the sole purpose of asking for someone "to do a mod for them". This is quite annoying, and I'd like to write some kind of FAQ to...