Jump to content
  • 0

Game 34k :<


Adrian2

Question

  • VIP

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

19 answers to this question

Recommended Posts

  • 0
  • VIP

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
  • 0

add it only to db

 

cd db && env LD_PRELOAD="you_lib_path/libdb_notxt.so" ./db &

 

ps. change "LD_PRELOAD" to "LD_PRELOAD_32" if you use freebsd 64 bits, lib path with your's (and 'db' if needed)

  • Love 1
Link to comment
  • 0
  • VIP

well I can say that when i added this script en_preload then I got error when i try to shut down my server.

 

The error is that is says Proccess doesn't exist so it can kill it. and got loads of random letters not normal just japanese next to item proto in my console.

Link to comment
  • 0
  • VIP

Right....
 
 
My Console ! http://prntscr.com/63hw1y
 
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

Link to comment
  • 0
  • VIP

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
  • 0
  • VIP

http://prntscr.com/63on5                                           uname -a

 

 

After running your script ->> http://prntscr.com/63onvzJust launched CH1 so I think it looks okay.

 

 

 

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

http://prntscr.com/63oovu

 

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

http://prntscr.com/63opaa

Link to comment
  • 0

try change:

# ./db & sleep 2
./db >> start.log 2>&1 & sleep 2
./db && env LD_PRELOAD="/usr/lib/libdb_notxt.so" ./db &

to:

# ./db & sleep 2
./db >> start.log 2>&1 & sleep 2
# env LD_PRELOAD=/usr/lib/libdb_notxt.so ./db >> start.log 2>&1 & sleep 
  • Love 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.