Jump to content

Game 34k :<


Go to solution Solved by pbuzz,

Recommended Posts

  • Premium

Hello,  I want to start with that am completly new to this kind of stuff. I would like to know how to change TXT files into MYSQL files....

 

I would like to get as much as it is possible detailed TuT that will show me  how to do it. I can do skype conversation or teamviewer lesson: Why not? :D

 

Soo in quick words...

 

txt = mob proto and rest 

I want this to be readed from mysql not txt. :D

 

 

Thank you very much.

Link to comment
Share on other sites

  • Premium

you already got your answer, download that lib and change your start.sh script to load it when db starts:

env LD_PRELOAD="path_to_your_lib/libdb_notxt.so"

When i do this after that my game or db isn't starting so i have no clue what is wrong. Under the code i add this line with envPreload and after that game or db isnt starting.... help

Link to comment
Share on other sites

  • Premium

Right....
 
 
My Console ! https://metin2.download/picture/UJn7LUGA7VcJhZU5q8S82gwOB75HQbyb/.png
 
My start.sh script:

 

#!/bin/sh



# -------------------------------------- #
# Script to ecute all required files     #
# for metin2 game server.                #
# -------------------------------------- #
# Copyright © Ethoard (www.ethoard.tk) #
# -------------------------------------- #

echo -e "033[32m"
read -p "How many CHannels do you want to run? (1/4) : " rch

if [ -z $rch ] || [ $rch -lt 1 ] || [ $rch -gt 4 ] ; then
    exit
fi

echo -e "033[0m"
./clear.sh
echo -e "033[32m"

SFROOT=$PWD
echo -e "# ---------------------------------------------------------------------------- #"
echo -e "# DB is starting..."
cd $SFROOT/db/
# ./db & sleep 2
./db >> start.log 2>&1 & sleep 2
./db && env LD_PRELOAD="usr/lib/libdb_notxt.so" ./db &

i1=1
while [ $i1 -le $rch ]
do
    for i2 in 1 2
    do
        echo -e "# Launching ch$i1$i2..."
        cd $SFROOT/chs/ch$i1$i2/
        # ./ch$i1$i2 & sleep 1
        ./ch$i1$i2 >> start.log 2>&1 & sleep 1
        # env LD_PRELOAD=/usr/home/m2lib/gamelib.so ./ch$i1$i2 >> start.log 2>&1 & sleep 1
    done
    i1=$(( $i1 + 1 ))
done

echo -e "# Launching ch99..."
cd $SFROOT/chs/ch99/
# ./ch99 & sleep 1
./ch99 >> start.log 2>&1 & sleep 1
# env LD_PRELOAD=/usr/home/m2lib/gamelib.so ./ch99 >> start.log 2>&1 & sleep 1

echo -e "# Launching auth..."
cd $SFROOT/auth/
# ./auth & sleep 1
./auth >> start.log 2>&1 & sleep 1

echo -e "# ---------------------------------------------------------------------------- #"
echo -e "033[0m"

 

I would like to say that i have renamed mobproto and itemproto to different names :P

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

post what it says when you type

uname -a

in putty.

#!/bin/sh

# -------------------------------------- #
# Script to ecute all required files     #
# for metin2 game server.                #
# -------------------------------------- #
# Copyright © Ethoard (www.ethoard.tk) #
# -------------------------------------- #

echo -e "033[32m"
read -p "How many CHannels do you want to run? (1/4) : " rch

if [ -z $rch ] || [ $rch -lt 1 ] || [ $rch -gt 4 ] ; then
    exit
fi

echo -e "033[0m"
./clear.sh
echo -e "033[32m"

SFROOT=$PWD
echo -e "# ---------------------------------------------------------------------------- #"
echo -e "# DB is starting..."
cd $SFROOT/db/
# ./db & sleep 2
./db >> start.log 2>&1 & sleep 2
./db && env LD_PRELOAD="/usr/lib/libdb_notxt.so" ./db &

i1=1
while [ $i1 -le $rch ]
do
    for i2 in 1 2
    do
        echo -e "# Launching ch$i1$i2..."
        cd $SFROOT/chs/ch$i1$i2/
        # ./ch$i1$i2 & sleep 1
        ./ch$i1$i2 >> start.log 2>&1 & sleep 1
        # env LD_PRELOAD=/usr/home/m2lib/gamelib.so ./ch$i1$i2 >> start.log 2>&1 & sleep 1
    done
    i1=$(( $i1 + 1 ))
done

echo -e "# Launching ch99..."
cd $SFROOT/chs/ch99/
# ./ch99 & sleep 1
./ch99 >> start.log 2>&1 & sleep 1
# env LD_PRELOAD=/usr/home/m2lib/gamelib.so ./ch99 >> start.log 2>&1 & sleep 1

echo -e "# Launching auth..."
cd $SFROOT/auth/
# ./auth & sleep 1
./auth >> start.log 2>&1 & sleep 1

echo -e "# ---------------------------------------------------------------------------- #"
echo -e "033[0m"

The script for now i think it's fixed.

Put that lib into /usr/lib/

i mean libdb_notxt.so , change permissions to 755 and then restart your server

should work for now

  • Love 1
Link to comment
Share on other sites

  • Premium

https://metin2.download/picture/6ehI8C0S4ksf349qV71j1ijg8z936HjA/.png                                           uname -a

 

 

After running your script ->> https://metin2.download/picture/Ljdtmg7HKkt9T956Ut661oQvq41PvmtR/.pngJust launched CH1 so I think it looks okay.

 

 

 

@ After when I send stop command... I have no clue why this happens.

https://metin2.download/picture/VPbzYnMQ2L4mCIRKFQJR5PiHQ79wQOwt/.png

 

@ This is my ps -x command after sending /start command to the server

https://metin2.download/picture/48aKlc8nTJyZs1iQpYQ0f5t6HGdC7hqW/.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

https://metin2.download/picture/OqcF403t41j8kSDe4iRJWw0gVucGmEku/.png

 

 

After replacing :P Well at least there isn't any crazy symbols as they were before ;P    https://metin2.download/picture/Ljdtmg7HKkt9T956Ut661oQvq41PvmtR/.png             <<<<<---- Before

 

 

 

Pubbz sorry I knew I wrote your name wrongly :P I really sorry but do you have skype maybe? It would be quicker ;p

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.