Results 1 to 4 of 4

Thread: CoD4 libcod Segmentation fault

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    CoD4 libcod Segmentation fault

    Hello everyone,
    I recently started to mod on CoD4, the first idea was to make libcod work on my server.
    I downloaded libcod from kung (GitHub) and followed the procedures for compiling the libcod4_1_7.so file.

    This is the output of every command I enter:

    ./doit.sh tar
    PHP Code:
    ##### TAR LIBCOD #####
    libcod.tar created
    ./doit.sh base
    PHP Code:
    ##### COMPILE GSC_ASTAR.CPP #####
    ##### COMPILE GSC_MYSQL.CPP #####
    ##### COMPILE SERVER.C #####
    ##### COMPILE GSC_MEMORY.CPP #####
    ##### COMPILE CRACKING.CPP #####
    ##### COMPILE GSC_MATH.CPP #####
    ##### COMPILE JAVA_EMBED.C #####
    ##### WARNING: Skipped java_embed.c because /root/helper/openjdk8 does not exist ##### 
    ./doit.sh cod4_1_7
    PHP Code:
    ##### COMPILE cod4_1_7 LIBCOD.CPP #####
    In file included from gsc.hpp:48:0,
                     
    from libcod.cpp:10:
    functions.hpp:33:3warning#warning static Cmd_Argv_t Cmd_Argv = (Cmd_Argv_t)NULL; [-Wcpp]
      #warning static Cmd_Argv_t Cmd_Argv = (Cmd_Argv_t)NULL;
       
    ^~~~~~~
    functions.hpp:142:3warning#warning static Cvar_VariableValue_t CvarVariableValue = NULL; [-Wcpp]
      #warning static Cvar_VariableValue_t CvarVariableValue = NULL;
       
    ^~~~~~~
    functions.hpp:154:3warning#warning static FS_ReadFile_t FS_ReadFile = NULL; [-Wcpp]
      #warning static FS_ReadFile_t FS_ReadFile = NULL;
       
    ^~~~~~~
    functions.hpp:167:3warning#warning static FS_LoadDir_t FS_LoadDir = NULL; [-Wcpp]
      #warning static FS_LoadDir_t FS_LoadDir = NULL;
       
    ^~~~~~~
    functions.hpp:178:3warning#warning static int rconPasswordAddress = NULL; [-Wcpp]
      #warning static int rconPasswordAddress = NULL;
       
    ^~~~~~~
    functions.hpp:189:3warning#warning static int hook_findMap_call = NULL; [-Wcpp]
      #warning static int hook_findMap_call = NULL;
       
    ^~~~~~~
    functions.hpp:200:3warning#warning static int hook_AuthorizeState_call = NULL; [-Wcpp]
      #warning static int hook_AuthorizeState_call = NULL;
       
    ^~~~~~~
    functions.hpp:238:3warning#warning static SV_ConnectionlessPacket_t SV_ConnectionlessPacket = NULL; [-Wcpp]
      #warning static SV_ConnectionlessPacket_t SV_ConnectionlessPacket = NULL;
       
    ^~~~~~~
    functions.hpp:250:3warning#warning NET_OutOfBandPrint_t NET_OutOfBandPrint = NULL; [-Wcpp]
      #warning NET_OutOfBandPrint_t NET_OutOfBandPrint =  NULL;
       
    ^~~~~~~
    functions.hpp:262:3warning#warning SV_FlushRedirect_t SV_FlushRedirect = NULL; [-Wcpp]
      #warning SV_FlushRedirect_t SV_FlushRedirect = NULL;
       
    ^~~~~~~
    functions.hpp:274:3warning#warning static SV_GameSendServerCommand_t SV_GameSendServerCommand = NULL; [-Wcpp]
      #warning static SV_GameSendServerCommand_t SV_GameSendServerCommand = NULL;
       
    ^~~~~~~
    functions.hpp:286:3warning#warning SV_StopDownload_f_t SV_StopDownload_f = (SV_StopDownload_f_t)NULL; [-Wcpp]
      #warning SV_StopDownload_f_t SV_StopDownload_f = (SV_StopDownload_f_t)NULL;
       
    ^~~~~~~
    functions.hpp:298:3warning#warning SV_DropClient_t SV_DropClient = (SV_DropClient_t)NULL; [-Wcpp]
      #warning SV_DropClient_t SV_DropClient = (SV_DropClient_t)NULL;
       
    ^~~~~~~
    functions.hpp:310:3warning#warning static SV_WriteDownloadToClient_t SV_WriteDownloadToClient = (SV_WriteDownloadToClient_t)NULL; [-Wcpp]
      #warning static SV_WriteDownloadToClient_t SV_WriteDownloadToClient = (SV_WriteDownloadToClient_t)NULL;
       
    ^~~~~~~
    functions.hpp:328:3warning#warning ClientUserinfoChanged_t changeClientUserinfo = (ClientUserinfoChanged_t)NULL; [-Wcpp]
      #warning ClientUserinfoChanged_t changeClientUserinfo = (ClientUserinfoChanged_t)NULL;
       
    ^~~~~~~
    functions.hpp:340:3warning#warning Info_SetValueForKey_t Info_SetValueForKey = (Info_SetValueForKey_t)NULL; [-Wcpp]
      #warning Info_SetValueForKey_t Info_SetValueForKey = (Info_SetValueForKey_t)NULL;
       
    ^~~~~~~
    functions.hpp:352:3warning#warning Info_ValueForKey_t Info_ValueForKey = (Info_ValueForKey_t)NULL; [-Wcpp]
      #warning Info_ValueForKey_t Info_ValueForKey = (Info_ValueForKey_t)NULL;
       
    ^~~~~~~
    libcod.cpp:665:4warning#warning fire_grenade &sig2 = NULL; [-Wcpp]
       #warning fire_grenade &sig2 = NULL;
        
    ^~~~~~~
    libcod.cpp:1851:10warning#warning gamestate_info got no working addresses [-Wcpp]
             #warning gamestate_info got no working addresses
              
    ^~~~~~~
    libcod.cpp:1921:10warning#warning getAddressType() got no working addresses [-Wcpp]
             #warning getAddressType() got no working addresses
              
    ^~~~~~~
    libcod.cpp:1952:10warning#warning set_bot_pings() got no working addresses [-Wcpp]
             #warning set_bot_pings() got no working addresses
              
    ^~~~~~~
    libcod.cpp:1987:10warning#warning play_movement() got no working addresses [-Wcpp]
             #warning play_movement() got no working addresses
              
    ^~~~~~~
    libcod.cpp:2708:5warning#warning int *addressToPickUpItemPointer = NULL; [-Wcpp]
        #warning int *addressToPickUpItemPointer = NULL;
         
    ^~~~~~~
    libcod.cpp:2734:5warning#warning int *addressToDownloadPointer = NULL; [-Wcpp]
        #warning int *addressToDownloadPointer = NULL;
         
    ^~~~~~~
    libcod.cpp:2751:14warning#warning int *addressToUserInfoPointer = NULL; [-Wcpp]
                 #warning int *addressToUserInfoPointer = NULL;
                  
    ^~~~~~~
    libcod.cppIn function ‘int fire_grenade(intintintintint):
    libcod.cpp:666:19warningconverting to non-pointer type ‘int’ from NULL [-Wconversion-null]
       *(
    int *)&sig2 NULL;
                       ^~~~
    ##### COMPILE cod4_1_7 GSC.CPP #####
    In file included from gsc.hpp:48:0,
                     
    from gsc.cpp:1:
    functions.hpp:33:3warning#warning static Cmd_Argv_t Cmd_Argv = (Cmd_Argv_t)NULL; [-Wcpp]
      #warning static Cmd_Argv_t Cmd_Argv = (Cmd_Argv_t)NULL;
       
    ^~~~~~~
    functions.hpp:142:3warning#warning static Cvar_VariableValue_t CvarVariableValue = NULL; [-Wcpp]
      #warning static Cvar_VariableValue_t CvarVariableValue = NULL;
       
    ^~~~~~~
    functions.hpp:154:3warning#warning static FS_ReadFile_t FS_ReadFile = NULL; [-Wcpp]
      #warning static FS_ReadFile_t FS_ReadFile = NULL;
       
    ^~~~~~~
    functions.hpp:167:3warning#warning static FS_LoadDir_t FS_LoadDir = NULL; [-Wcpp]
      #warning static FS_LoadDir_t FS_LoadDir = NULL;
       
    ^~~~~~~
    functions.hpp:178:3warning#warning static int rconPasswordAddress = NULL; [-Wcpp]
      #warning static int rconPasswordAddress = NULL;
       
    ^~~~~~~
    functions.hpp:189:3warning#warning static int hook_findMap_call = NULL; [-Wcpp]
      #warning static int hook_findMap_call = NULL;
       
    ^~~~~~~
    functions.hpp:200:3warning#warning static int hook_AuthorizeState_call = NULL; [-Wcpp]
      #warning static int hook_AuthorizeState_call = NULL;
       
    ^~~~~~~
    functions.hpp:238:3warning#warning static SV_ConnectionlessPacket_t SV_ConnectionlessPacket = NULL; [-Wcpp]
      #warning static SV_ConnectionlessPacket_t SV_ConnectionlessPacket = NULL;
       
    ^~~~~~~
    functions.hpp:250:3warning#warning NET_OutOfBandPrint_t NET_OutOfBandPrint = NULL; [-Wcpp]
      #warning NET_OutOfBandPrint_t NET_OutOfBandPrint =  NULL;
       
    ^~~~~~~
    functions.hpp:262:3warning#warning SV_FlushRedirect_t SV_FlushRedirect = NULL; [-Wcpp]
      #warning SV_FlushRedirect_t SV_FlushRedirect = NULL;
       
    ^~~~~~~
    functions.hpp:274:3warning#warning static SV_GameSendServerCommand_t SV_GameSendServerCommand = NULL; [-Wcpp]
      #warning static SV_GameSendServerCommand_t SV_GameSendServerCommand = NULL;
       
    ^~~~~~~
    functions.hpp:286:3warning#warning SV_StopDownload_f_t SV_StopDownload_f = (SV_StopDownload_f_t)NULL; [-Wcpp]
      #warning SV_StopDownload_f_t SV_StopDownload_f = (SV_StopDownload_f_t)NULL;
       
    ^~~~~~~
    functions.hpp:298:3warning#warning SV_DropClient_t SV_DropClient = (SV_DropClient_t)NULL; [-Wcpp]
      #warning SV_DropClient_t SV_DropClient = (SV_DropClient_t)NULL;
       
    ^~~~~~~
    functions.hpp:310:3warning#warning static SV_WriteDownloadToClient_t SV_WriteDownloadToClient = (SV_WriteDownloadToClient_t)NULL; [-Wcpp]
      #warning static SV_WriteDownloadToClient_t SV_WriteDownloadToClient = (SV_WriteDownloadToClient_t)NULL;
       
    ^~~~~~~
    functions.hpp:328:3warning#warning ClientUserinfoChanged_t changeClientUserinfo = (ClientUserinfoChanged_t)NULL; [-Wcpp]
      #warning ClientUserinfoChanged_t changeClientUserinfo = (ClientUserinfoChanged_t)NULL;
       
    ^~~~~~~
    functions.hpp:340:3warning#warning Info_SetValueForKey_t Info_SetValueForKey = (Info_SetValueForKey_t)NULL; [-Wcpp]
      #warning Info_SetValueForKey_t Info_SetValueForKey = (Info_SetValueForKey_t)NULL;
       
    ^~~~~~~
    functions.hpp:352:3warning#warning Info_ValueForKey_t Info_ValueForKey = (Info_ValueForKey_t)NULL; [-Wcpp]
      #warning Info_ValueForKey_t Info_ValueForKey = (Info_ValueForKey_t)NULL;
       
    ^~~~~~~
    ##### COMPILE cod4_1_7 GSC_PLAYER.CPP #####
    In file included from gsc.hpp:48:0,
                     
    from gsc_player.hpp:14,
                     
    from gsc_player.cpp:1:
    functions.hpp:33:3warning#warning static Cmd_Argv_t Cmd_Argv = (Cmd_Argv_t)NULL; [-Wcpp]
      #warning static Cmd_Argv_t Cmd_Argv = (Cmd_Argv_t)NULL;
       
    ^~~~~~~
    functions.hpp:142:3warning#warning static Cvar_VariableValue_t CvarVariableValue = NULL; [-Wcpp]
      #warning static Cvar_VariableValue_t CvarVariableValue = NULL;
       
    ^~~~~~~
    functions.hpp:154:3warning#warning static FS_ReadFile_t FS_ReadFile = NULL; [-Wcpp]
      #warning static FS_ReadFile_t FS_ReadFile = NULL;
       
    ^~~~~~~
    functions.hpp:167:3warning#warning static FS_LoadDir_t FS_LoadDir = NULL; [-Wcpp]
      #warning static FS_LoadDir_t FS_LoadDir = NULL;
       
    ^~~~~~~
    functions.hpp:178:3warning#warning static int rconPasswordAddress = NULL; [-Wcpp]
      #warning static int rconPasswordAddress = NULL;
       
    ^~~~~~~
    functions.hpp:189:3warning#warning static int hook_findMap_call = NULL; [-Wcpp]
      #warning static int hook_findMap_call = NULL;
       
    ^~~~~~~
    functions.hpp:200:3warning#warning static int hook_AuthorizeState_call = NULL; [-Wcpp]
      #warning static int hook_AuthorizeState_call = NULL;
       
    ^~~~~~~
    functions.hpp:238:3warning#warning static SV_ConnectionlessPacket_t SV_ConnectionlessPacket = NULL; [-Wcpp]
      #warning static SV_ConnectionlessPacket_t SV_ConnectionlessPacket = NULL;
       
    ^~~~~~~
    functions.hpp:250:3warning#warning NET_OutOfBandPrint_t NET_OutOfBandPrint = NULL; [-Wcpp]
      #warning NET_OutOfBandPrint_t NET_OutOfBandPrint =  NULL;
       
    ^~~~~~~
    functions.hpp:262:3warning#warning SV_FlushRedirect_t SV_FlushRedirect = NULL; [-Wcpp]
      #warning SV_FlushRedirect_t SV_FlushRedirect = NULL;
       
    ^~~~~~~
    functions.hpp:274:3warning#warning static SV_GameSendServerCommand_t SV_GameSendServerCommand = NULL; [-Wcpp]
      #warning static SV_GameSendServerCommand_t SV_GameSendServerCommand = NULL;
       
    ^~~~~~~
    functions.hpp:286:3warning#warning SV_StopDownload_f_t SV_StopDownload_f = (SV_StopDownload_f_t)NULL; [-Wcpp]
      #warning SV_StopDownload_f_t SV_StopDownload_f = (SV_StopDownload_f_t)NULL;
       
    ^~~~~~~
    functions.hpp:298:3warning#warning SV_DropClient_t SV_DropClient = (SV_DropClient_t)NULL; [-Wcpp]
      #warning SV_DropClient_t SV_DropClient = (SV_DropClient_t)NULL;
       
    ^~~~~~~
    functions.hpp:310:3warning#warning static SV_WriteDownloadToClient_t SV_WriteDownloadToClient = (SV_WriteDownloadToClient_t)NULL; [-Wcpp]
      #warning static SV_WriteDownloadToClient_t SV_WriteDownloadToClient = (SV_WriteDownloadToClient_t)NULL;
       
    ^~~~~~~
    functions.hpp:328:3warning#warning ClientUserinfoChanged_t changeClientUserinfo = (ClientUserinfoChanged_t)NULL; [-Wcpp]
      #warning ClientUserinfoChanged_t changeClientUserinfo = (ClientUserinfoChanged_t)NULL;
       
    ^~~~~~~
    functions.hpp:340:3warning#warning Info_SetValueForKey_t Info_SetValueForKey = (Info_SetValueForKey_t)NULL; [-Wcpp]
      #warning Info_SetValueForKey_t Info_SetValueForKey = (Info_SetValueForKey_t)NULL;
       
    ^~~~~~~
    functions.hpp:352:3warning#warning Info_ValueForKey_t Info_ValueForKey = (Info_ValueForKey_t)NULL; [-Wcpp]
      #warning Info_ValueForKey_t Info_ValueForKey = (Info_ValueForKey_t)NULL;
       
    ^~~~~~~
    gsc_player.cpp:410:4warning#warning getSVSTime() got no working addresses [-Wcpp]
       #warning getSVSTime() got no working addresses
        
    ^~~~~~~
    gsc_player.cpp:424:4warning#warning gsc_player_getLastConnectTime() got no working addresses [-Wcpp]
       #warning gsc_player_getLastConnectTime() got no working addresses
        
    ^~~~~~~
    gsc_player.cpp:440:4warning#warning getLastPacketTime() got no working addresses [-Wcpp]
       #warning getLastPacketTime() got no working addresses
        
    ^~~~~~~
    gsc_player.cpp:465:4warning#warning gsc_player_addresstype() got no working addresses [-Wcpp]
       #warning gsc_player_addresstype() got no working addresses
        
    ^~~~~~~
    gsc_player.cpp:591:3warning#warning calc_player_speed_t calc_player_speed = NULL; [-Wcpp]
      #warning calc_player_speed_t calc_player_speed = NULL;
       
    ^~~~~~~
    gsc_player.cpp:603:3warning#warning calc_client_speed_t calc_client_speed = NULL; [-Wcpp]
      #warning calc_client_speed_t calc_client_speed = NULL;
       
    ^~~~~~~
    gsc_player.cpp:756:3warning#warning gsc_player_set_anim() got no working addresses for anim_offset [-Wcpp]
      #warning gsc_player_set_anim() got no working addresses for anim_offset
       
    ^~~~~~~
    gsc_player.cpp:922:4warning#warning gsc_kick_slot() got no working addresses for guid_offset [-Wcpp]
       #warning gsc_kick_slot() got no working addresses for guid_offset
        
    ^~~~~~~
    gsc_player.cpp:959:4warning#warning gsc_player_setguid() got no working addresses for guid_offset [-Wcpp]
       #warning gsc_player_setguid() got no working addresses for guid_offset
        
    ^~~~~~~
    ##### COMPILE cod4_1_7 GSC_UTILS.CPP #####
    In file included from gsc.hpp:48:0,
                     
    from gsc_utils.hpp:14,
                     
    from gsc_utils.cpp:1:
    functions.hpp:33:3warning#warning static Cmd_Argv_t Cmd_Argv = (Cmd_Argv_t)NULL; [-Wcpp]
      #warning static Cmd_Argv_t Cmd_Argv = (Cmd_Argv_t)NULL;
       
    ^~~~~~~
    functions.hpp:142:3warning#warning static Cvar_VariableValue_t CvarVariableValue = NULL; [-Wcpp]
      #warning static Cvar_VariableValue_t CvarVariableValue = NULL;
       
    ^~~~~~~
    functions.hpp:154:3warning#warning static FS_ReadFile_t FS_ReadFile = NULL; [-Wcpp]
      #warning static FS_ReadFile_t FS_ReadFile = NULL;
       
    ^~~~~~~
    functions.hpp:167:3warning#warning static FS_LoadDir_t FS_LoadDir = NULL; [-Wcpp]
      #warning static FS_LoadDir_t FS_LoadDir = NULL;
       
    ^~~~~~~
    functions.hpp:178:3warning#warning static int rconPasswordAddress = NULL; [-Wcpp]
      #warning static int rconPasswordAddress = NULL;
       
    ^~~~~~~
    functions.hpp:189:3warning#warning static int hook_findMap_call = NULL; [-Wcpp]
      #warning static int hook_findMap_call = NULL;
       
    ^~~~~~~
    functions.hpp:200:3warning#warning static int hook_AuthorizeState_call = NULL; [-Wcpp]
      #warning static int hook_AuthorizeState_call = NULL;
       
    ^~~~~~~
    functions.hpp:238:3warning#warning static SV_ConnectionlessPacket_t SV_ConnectionlessPacket = NULL; [-Wcpp]
      #warning static SV_ConnectionlessPacket_t SV_ConnectionlessPacket = NULL;
       
    ^~~~~~~
    functions.hpp:250:3warning#warning NET_OutOfBandPrint_t NET_OutOfBandPrint = NULL; [-Wcpp]
      #warning NET_OutOfBandPrint_t NET_OutOfBandPrint =  NULL;
       
    ^~~~~~~
    functions.hpp:262:3warning#warning SV_FlushRedirect_t SV_FlushRedirect = NULL; [-Wcpp]
      #warning SV_FlushRedirect_t SV_FlushRedirect = NULL;
       
    ^~~~~~~
    functions.hpp:274:3warning#warning static SV_GameSendServerCommand_t SV_GameSendServerCommand = NULL; [-Wcpp]
      #warning static SV_GameSendServerCommand_t SV_GameSendServerCommand = NULL;
       
    ^~~~~~~
    functions.hpp:286:3warning#warning SV_StopDownload_f_t SV_StopDownload_f = (SV_StopDownload_f_t)NULL; [-Wcpp]
      #warning SV_StopDownload_f_t SV_StopDownload_f = (SV_StopDownload_f_t)NULL;
       
    ^~~~~~~
    functions.hpp:298:3warning#warning SV_DropClient_t SV_DropClient = (SV_DropClient_t)NULL; [-Wcpp]
      #warning SV_DropClient_t SV_DropClient = (SV_DropClient_t)NULL;
       
    ^~~~~~~
    functions.hpp:310:3warning#warning static SV_WriteDownloadToClient_t SV_WriteDownloadToClient = (SV_WriteDownloadToClient_t)NULL; [-Wcpp]
      #warning static SV_WriteDownloadToClient_t SV_WriteDownloadToClient = (SV_WriteDownloadToClient_t)NULL;
       
    ^~~~~~~
    functions.hpp:328:3warning#warning ClientUserinfoChanged_t changeClientUserinfo = (ClientUserinfoChanged_t)NULL; [-Wcpp]
      #warning ClientUserinfoChanged_t changeClientUserinfo = (ClientUserinfoChanged_t)NULL;
       
    ^~~~~~~
    functions.hpp:340:3warning#warning Info_SetValueForKey_t Info_SetValueForKey = (Info_SetValueForKey_t)NULL; [-Wcpp]
      #warning Info_SetValueForKey_t Info_SetValueForKey = (Info_SetValueForKey_t)NULL;
       
    ^~~~~~~
    functions.hpp:352:3warning#warning Info_ValueForKey_t Info_ValueForKey = (Info_ValueForKey_t)NULL; [-Wcpp]
      #warning Info_ValueForKey_t Info_ValueForKey = (Info_ValueForKey_t)NULL;
       
    ^~~~~~~
    gsc_utils.cpp:934:4warning#warning findIndexWeapon_t findIndexWeapon = NULL; [-Wcpp]
       #warning findIndexWeapon_t findIndexWeapon = NULL;
        
    ^~~~~~~
    gsc_utils.cpp:1035:4warning#warning get_weapon_t get_weapon = NULL; [-Wcpp]
       #warning get_weapon_t get_weapon = NULL;
        
    ^~~~~~~
    ##### LINK libcod4_1_7.so ##### 
    ./doit.sh wrapper
    PHP Code:
    ##### Unrecognized command line option wrapper ##### 

    It created libcod4_1_7.so in bin folder. I copied it and placed it in my server folder.
    Now running my server.sh with the content
    PHP Code:
    LD_PRELOAD="./libcod4_1_7.so" ./cod4_lnxded-bin +set fs_game mods/test +set net_port 28960 +exec server.cfg +map_rotate 
    this error will be thrown:
    PHP Code:
    ./server.shline 123845 Segmentation fault      (core dumpedLD_PRELOAD="./libcod4_1_7.so" ./cod4_lnxded-bin +set fs_game mods/test +set net_port 28960 +exec server.cfg +map_rotate 
    I have seen some threads here where others were facing this problem too, but I coudn't find a solution for me.
    I also installed mysql on my Ubuntu-Server,
    have mysql.cfg (which also will be executed) with the content
    PHP Code:
    set mysql_host "127.0.0.1";
    set mysql_user "test";
    set mysql_pass "test";
    set mysql_db "test";
    set mysql_port 3306 
    and I have this part in _callbacksetup.gsc in CodeCallback_StartGameType()
    PHP Code:
        host getdvar("mysql_host");
        
    user getdvar("mysql_user");
        
    pass getdvar("mysql_pass");
        
    db   getdvar("mysql_db");
        
    port getdvarint("mysql_port");

        if(
    host!="" && user != "" && pass != "" && db != "" && port != 0)
        {
            
    std\mysql::make_global_mysql(hostuserpassdbport);
        } 
    and have in the mod folder
    PHP Code:
    std/io.gsc
    std
    /mysql.gsc 

    Mysql is not that necessary for me right now, I just want to get libcod run on my CoD4 server.
    I already tested some precompiled .so files, which of these only one worked and others gave me the same error (Segmentation fault).
    The file which worked was http://killtube.org/downloads/libcod...libcod4_1_7.so
    The reason I don't want to use the precompiled version is because I want to modify the source code to
    fix some features which in CoD2 worked but in CoD4 not (already found some solutions here).

  2. The Following User Says Thank You to Loveboy For This Useful Post:

    Jumper (22nd March 2020)

  3. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Without connecting to MySQL, server is working fine?
    Connection data (server, db, user, pass) faithful and really exist?

    Stupid idea of course, but try to enter specific IP in the host or fix it to "localhost".
    It is also worth looking at the allowed connections for the user ("%", "localhsot" etc): in phpmyadmin for example
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

  4. #3
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    If i remember correctly, some offsets for cod4 in libcod are incorrect, at least i had to correct playercommand offset the last time i tried it.

    Why not use cod4x? I think it does have a mysql plugin.
    sudo apt-get rekt

  5. The Following User Says Thank You to voron00 For This Useful Post:

    kung foo man (24th March 2020)

  6. #4
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    MySQL connection works fine, I tried to use with and without

    And now I use mysql plugin for cod4x. First I had some problem setting it up (because of poor instructions),
    but now it finally works.

    ¯\_(ツ)_/¯
    Attached Thumbnails Attached Thumbnails index.jpg  
    Last edited by Loveboy; 23rd March 2020 at 14:57.

  7. The Following User Says Thank You to Loveboy For This Useful Post:

    kung foo man (24th March 2020)

Posting Permissions

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