Results 1 to 6 of 6

Thread: lib cod4

  1. #1
    ... connecting
    Join Date
    Feb 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    lib cod4

    hi guys,

    we are currently trying to get the lib working for cod4.
    even tho the lib gets loaded

    Code:
    LD_LIBRARY_PATH=. LD_PRELOAD=libcod4_1_7.so ./cod4_lnxded +set fs_homepath /home/cod4 +set fs_game mods/rs_dr +set net_port 28951 +set developer 1 +set sv_punkbuster 0 +set ui_maxclients 26 +set sv_maxclients 26 +exec server.cfg +exec mysql.cfg +map mp_deathrun_backlot
    we keep getting errors on the closer() functions

    Code:
    type int is not a vector: (file 'test/mysql.gsc', line 77)
     mysql = closer(100);
    this is the output of the load:

    > [WARNING] Compiled for: COD_VERSION
    Compiled: Aug 30 2013 21:50:12
    > [INFO] value of closer=00000000

    also for the latest pre-compiled build

    > [WARNING] Compiled for: 417
    Compiled: Jan 17 2015 21:16:13
    > [INFO] value of closer=00000000
    > [PLUGIN LOADED]

    not sure if 00000000 is OK

    any clue or suggestions ?

    would appreciate a hand to get this mysql feature working.

    tnx in advance,

    cheers,

    Wingzor

    (xfire: evilphinal)
    Last edited by Wingzor; 4th February 2015 at 13:48.

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    > [WARNING] Compiled for: 417
    this means this binary was compiled for cod4 1.7

    > [INFO] value of closer=00000000
    This is the reason that isn't working. Closer function wasn't loaded.

  3. #3
    ... connecting
    Join Date
    Feb 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is there a way i can make this work with 1.7x ?

    if not > do i have to load other plugins/files to make the closer function work ?

  4. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Wingzor View Post
    is there a way i can make this work with 1.7x ?

    if not > do i have to load other plugins/files to make the closer function work ?
    I just checked. CoD4 also should use real functions.
    But not all functions listed on the script documentation work for cod4.

    http://znation.nl/cod4script/

    Is your binary the original version or the query limiter version?

  5. #5
    ... connecting
    Join Date
    Feb 2015
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    QUERY LIMIT: Querylimiting is enabled

    yes query limited version

  6. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Wingzor View Post
    QUERY LIMIT: Querylimiting is enabled

    yes query limited version
    Then you need to build that version. There are small differences between those two versions (including closer).
    Try this version: http://znation.nl/libcod/ubuntu/libcod4_1_7_l.so

    ./doit.sh cod4_1_7_l

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

    kung foo man (4th February 2015)

Posting Permissions

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