Premium Adrian2 16 Posted February 7, 2015 Premium Share Posted February 7, 2015 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? Soo in quick words... txt = mob proto and rest I want this to be readed from mysql not txt. Thank you very much. Link to comment Share on other sites More sharing options...
Former Staff Shisui 491 Posted February 7, 2015 Former Staff Share Posted February 7, 2015 You need to put a lib. Or, if you want you can use some files that already has that PROBLEM solved.Download Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 7, 2015 Author Premium Share Posted February 7, 2015 You need to put a lib. Or, if you want you can use some files that already has that PROBLEM solved. Download do you own these types of files? Link to comment Share on other sites More sharing options...
Former Staff Shisui 491 Posted February 7, 2015 Former Staff Share Posted February 7, 2015 You need to put a lib. Or, if you want you can use some files that already has that PROBLEM solved. Download do you own these types of files? iMer does. Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 7, 2015 Author Premium Share Posted February 7, 2015 You need to put a lib. Or, if you want you can use some files that already has that PROBLEM solved. Download do you own these types of files? iMer does. Any different or just iMer? Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 8, 2015 Author Premium Share Posted February 8, 2015 bump Link to comment Share on other sites More sharing options...
Solution pbuzz 31 Posted February 8, 2015 Solution Share Posted February 8, 2015 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" 1 Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 8, 2015 Author Premium Share Posted February 8, 2015 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 More sharing options...
pbuzz 31 Posted February 8, 2015 Share Posted February 8, 2015 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) 1 Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 10, 2015 Author Premium Share Posted February 10, 2015 how can I know if I have done it correctly? I sthere is any way to check it? Link to comment Share on other sites More sharing options...
pbuzz 31 Posted February 10, 2015 Share Posted February 10, 2015 rename "item_proto.txt & mob_proto.txt" to smt else, reboot and start server, if you got errors about that then you did smt wrong... 1 Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 10, 2015 Author Premium Share Posted February 10, 2015 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 Share on other sites More sharing options...
pbuzz 31 Posted February 10, 2015 Share Posted February 10, 2015 post your start.sh script 1 Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 10, 2015 Author Premium Share Posted February 10, 2015 Will do when I will get back home Do you have maybe skype or teamviewer so you could help me out and sort this problem ? Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 10, 2015 Author Premium Share Posted February 10, 2015 (edited) 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 Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Dr3Ame3r 33 Posted February 10, 2015 Premium Share Posted February 10, 2015 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 1 Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 11, 2015 Author Premium Share Posted February 11, 2015 (edited) 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 August 30, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
pbuzz 31 Posted February 11, 2015 Share Posted February 11, 2015 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 1 Link to comment Share on other sites More sharing options...
Premium Adrian2 16 Posted February 11, 2015 Author Premium Share Posted February 11, 2015 (edited) https://metin2.download/picture/OqcF403t41j8kSDe4iRJWw0gVucGmEku/.png After replacing 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 I really sorry but do you have skype maybe? It would be quicker ;p Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
pbuzz 31 Posted February 11, 2015 Share Posted February 11, 2015 np, check your pm's Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now