PDA

View Full Version : Lib error



bulent
8th February 2017, 19:02
lib error my server 1.0 I think test.sh wrong

by.sh

#!/bin/bash

sv_maxclients="32"
fs_game="/home/cod2/Setup/Data/test"
fs_homepath="/home/cod2/Setup/Data"
cod="/home/cod2/Setup/Data/cod2_lnxded"
com_hunkMegs="256"
config="by.cfg"
cracked="1"
net_port="28000"


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 fs_basepath \"$fs_homepath\" "\
"+exec $config"

LD_PRELOAD=/home/cod2/Setup/Data/libcod/bin $cod $args +set g_gametype tdm +map mp_toujane


consol

root@host-132:/home/cod2/Setup/Data/libcod# ./by.sh cod2_1_0
ERROR: ld.so: object '/home/cod2/Setup/Data/libcod/bin' from LD_PRELOAD cannot be preloaded (cannot read file data): ignored.
CoD2 MP 1.3 build linux-i386 Jun 23 2006
----- FS_Startup -----
Current language: english
Current search path:
/home/cod2/Setup/Data//home/cod2/Setup/Data/test
/home/cod2/Setup/Data/main/iw_14.iwd (4038 files)
/home/cod2/Setup/Data/main/iw_13.iwd (22624 files)
/home/cod2/Setup/Data/main/iw_12.iwd (1016 files)
/home/cod2/Setup/Data/main/iw_11.iwd (1462 files)
/home/cod2/Setup/Data/main/iw_10.iwd (1936 files)
/home/cod2/Setup/Data/main/iw_09.iwd (2142 files)
/home/cod2/Setup/Data/main/iw_08.iwd (2723 files)
/home/cod2/Setup/Data/main/iw_07.iwd (3384 files)
/home/cod2/Setup/Data/main/iw_06.iwd (990 files)
/home/cod2/Setup/Data/main/iw_05.iwd (928 files)
/home/cod2/Setup/Data/main/iw_04.iwd (698 files)
/home/cod2/Setup/Data/main/iw_03.iwd (26 files)
/home/cod2/Setup/Data/main/iw_02.iwd (40 files)
/home/cod2/Setup/Data/main/iw_01.iwd (16 files)
/home/cod2/Setup/Data/main/iw_00.iwd (102 files)
/home/cod2/Setup/Data/main
/home/cod2/Setup/Data/raw
/home/cod2/Setup/Data/raw_shared
/home/cod2/Setup/Data/devraw
/home/cod2/Setup/Data/devraw_shared
/home/cod2/Setup/Data/main/localized_english_iw10.iwd (414 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw09.iwd (98 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw08.iwd (8 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw07.iwd (1014 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw06.iwd (3110 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw05.iwd (5310 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw04.iwd (6240 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw03.iwd (6580 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw02.iwd (6404 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw01.iwd (5510 files)
localized assets iwd file for english
/home/cod2/Setup/Data/main/localized_english_iw00.iwd (4764 files)
localized assets iwd file for english

IzNoGoD
8th February 2017, 19:27
LD_PRELOAD="relative/path/to/libcod2_1_3.so" $cod $args +set g_gametype tdm +map mp_toujane

Do you even read?

bulent
8th February 2017, 19:39
Yes but I did not understand :confused:

bulent
8th February 2017, 19:59
Do you even read?
What exactly should be?

IzNoGoD
8th February 2017, 20:07
it should be the relative path to your libcod.so file.

bulent
8th February 2017, 20:39
install errors


./doit.sh base

[PHP]#root@host-132:/home/cod2/Setup/Data/libcod# ./doit.sh base
##### Unrecognized command line option base #####
[PHP]#


by.sh

[PHP]#LD_PRELOAD=/home/cod2/Setup/Data/libcod2_1_0.so $cod $args +set g_gametype tdm +map mp_toujane[PHP]#


consol

[PHP]#root@host-132:/home/cod2/Setup/Data/libcod# ./by.sh
> [INFO] Compiled for: CoD2 1.0
Compiled: Jan 17 2015 21:15:59
> [INFO] value of closer=080e4100
> [INFO] value of download=6572746e
./by.sh: line 23: 19740 Segmentation fault (core dumped) LD_PRELOAD=/home/cod2/Setup/Data/libcod2_1_0.so $cod $args +set g_gametype tdm +map mp_toujane[PHP]#

1260

1261

IzNoGoD
8th February 2017, 21:39
Try using voron's github repo, it's way more up-to-date than kung's.

And skip the doit.sh base step, it's deprecated.

bulent
9th February 2017, 01:17
I reinstall vps and again install libcod now work but rcon block and fake player working :( not block libcod

consol

root@host-132:~/cod2/libcod# ./server.sh
> [LIBCOD] Compiled for: CoD2 1.0
> [LIBCOD] Compiled Feb 9 2017 03:48:23 using GCC 4.8.4
> [PLUGIN LOADED]
CoD2 MP 1.0 build linux-i386 Oct 24 2005
----- FS_Startup -----
Current search path:
/root/cod2/main/OTTAMAN.iwd (93 files)
/root/cod2/main/iw_14.iwd (4038 files)
/root/cod2/main/iw_13.iwd (22624 files)
/root/cod2/main/iw_12.iwd (1016 files)
/root/cod2/main/iw_11.iwd (1462 files)
/root/cod2/main/iw_10.iwd (1936 files)
/root/cod2/main/iw_09.iwd (2142 files)
/root/cod2/main/iw_08.iwd (2723 files)
Bad rcon from 85.106.127.118:2269:
status
Bad rcon from 85.106.127.118:2269:
status
Bad rcon from 85.106.127.118:2269:
status
Bad rcon from 85.106.127.118:2269:
status
Bad rcon from 85.106.127.118:2269:
status
Bad rcon from 85.106.127.118:2269:
status
Bad rcon from 85.106.127.118:2269:
status
Bad rcon from 85.106.127.118:2269:

voron00
9th February 2017, 04:27
The rcon ratelimiter does not block invalid rcon attemts completely, it only prevents them to make an aplification attack (this indeed prevents some bruteforcing but not completely eliminates it)
1262
Also this messages will only appear only if you got developer 1 enabled. You shouldn't worry if you have a decent rcon password.

IzNoGoD
9th February 2017, 04:52
Fake player blocking requires a custom script.

kung foo man
10th February 2017, 00:34
Like seen here https://killtube.org/showthread.php?1767-Q3-FIX-Q3-fake-clients-fix

bulent
10th February 2017, 15:45
How UDP PACKET limitation? Example this ip atacker :193.2.31.102 this my ip :285.112.75.47 atack my server port:28966 UDP atack length 1024
I want max udp limitation?



15:30:35.186671 IP 193.2.31.102.58574 > 285.112.75.47.28966: UDP, length 1024
15:30:35.187268 IP 193.2.31.102.58568 > 285.112.75.47.28966: UDP, length 1024
15:30:35.188366 IP 193.2.31.102.58493 > 285.112.75.47.28966: UDP, length 1024
15:30:35.188606 IP 193.2.31.102.58623 > 285.112.75.47.28966: UDP, length 1024
15:30:35.188974 IP 193.2.31.102.58547 > 285.112.75.47.28966: UDP, length 1024
15:30:35.189194 IP 193.2.31.102.58789 > 285.112.75.47.28966: UDP, length 1024
15:30:35.190350 IP 193.2.31.102.58757 > 285.112.75.47.28966: UDP, length 1024

maxdamage99
10th February 2017, 18:49
How UDP PACKET limitation? Example this ip atacker :193.2.31.102 this my ip :285.112.75.47 atack my server port:28966 UDP atack length 1024
I want max udp limitation?



15:30:35.186671 IP 193.2.31.102.58574 > 285.112.75.47.28966: UDP, length 1024
15:30:35.187268 IP 193.2.31.102.58568 > 285.112.75.47.28966: UDP, length 1024
15:30:35.188366 IP 193.2.31.102.58493 > 285.112.75.47.28966: UDP, length 1024
15:30:35.188606 IP 193.2.31.102.58623 > 285.112.75.47.28966: UDP, length 1024
15:30:35.188974 IP 193.2.31.102.58547 > 285.112.75.47.28966: UDP, length 1024
15:30:35.189194 IP 193.2.31.102.58789 > 285.112.75.47.28966: UDP, length 1024
15:30:35.190350 IP 193.2.31.102.58757 > 285.112.75.47.28966: UDP, length 1024
Try iptables

IzNoGoD
10th February 2017, 19:52
libcod has received an update about a year ago with some udp packet limitation in it. Use voron's repository for that.

Paho
14th February 2017, 11:24
ask Letlev
http://cloud-3.steamusercontent.com/ugc/93850558424225537/157C20E9E6EC59AD0D5E6C6C7EE604403883BFB6/