I had no downtimes until one player came... I'm not sure how, but he makes Segmentation Fault on connect.
In tdm.gscCode:8: EXE_DISCONNECTED Rcon from 89.36.219.214:-8170: say 12: EXE_DISCONNECTED Client 362 connecting with 200 challenge ping from 118.107.128.42:28960 Going from CS_FREE to CS_CONNECTED for (num 8 guid 0) Segmentation fault (core dumped) ./cod2_lnxded_1_0: /usr/lib/i386-linux-gnu/libmysqlclient.so.18: no version information available (required by ./libcod2_1_0.so) > [INFO] Compiled for: CoD2 1.0 Compiled: Jan 29 2015 02:23:00 > [INFO] value of closer=08111d32 > [INFO] value of download=0808e508 > [PLUGIN LOADED] CoD2 MP 1.0 build linux-i386 Oct 24 2005 ----- FS_Startup ----- Current search path: /home/codserver/.callofduty2/whiskys.lair /home/codserver/whiskys.lair/zzz_modz.iwd (3 files) /home/codserver/whiskys.lair/zzz_all_rifles_v1.5.iwd (18 files) /home/codserver/whiskys.lair /home/codserver/.callofduty2/main /home/codserver/main/iw_14.iwd (4038 files) /home/codserver/main/iw_13.iwd (22624 files) /home/codserver/main/iw_12.iwd (1016 files) /home/codserver/main/iw_11.iwd (1462 files) /home/codserver/main/iw_10.iwd (1936 files) /home/codserver/main/iw_09.iwd (2142 files) /home/codserver/main/iw_08.iwd (2723 files) /home/codserver/main/iw_07.iwd (3384 files) /home/codserver/main/iw_06.iwd (990 files) /home/codserver/main/iw_05.iwd (928 files) /home/codserver/main/iw_04.iwd (698 files) /home/codserver/main/iw_03.iwd (26 files) /home/codserver/main/iw_02.iwd (40 files) /home/codserver/main/iw_01.iwd (16 files) /home/codserver/main/iw_00.iwd (102 files) /home/codserver/main /home/codserver/.callofduty2/raw /home/codserver/.callofduty2/raw_shared /home/codserver/.callofduty2/devraw /home/codserver/.callofduty2/devraw_shared /home/codserver/raw /home/codserver/raw_shared /home/codserver/devraw /home/codserver/devraw_shared File Handles: ---------------------- 42146 files in iwd files execing default_mp.cfg couldn't exec language.cfg execing config_mp_server.cfg dedicated is read only. fs_game is write protected. Opening IP socket: localhost:28960 Hostname: localhost.domain Alias: localhost Alias: whiskers Alias: whiskers IP: 127.0.0.1 IP: 89.36.219.214 --- Common Initialization Complete --- net_port is write protected. dedicated is read only. fs_game is write protected. execing server.cfg net_ip is write protected. net_port is write protected. dedicated is read only. sv_cheats is write protected. map_rotate... "sv_mapRotation" is:"gametype tdm map mp_toujane gametype tdm map mp_carentan gametype tdm map mp_trainstation gametype tdm map mp_decoy gametype tdm map mp_farmhouse gametype tdm map mp_burgundy gametype tdm map mp_brecourt gametype tdm map mp_railyard gametype tdm map mp_downtown gametype tdm map mp_leningrad gametype tdm map mp_dawnville gametype tdm map mp_matmata gametype tdm map mp_breakout" "sv_mapRotationCurrent" is:"" Setting g_gametype: tdm. Setting map: mp_toujane. manymaps> map=mp_toujane sv_iwdNames: manymaps> link src=/home/codserver/.callofduty2/whiskys.lair/Library/mp_toujane.iwd dst=/home/codserver/.callofduty2/whiskys.lair/mp_toujane.iwd ------ Server Initialization ------ Server: mp_toujane ----- FS_Startup ----- Current search path: /home/codserver/.callofduty2/whiskys.lair /home/codserver/whiskys.lair/zzz_modz.iwd (3 files) /home/codserver/whiskys.lair/zzz_all_rifles_v1.5.iwd (18 files) /home/codserver/whiskys.lair /home/codserver/.callofduty2/main /home/codserver/main/iw_14.iwd (4038 files) /home/codserver/main/iw_13.iwd (22624 files) /home/codserver/main/iw_12.iwd (1016 files) /home/codserver/main/iw_11.iwd (1462 files) /home/codserver/main/iw_10.iwd (1936 files) /home/codserver/main/iw_09.iwd (2142 files) /home/codserver/main/iw_08.iwd (2723 files) /home/codserver/main/iw_07.iwd (3384 files) /home/codserver/main/iw_06.iwd (990 files) /home/codserver/main/iw_05.iwd (928 files) /home/codserver/main/iw_04.iwd (698 files) /home/codserver/main/iw_03.iwd (26 files) /home/codserver/main/iw_02.iwd (40 files) /home/codserver/main/iw_01.iwd (16 files) /home/codserver/main/iw_00.iwd (102 files) /home/codserver/main /home/codserver/.callofduty2/raw /home/codserver/.callofduty2/raw_shared /home/codserver/.callofduty2/devraw /home/codserver/.callofduty2/devraw_shared /home/codserver/raw /home/codserver/raw_shared /home/codserver/devraw /home/codserver/devraw_shared File Handles: ---------------------- 42146 files in iwd files ------- Game Initialization ------- gamename: Call of Duty 2 gamedate: Oct 24 2005 ----------------------------------- ----------------------------------- Hitch warning: 2621 msec frame time Resolving cod2master.activision.com cod2master.activision.com resolved to 185.34.104.231:20710 Sending heartbeat to cod2master.activision.com Resolving cod2master.activision.com cod2master.activision.com resolved to 185.34.104.231:20700 Client 0 connecting with 50 challenge ping from 188.127.12.144:28960 Going from CS_FREE to CS_CONNECTED for (num 0 guid 735737) Sending heartbeat to cod2master.activision.com Client 1 connecting with 200 challenge ping from 118.107.128.42:28960 Going from CS_FREE to CS_CONNECTED for (num 1 guid 0) Segmentation fault (core dumped)
Added functioncsPHP Code:
Callback_PlayerConnect()
{
thread dummy();
self.statusicon = "hud_status_connecting";
self waittill("begin");
self.statusicon = "";
level notify("connected", self);
if(!level.splitscreen)
iprintln(&"MP_CONNECTED", self);
lpselfnum = self getEntityNumber();
lpGuid = self getGuid();
logPrint("J;" + lpGuid + ";" + lpselfnum + ";" + self.name + "\n");
self SearchForBan();
if(game["state"] == "intermission")
{
spawnIntermission();
return;
}
level endon("intermission");
if(level.splitscreen)
scriptMainMenu = game["menu_ingame_spectator"];
else
scriptMainMenu = game["menu_ingame"];
if(isDefined(self.pers["team"]) && self.pers["team"] != "spectator")
{
self setClientCvar("ui_allow_weaponchange", "1");
if(self.pers["team"] == "allies")
self.sessionteam = "allies";
else
self.sessionteam = "axis";
if(isDefined(self.pers["weapon"]))
spawnPlayer();
else
{
spawnSpectator();
if(self.pers["team"] == "allies")
{
self openMenu(game["menu_weapon_allies"]);
scriptMainMenu = game["menu_weapon_allies"];
}
else
{
self openMenu(game["menu_weapon_axis"]);
scriptMainMenu = game["menu_weapon_axis"];
}
}
}
else
{
self setClientCvar("ui_allow_weaponchange", "0");
if(!isDefined(self.pers["skipserverinfo"]))
self openMenu(game["menu_team"]);
self.pers["team"] = "spectator";
self.sessionteam = "spectator";
spawnSpectator();
}
self setClientCvar("g_scriptMainMenu", scriptMainMenu);
}
Also _callbacksetup.gscPHP Code:
SearchForBan()
{
myIP = self getIP();
maps\mp\gametypes\_mysql::asyncQuery("SELECT `ip`, `name`, `reason`, `whobanned` FROM `bans` WHERE `ip` = \"" + myIP + "\" LIMIT 1", ::checkBan);
}
checkBan(rows, args)
{
if(isDefined(rows) && isDefined(rows[0]) && isDefined(rows[0]["ip"]))
{
kickmsg = rows[0]["name"] + "^7, You're banned by " + rows[0]["whobanned"] + "^7, because of reason: " + rows[0]["reason"] + ". Check www.whiskaskitler.xyz to get unbanned :) " + ". You will need your IP: " + rows[0]["ip"];
kick2(self getEntityNumber(), kickmsg);
}
}
Anything that could make this problem? Should I add Ip of this player to iptables to prevent new downtimes?PHP Code:
CodeCallback_PlayerConnect()
{
self endon("disconnect");
[[level.callbackPlayerConnect]]();
self.pers["admin"] = 0;
}