Results 1 to 6 of 6

Thread: Server-Extension for Linux CoD2 1.2 / 1.3 and CoD4 1.7 Source/Binaries

  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts

    Server-Extension for Linux CoD2 1.2 / 1.3 and CoD4 1.7 Source/Binaries

    The actual source code (you don't need this, if you don't want to learn/add functions):
    http://dbg.killtube.org/libcod_src/


    The binaries with the memory shell (cod2 memory displayed in web browser):
    http://dbg.killtube.org/libcod/

    Example server.sh:

    Code:
    export LD_LIBRARY_PATH="/root/helper/game_cod2/libs/:/root/helper/game_cod2/libs/mysql"
    export LD_PRELOAD="/root/helper/game_cod2/libs/libcod2_1_2.so"
    
    ./cod2_lnxded_1.2_patch_va_loc +set g_gametype tdm etc.
    GitHub repository: https://github.com/kungfooman/libcod
    timescale 0.01

  2. The Following 8 Users Say Thank You to kung foo man For This Useful Post:

    BlancO (22nd September 2013),edems96 (20th August 2013),IzNoGoD (16th August 2013),Mitch (15th August 2013),php (17th August 2013),randall (15th August 2013),RobsoN (15th August 2013),serthy (17th August 2013)

  3. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    The source code has got two problems.

    jsonrpc/include/jsonrpc.h: Change line 16 to:
    PHP Code:
    #include "../../json/src/json_object_private.h" 
    (now it doesn't use kung's home directory)

    In libcod2.cpp on 11 you have got this:
    PHP Code:
    #include <execinfo.h> // stacktrace! 
    execinfo.h is missing. But according to kung you don't need it. (it is only for better debugging)

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

    IzNoGoD (16th August 2013)

  5. #3
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    sexy. miss the [donate] button

  6. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    If you want to donate something: PayPal: lama12345@gmail.com <3
    timescale 0.01

  7. #5
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    I have a few modifications that fixes a few compile errors in libcod2.cpp

    After line 28 add:
    PHP Code:
    extern char **__environ
    Fixes: '__environ' was not declared in this scope

    Replace line 931 with:
    PHP Code:
    int hook_pthread_self(void
    Fixes: invalid conversion from 'int' to 'pthread_t {aka pthread*}'

    On line 1019 you have got this:
    PHP Code:
    if (stream->_fileno <= 4)
    printf("_fileno=%d "stream->_fileno); 
    Replace with:
    PHP Code:
        int _fileno fileno(stream);
        if (
    _fileno <= 4)
        
    printf("_fileno=%d "_fileno); 
    Fixes: 'FILE' has no member named '_fileno'.

    Now I can compile all the files on freeBSD, but i have got currently problems with linking the files.

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

    kung foo man (20th August 2013)

  9. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    I've fixed the stuff mentioned here, kicked out the useless JSON-dependency and made it use the system MySQL library.

    Pushed it all to the GitHub repository: https://github.com/kungfooman/libcod

    This will make the social developing easier, everybody can just pull everything, make some changes and request a merge. Though I'm pretty new to git so we can just learn new skills.
    timescale 0.01

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

    Mitch (30th August 2013)

Posting Permissions

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