I have a problem. When I am trying to "preload" the lib to the server, that is not want to load it.
I am tried with LD_32_PRELOAD and with another start.sh too, but same results.
The lib_main function does not write nothing. eg: **** Hooking Phase completed! or bla bla blaaa
- FreeBSD 8.2-RELEASE-p4 (DHOST)(Daroo 1678)
- game_r34083_32(7,9mb)
- libstdc++.so.6(4,8mb) installed
So.. why do not working? What am I doing wrong?
shart.sh:
Code:
#/bin/sh ORIGCHANNELS=$(cat ./daroo/channels.txt) if [ "$1" != '' ] && [ "$1" = "quickstart" ] && [ "$2" != '' ];then if [ "$2" -le $ORIGCHANNELS ];then CHANNELS="$2" else exit fi else echo -e "\033[31m How many channels do you want to start?\033[0m" read CHANNELS fi if [ "$CHANNELS" -gt $ORIGCHANNELS ];then echo -e "\033[31m You can choose only $ORIGCHANNELS channel!)\033[0m" exit fi echo -e "\033[31m DB starting...\033[0m" cd db ./db & cd .. echo -e "\033[31m Auth starting...\033[0m" cd auth ./auth & cd .. while [ $CHANNELS -ge 1 ] do echo -e "\033[31m Channel "$CHANNELS" starting...\033[0m" sleep 1 cd "./channel"$CHANNELS && env LD_PRELOAD=/usr/home/game/share/item2_pc2.lib.so ./game & sleep 1 cd .. CHANNELS=$(( $CHANNELS-1 )) sleep 1 done echo -e "\033[31m Channel 99 starting...\033[0m" cd ./game99 && env LD_PRELOAD=/usr/home/game/share/item2_pc2.lib.so ./game & cd .. sleep 4 echo -e "\033[31m The server is running. Wait ~1Min and connect!\033[0m"
Code:
Channel 99 starting... LD_PRELOAD=/usr/home/game/share/item2_pc2.lib.so USER=root SSH_CLIENT=192.168.56.1 1098 22 MACHTYPE=i386 MAIL=/var/mail/root VENDOR=intel SHLVL=1 HOME=/root OLDPWD=/usr/home/game SSH_TTY=/dev/pts/0 PAGER=more GROUP=wheel LOGNAME=root TERM=xterm BLOCKSIZE=K PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin REMOTEHOST=192.168.56.1 SHELL=/bin/csh HOST=P3NG3R OSTYPE=FreeBSD PWD=/usr/home/game/game99 SSH_CONNECTION=192.168.56.1 1098 192.168.56.101 22 FTP_PASSIVE_MODE=YES HOSTTYPE=FreeBSD EDITOR=vi PUBLIC_IP: 192.168.56.101 interface em0 HOSTNAME: game99 AsyncSQL: connected to localhost (reconnect 1) CommonSQL connected Setting Locale "hungary" (Path: locale/hungary) Setting DB to locale latin2 AsyncSQL: connected to localhost (reconnect 1) PlayerSQL connected LogSQL connected AsyncSQL: connected to localhost (reconnect 1) AsyncSQL: connected to localhost (reconnect 1)
Code:
when 9010.take with pc.is_gm() begin chat(item_name(item.get_vnum()).." deleted. | wearflag: "..item2.get_wearflag()) item.remove() end
Code:
SYSERR: Oct 6 15:12:59 :: RunState: LUA_ERROR: [string "dev_test"]:1: attempt to index global `item2` (a nil value) SYSERR: Oct 6 15:12:59 :: WriteRunningStateToSyserr: LUA_ERROR: quest dev_test.start click
I hope someone can help to me.
PS.: On "2011files" alias Franzi/Howman files with r2089M_32 game core works the Costume lib by Ricky92
Thank you in advance,
P3NG3R