PDA

View Full Version : lib cod4



Wingzor
4th February 2015, 14:20
hi guys,

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


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


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)

Mitch
4th February 2015, 14:48
> [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.

Wingzor
4th February 2015, 14:50
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 ?

Mitch
4th February 2015, 14:53
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?

Wingzor
4th February 2015, 15:02
QUERY LIMIT: Querylimiting is enabled

yes query limited version

Mitch
4th February 2015, 15:06
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