PDA

View Full Version : setup libcod with server.sh



OwNeR
12th June 2014, 21:23
Hello everyone,
So i was trying to setup libcod for multiple servers.
Problem starts at server.sh
Current server.sh:

cod2="root/cod2/gamecreate/callofduty2/cod2_lnxded"

fs_homepath='root/cod2/gamecreate/callofduty2'
fs_game='sra_dr/4'
net_port="28970"
com_hunkMegs="256"
sv_maxclients="16"
sv_punkbuster="0"
developer="0"
config='drsrvrcfg.cfg'
cracked='1'

args=\
"+set fs_homepath \"$fs_homepath\" "\
"+set sv_cracked $cracked "\
"+set fs_game $fs_game "\
"+set net_port $net_port "\
"+set com_hunkmegs $com_hunkMegs "\
"+set sv_maxclients $sv_maxclients "\
"+set sv_punkbuster $sv_punkbuster "\
"+set developer $developer "\
"+exec $config"

export LD_LIBRARY_PATH=".:/root/cod2/gamecreate/callofduty2/library:/root/cod2/gamecreate/callofduty2/library/mysql"
LD_PRELOAD="/root/cod2/gamecreate/callofduty2/libcod_1_3.so" $cod2 $args
What should i do?

kung foo man
12th June 2014, 21:42
What's the actual error?

OwNeR
13th June 2014, 13:17
i have problems with running old libcod version (disableGlobalPlayerCollision doesn't work properly)

IzNoGoD
13th June 2014, 13:59
did you try it with setcontents(256) on player spawn?

OwNeR
13th June 2014, 14:20
nop i didn't, will test that

OwNeR
14th June 2014, 20:35
its working, thank you :)