Register for your free account! | Forgot your password?

Go Back   elitepvpers > Metin2 > Metin2 PServer - Discussions / Questions
You last visited: Today at 13:09

  • Please register to post and access all features, it's quick, easy and FREE!


[Q|H] lib.so correct preload

Reply
 
Old   #1
 
elite*gold: 50
Join Date: May 2011
Posts: 265
Received Thanks: 980
[Q|H] lib.so correct preload

Hey e*pvp.

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"
These infos what the BSD write to the screen.
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)
I wanted to test with this:
Code:
when 9010.take with pc.is_gm() begin
	chat(item_name(item.get_vnum()).." deleted. | wearflag: "..item2.get_wearflag())
	item.remove()
end
And here is the syserr:
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
So the server is not loaded the lib, but why?
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



xP3NG3Rx is offline  
Old 10/11/2013, 08:10   #2
 
elite*gold: 50
Join Date: May 2011
Posts: 265
Received Thanks: 980
#push


xP3NG3Rx is offline  
Reply

Tags
.so, item2, lib, libm2, pc2


Similar Threads
Battlefield 4 Preload?
09/30/2013 - Battlefield - 7 Replies
Also... Ich wollte mir die Beta schon runterladen, aber ich habe sie nicht in bei "Meine Spiele"... Wieso das? Ich besitze ein 64Bit Betriebssystem, also kann es daran nicht liegen. Mein Kumpel hatte sie gestern Abend direkt bei "Meine Spiele" nur...
Help how to correct?
08/21/2012 - Rappelz - 2 Replies
The acquaintance comes on an account, then is connected to the server and to it gives out such mistake.Excuse for my English.Here look please ! - MegaImg.ru
[Help]Preload window
12/30/2011 - Dekaron Private Server - 0 Replies
I just have a simple question, I used to know but i can't remember now that I need it lol :( Well the question if someone know how change the text "LOADING... 0%" on the preload window, if you don't understand me here i leave you a img: ...
Preload.
01/08/2010 - Dekaron Private Server - 8 Replies
Does the "Preloading" function actually works? Has anyone actually tested it out, if the maps load faster with preloading or no? (You can set the initial .pre file path in maplist) If you know it yourself or know someone who might now the...
Pa Correct nmn toh~
08/18/2008 - RF Online - 9 Replies
Sir..pa correct nmn sa makakabasa n2.. ung sinasabi po ng iba na sa Search lng mahahanap ung mga hacks na gusto ko... san ako mag Search d2 sa forums na toh oh sa iba?? pa correct ^^



All times are GMT +2. The time now is 13:09.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.