• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Problem Lua

Status
Not open for further replies.

Avatar789

Enthusiast
Hello, I have a problem, I compensated Elune did I wrote in a previous topic to do everything in one folder and created maps and configs folder skripts. Tried to put this script lua http://emudevs.com/showthread.php/1176-TrinityCore-Transmogrification-Eluna but when the server writes that not one lua script not loaded. What's the problem? Server OS Centos 6.


I apologize if there are errors I am from Russia and badly know English translate through google translate
 

Tommy

Founder
Would be nice if you showed us the errors you get. Kinda hard to solve this without the errors. ^.^
 

Avatar789

Enthusiast
Gives no errors, it just simply does not load lua when the server logs in
Code:
Loading C++ scripts
Eluna Lua Engine loaded.
Eluna::Loaded 0 Lua scripts..
Although the script but he added it will not load or rabotaett it in the game: (
 

Avatar789

Enthusiast
VrYFOw7U9n.png

BCPWIxSe2.png
 

Avatar789

Enthusiast
Use here is such a restarter
Code:
#!/bin/sh
while true ; do
servlog='/home/fun/sarglua/logs/Server.log';
outpatch='/home/fun/sarglua/logs/crash/';
date=`date "+%Y-%m-%d_%H:%M:%S"`;
echo "Server CRASHED !!! Start Bugreport System." >> $outpatch$date.txt;
echo "Server.log Log FILE Last 30 Lines:" >> $outpatch$date.txt;
cat $servlog | tail -n 30 >> $outpatch$date.txt;
echo "" >> $outpatch$date.txt;
echo "END bugtracker system." >> $outpatch$date.txt;
/home/fun/sarglua/bin/worldserver -c /home/fun/sarglua/bin/worldserver.conf 
done;
 

Foereaper

Founder
Are you running the restarter from a different directory than the world server binary? If so, copy paste the scripts folder into the restarter directory.
 
Last edited:

Hyperion

Founder
Use here is such a restarter
Code:
#!/bin/sh
while true ; do
servlog='/home/fun/sarglua/logs/Server.log';
outpatch='/home/fun/sarglua/logs/crash/';
date=`date "+%Y-%m-%d_%H:%M:%S"`;
echo "Server CRASHED !!! Start Bugreport System." >> $outpatch$date.txt;
echo "Server.log Log FILE Last 30 Lines:" >> $outpatch$date.txt;
cat $servlog | tail -n 30 >> $outpatch$date.txt;
echo "" >> $outpatch$date.txt;
echo "END bugtracker system." >> $outpatch$date.txt;
/home/fun/sarglua/bin/worldserver -c /home/fun/sarglua/bin/worldserver.conf 
done;

I know it's off topic, but your restart script is annoying, it already knows where to add to the crash log..
Should also run a screen with it...

Do:
Code:
touch /home/fun/sarglua/bin/world.sh && touch /home/fun/sarglua/bin/wcheck.sh

Paste this into world.sh:
Code:
SESSION="worldserver"
DAEMON="screen -d -m -S $SESSION /home/fun/sarglua/bin/wcheck.sh"

screen -r $SESSION -ls -q 2>&1 >/dev/null
echo -e ""
echo "World has been launched into the background."
echo -e ""
if [ $? -le 10 ]; then
        echo "Restarting $DAEMON"
        $DAEMON
fi
wait


Paste this into wcheck.sh:
Code:
while true; do
cd /home/fun/sarglua/bin/
./worldserver
wait
done

Then:
Code:
chmod +x /home/fun/sarglua/bin/world.sh && chmod +x /home/fun/sarglua/bin/wcheck.sh

and just run your server with ./world.sh

Don't need the extra stuff you got on yours.. and you can do the same for auth, then
just screen -x back into the screen's PTR to control.. ctrl a+d to detach from screen.

Also in the end, you should never, ever run servers like this as root. It should all be under a user.
 
Status
Not open for further replies.
Top