still doesnt workPHP Code:
export LD_PRELOAD="$/path/to/lib/libcod2_1_3.so"
i did this
i can run this without screen but i cant run with screen :/PHP Code:
LD_LIBRARY_PATH=. LD_PRELOAD="/path/to/lib/libcod2_1_3.so":$LD_LIBRARY_PATH
Printable View
still doesnt workPHP Code:
export LD_PRELOAD="$/path/to/lib/libcod2_1_3.so"
i did this
i can run this without screen but i cant run with screen :/PHP Code:
LD_LIBRARY_PATH=. LD_PRELOAD="/path/to/lib/libcod2_1_3.so":$LD_LIBRARY_PATH
Try using script i posted earlier but just replace your path/fs_game.
cant load libcod in screen :S
Show us the exact script you are using, not some general shit
I wanna point you towards my signature.
i am using like this , but i cant preload libcod with sh script so i cant run with screen.. always giving cant preload libcod error
but when i try like this i can preload libcod with sh script (its give preload error again but yet preloading :D) but cant preload in screen :D maybe iznogod is right its about me :DPHP Code:
#!/bin/bash
export LD_PRELOAD="$/path/to/lib/libcod2_1_3.so"
PARAMS="+set net_ip +set.. +set... +set sv_cracked 1"
"./cod2_lnxded" "$PARAMS"
PHP Code:
LD_LIBRARY_PATH=. LD_PRELOAD="/path/to/lib/libcod2_1_3.so":$LD_LIBRARY_PATH
This is the my cod2_lnxded:
Both cod2_lnxded and your cod2_lnxded_1_3_nodelay_va_loc binary must be chmodded to at least 755 or 777.PHP Code:
#!/bin/bash
LD_PRELOAD="/path/to/libs/libcod2_1_3.so" ./cod2_lnxded_1_3_nodelay_va_loc $@
Now you can start your server like before without libcod.
Compiled the .so yourself or using some downloaded one?
And show your start script
I use the downloaded file
PHP Code:
#!/bin/bash
export LD_PRELOAD="$HOME/cod2_1_3/libcod2_1_3.so"
PARAMS="+set fs_homepath /home/name/.callofduty2_1_3 +set fs_game main +set dedicated 2 +set net_port 28962 +exec server.cfg +set sv_cracked 1"
while true ; do
"$HOME/cod2_1_3/cod2_lnxded" "$PARAMS"
echo "Restarting the server..."
sleep 1
done
exit 1