JoccE
CopyLeft (ɔ)
So here i will post compiling errors and compiling solutions that i find while hosting my servers.
Feel free too post your solutions also and i will add them.
First one:
When compilling 8.6 Rev 5845: (Or normal rev around that number)
And you recive this error:
Then go to line 769 in Lua script and find this:
That you will have to change to this:
Now go to scriptmanager.cpp
and locate:
And change that also too
Now you recompile your server and everything will work just fine!
_________________________________________________________________
My 3777 does not hangs on restart/shutdown!
This is the solution for that.
open up your game.cpp
Search for "exit()"
here you will see this:
2 lines, one below and one above with "IF DEF Win"
Remove these 2 lines.
____________________________________
Avesta 7.4 -> 7.72 Error Message:
This is the solution:
Feel free too post your solutions also and i will add them.
First one:
When compilling 8.6 Rev 5845: (Or normal rev around that number)
And you recive this error:
Code:
luascript.cpp: In member function âbool LuaInterface::loadDirectory(std::string, bool, bool, Npc*)â:
luascript.cpp:769:39: error: conversion from âboost::filesystem::pathâ to non-scalar type âstd::string {aka std::basic_string<char>}â requested
Then go to line 769 in Lua script and find this:
Code:
std::string s = it->path().filename();
That you will have to change to this:
Code:
std::string s = it->path().filename().string();
Now go to scriptmanager.cpp
and locate:
Code:
std::string s = it->path().filename();
Code:
std::string s = it->path().filename().string();
Now you recompile your server and everything will work just fine!
_________________________________________________________________
My 3777 does not hangs on restart/shutdown!
This is the solution for that.
open up your game.cpp
Search for "exit()"
here you will see this:
2 lines, one below and one above with "IF DEF Win"
Remove these 2 lines.
____________________________________
Avesta 7.4 -> 7.72 Error Message:
Code:
make all-am
make[1]: Entering directory `/home/jocce/trunk/src'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -D__ tainer.cpp
In file included from cylinder.h:25:0,
from container.h:25,
from container.cpp:22:
thing.h: In member function âvirtual std::string Thing::getXRayDescription() con
thing.h:121:21: error: aggregate âstd::stringstream retâ has incomplete type and
thing.h:125:2: warning: control reaches end of non-void function [-Wreturn-type]
make[1]: *** [container.o] Error 1
make[1]: Leaving directory `/home/jocce/trunk/src'
make: *** [all] Error 2
This is the solution:
In thing.h under
addCode:#include "position.h"
Code:#include <sstream>
This should fix error
EDIT:
You will encounter another error so in otserv.cpp under
Code:#include <boost/asio.hpp>
add
Code:#include <sys/signal.h>
Last edited: