View Full Version : Server-Extension for Linux CoD2 1.2 / 1.3 and CoD4 1.7 Source/Binaries
kung foo man
15th August 2013, 13:41
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:
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
Mitch
16th August 2013, 12:20
The source code has got two problems.
jsonrpc/include/jsonrpc.h: Change line 16 to:
#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:
#include <execinfo.h> // stacktrace!
execinfo.h is missing. But according to kung you don't need it. (it is only for better debugging)
serthy
17th August 2013, 09:04
sexy. miss the [donate] button
kung foo man
17th August 2013, 10:32
If you want to donate something: PayPal: lama12345@gmail.com <3 :D
Mitch
19th August 2013, 20:54
I have a few modifications that fixes a few compile errors in libcod2.cpp
After line 28 add:
extern char **__environ;
Fixes: '__environ' was not declared in this scope
Replace line 931 with:
int hook_pthread_self(void)
Fixes: invalid conversion from 'int' to 'pthread_t {aka pthread*}'
On line 1019 you have got this:
if (stream->_fileno <= 4)
printf("_fileno=%d ", stream->_fileno);
Replace with:
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.
kung foo man
30th August 2013, 03:09
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. :D
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.