Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Cod4 install libcod and make the mod

  1. #1
    ... connecting
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Cod4 install libcod and make the mod

    Hello! I trying to install your libcod, but any files is missing, or i don't know...

    Pls help me, how to use to githube scripts?
    ( https://github.com/kungfooman/libcod )
    Where I find this "read me", or install guide.

    And I where find the files
    ( http://killtube.org/showthread.php?1...-MySQL-problem )
    There I find this files, thats is not found for me server.
    libmysqlclient.a libmysqlclient.so libmysql.so.16
    libmysqlclient_r.so libmysql.so libmysql.so.16.0.0

    And if I finish this install, i trying to make a mod with mysql commands...
    Because I run my server with my now files and no error, but not work this...
    mysql = std\mysql::mysql_real_connect(std\mysql::mysql_ini t(), "ip", "uss", "pw", "db", "port");
    std\mysql::mysql_query(mysql, "INSERT INTO `clansys`.`players` (`id` ,`name` ,`score` ,`kills`)VALUES (NULL , 'a', 'a', 'a');");
    std\mysql::mysql_close(mysql);

    Thank you, and Merry Mristmass!

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Hey, do you have main\std\mysql.gsc already?

    http://killtube.org/downloads/cod2/e.../std/mysql.gsc
    timescale 0.01

  3. The Following User Says Thank You to kung foo man For This Useful Post:

    balaz98 (28th December 2013)

  4. #3
    ... connecting
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Still does not work

    I would like to request a complete file map, file to the correct place.
    COD4 would be used to create a way to ask for a sample of what you need plus mode put into it.

  5. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    I have no clue whats actually wrong, since you didn't post any errors. Which commands did you try yet and how did they fail (post output)?

    All needed commands are written on the start page: https://github.com/kungfooman/libcod (you dont need to compile it, just use the binaries)

    Files you need: libcod.so (for your CoD version) and the helper .gsc files (just std\mysql.gsc in your case)
    timescale 0.01

  6. The Following User Says Thank You to kung foo man For This Useful Post:

    balaz98 (28th December 2013)

  7. #5
    ... connecting
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    All right.
    The problem is that the error does not require a server.
    I do not know where to put the files you download, and what files you need CoD4 7.1.
    Not to be placed in the file linux / home/cod4 / inside?

    I'm sorry if I sound stupid but we are looking for a solution for several days, now found, but we can not put into operation.
    Last edited by balaz98; 28th December 2013 at 22:22.

  8. #6
    ... connecting
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Actually I do not have such folder, nor can I find between downloads.
    libc / mysql

    These files can be included, these results do not download.
    libmysqlclient.a
    libmysqlclient.so
    libmysql.so.16
    libmysqlclient_r.so
    libmysql.so
    libmysql.so.16.0.0
    This can be a source of error.

    The mysql.gsc placed here.
    cod4/mods/MyMod/std/mysql.gsc

    This is the test script:
    #include std\mysql; // at the beginning

    mysql_test () {
    mysql_init = mysql ();
    ret = mysql_real_connect (mysql, "---", "---", "---", "---", "---") // correctly completed course
    if (ret) {
    iprintln("errno =" + mysql_errno (mysql) + "error ='' '+ mysql_error (mysql)); // does not show anything
    mysql_close(mysql);
    }
    ret = mysql_query (mysql, "INSERT INTO` players `(` id `,` name `,` score `,` kills `) VALUES (NULL, '0 ', '0', '0 ')") / / verifying correct
    mysql_close(mysql);
    }
    The game server does not return an error log screen shows no error, server works, you can play it, mysql query ineffective on the board.
    Last edited by balaz98; 29th December 2013 at 09:19.

  9. #7
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Quote Originally Posted by balaz98 View Post
    The game server does not return an error log screen shows no error, server works, you can play it, mysql query ineffective on the board.
    You should see a starting message like:

    Code:
    > [INFO] Compiled for: CoD2 1.0
    Compiled: Dec 17 2013 19:42:16
    > [INFO] value of closer=08111d32
    > [PLUGIN LOADED]
    CoD2 MP 1.0 build linux-i386 Oct 24 2005
    Otherwise some LD error/warning

    How does your start script look like?
    timescale 0.01

  10. #8
    ... connecting
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    No such message CoD4 log in screen.
    However, do not start an error.
    I use startup:
    LD_LIBRARY_PATH="/home/libcod/" LD_PRELOAD="./libcod4_1_7.so" screen -AdmSL cod4server ./start +set dedicated "2" +set fs_basepath "/home/cod4/" +set fs_homepath "/home/cod4/" +set fs_game "mods/MyMod" +map mp_strike
    Last edited by balaz98; 29th December 2013 at 19:48.

  11. #9
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    That's now easier than expected ^^

    You basically try to load libcod.so in the process of "screen". You need to start a server.sh INSIDE of screen, which LD_PRELOAD's libcod.so for "cod4-lnxded-bin" then (make sure you dont use the script infront of cod4-servers)


    helper.sh
    Code:
    LD_LIBRARY_PATH="/home/libcod/" LD_PRELOAD="./libcod4_1_7.so" ./cod4-lnxded-bin +set dedicated "2" +set fs_basepath  "/home/cod4/" +set fs_homepath "/home/cod4/" +set fs_game "mods/MyMod"  +map mp_strike
    server.sh
    Code:
    screen  -AdmSL helper.sh
    timescale 0.01

  12. #10
    ... connecting
    Join Date
    Dec 2013
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts
    A short time later, I realized what a mistake, thank you.
    However, now I see this:
    > [WARNING] Compiled for: 417
    Compiled: Dec 28 2013 20:04:50
    > [INFO] = value of closer 080c206e
    ./start: symbol lookup error: ./libcod4_1_7.so: undefined symbol: cracking_hook_function

Tags for this Thread

Posting Permissions

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