Skocz do zawartości

Dołącz do społeczności!

👋 Witaj na MPCForum!

Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

  • ✅ Pełny dostęp do działów i ukrytych treści
  • ✅ Możliwość pisania i odpowiadania w tematach
  • ✅ System prywatnych wiadomości
  • ✅ Zbieranie reputacji i rozwijanie swojego profilu
  • ✅ Członkostwo w jednej z największych społeczności graczy

👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

Zarejestruj się teraz

Rekomendowane odpowiedzi

  • 1 miesiąc temu...
  • Odpowiedzi 63
  • Wyświetleń 30.6 tys.
  • Dodano
  • Ostatnia odpowiedź

Najlepsi użytkownicy w tym temacie

Opublikowano
Pobrany silnik stąd usunąłem -WALL i dalej w********a błędy, już powoli nie mam sił i głowy do tego jakieś pomysły ?

 

-D_THREAD_SAFE -D_REENTRANT -g -O1 -MT weapons.o -MD -MP -MF .deps/weapons.Tpo -c -o weapons.o weapons.cpp

mv -f .deps/weapons.Tpo .deps/weapons.Po

g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__     -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -g -O1 -MT vocation.o -MD -MP -MF .deps/vocation.Tpo -c -o vocation.o vocation.cpp

mv -f .deps/vocation.Tpo .deps/vocation.Po

g++ -I/usr/include/libxml2  -I/usr/include/lua5.1  -D__USE_MYSQL__     -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -g -O1   -o theforgottenserver actions.o  allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o    depot.o exception.o fileloader.o game.o  globalevent.o group.o gui.o house.o housetile.o inputbox.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o playerbox.o player.o position.o protocol.o protocolgame.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o sha1.o spawn.o spells.o status.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1 -lmysqlclient -lboost_filesystem -lboost_date_time -lboost_system -lboost_regex -lboost_thread -lgmp  -lxml2
  • 3 tygodnie później...
Opublikowano

meter -pipe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In member function 'Item* Game::findItemOfType(Cylinder*, uint16_t, bool, int32_t)':
game.cpp:1788:10: error: converting 'false' to pointer type 'Item*' [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/usr/src/ots'
make: *** [all] Error 2
 

zmieniłem z false na NULL

 

A teraz błąd

game.cpp: In constructor 'Game::Game()':
game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-bounds]
In file included from game.cpp:18:0:
game.h: In member function 'void Game::globalSave()':
game.h:623:76: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: In member function 'void Game::prepareGlobalSave()':
game.cpp:6256:30: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6258:22: error: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors
make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/usr/src/ots'
make: *** [all] Error 2
 

 

ktoś cos? ;)

  • 4 miesiące temu...
Opublikowano
game.cpp: In constructor 'Game::Game()':
game.cpp:80:22: error: array subscript is above array bounds [-Werror=array-bounds]
game.h: In member function 'void Game::globalSave()':
game.h:623:76: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: In member function 'void Game::prepareGlobalSave()':
game.cpp:6256:30: error: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6258:22: error: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors
make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/root/wow'
make: *** [all] Error 2


Tyle czasu zanim udało się dojść do komendy make.. i teraz to :/ bardzo proszę o odpowiedź bo osiwiałem już :(
  • 2 miesiące temu...
Opublikowano

luascript.cpp:1322:9: error: expected ')' at end of input
luascript.cpp:1322:9: error: expected statement at end of input
luascript.cpp:1322:9: error: expected '}' at end of input
Makefile:553: recipe for target 'luascript.o' failed
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory '/home/server'
Makefile:404: recipe for target 'all' failed
make: *** [all] Error 2

 

 

aBBJCq0.png

Opublikowano

Przy odpalaniu serwera:
 

login as: root
[email protected]'s password:
Debian GNU/Linux 7.11

Linux ns377969.ip-5-196-89.eu 3.14.32-xxxx-grs-ipv6-64 #9 SMP Thu Oct 20 14:53:52 CEST 2016 x86_64 GNU/Linux

server    : 539686
hostname  : ns377969.ip-5-196-89.eu
eth0 IPv4 : 5.196.89.197
eth0 IPv6 : 2001:41d0:a:fcc5::1/128
Last login: Wed Jun  7 14:11:55 2017 from x1-6-40-65-a3-e9-45-c2.cpe.webspeed.dk
root@ns377969:~# cd /home/ots
root@ns377969:/home/ots# ./theforgottenserver
The Forgotten Server - Edited By Cyko V8, version 0.3.6 - Edited By Cyko V8 (Crying Damson - Edited By Cyko V8)
Compiled with GNU C++ version 4.7.2 at Jun  7 2017, 13:25:06.
A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornholijo.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using plaintext encryption
>> Checking software version... failed checking - malformed file.
>> Fetching blacklist
>> Loading RSA key
>> Starting SQL connection
Failed connecting to database - MYSQL ERROR: Access denied for user 'root'@'localhost' (using password: NO) (1045)

> ERROR: Couldn't estabilish connection to SQL database!
 

 

Co jest nie tak ?

Opublikowano

0.3.6

 

[Warning - Protocol::RSA_decrypt] Not valid packet size
 
ktoś cos?
Dnia ‎07‎.‎06‎.‎2017 o 14:21, Awrukowicz napisał:

Przy odpalaniu serwera:
 

login as: root
[email protected]'s password:
Debian GNU/Linux 7.11

Linux ns377969.ip-5-196-89.eu 3.14.32-xxxx-grs-ipv6-64 #9 SMP Thu Oct 20 14:53:52 CEST 2016 x86_64 GNU/Linux

server    : 539686
hostname  : ns377969.ip-5-196-89.eu
eth0 IPv4 : 5.196.89.197
eth0 IPv6 : 2001:41d0:a:fcc5::1/128
Last login: Wed Jun  7 14:11:55 2017 from x1-6-40-65-a3-e9-45-c2.cpe.webspeed.dk
root@ns377969:~# cd /home/ots
root@ns377969:/home/ots# ./theforgottenserver
The Forgotten Server - Edited By Cyko V8, version 0.3.6 - Edited By Cyko V8 (Crying Damson - Edited By Cyko V8)
Compiled with GNU C++ version 4.7.2 at Jun  7 2017, 13:25:06.
A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornholijo.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using plaintext encryption
>> Checking software version... failed checking - malformed file.
>> Fetching blacklist
>> Loading RSA key
>> Starting SQL connection
Failed connecting to database - MYSQL ERROR: Access denied for user 'root'@'localhost' (using password: NO) (1045)

> ERROR: Couldn't estabilish connection to SQL database!
 

 

Co jest nie tak ?

tez tak miałem, szybki reebocik i odczekanie kilku min az mysql wystartuje pomaga

  • 6 miesięcy temu...
  • 2 tygodnie później...
Opublikowano

Witam. Podczas odpalania tfs 0.4.0 na debianie 8 >> Opening logs ten napis się pojawia i cały czas jest, nie przechodzi dalej, cały czas te logi sprawdza.

Opublikowano

Mam problem taki

 

 luascript.cpp
luascript.cpp: In member function 'bool LuaInterface::loadDirectory(const string&, Npc*, bool)':
luascript.cpp:744:61: error: no match for 'operator+' in 'boost::filesystem3::path::filename() const() + "/"'
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/ot'
make: *** [all] Error 2

 

Usunałem -Wall nic nie dało, zmieniłem to leaf() usunął się jeden błąd z tego pliku ale ten został.

10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000logoskillowcy.png

 

Opublikowano

Gdzie mam to wstawić? W załączniku ten plik

 

luascript.cpp

10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000logoskillowcy.png

 

Opublikowano
  • Autor

Sprawdz to:

luascript.cpp

	
bool LuaInterface::loadDirectory(const std::string& dir, Npc* npc/* = NULL*/, bool recursively/* = false*/)
{
    StringVec files;
    for(boost::filesystem::directory_iterator it(dir), end; it != end; ++it)
    {
        std::string s = it->leaf();
        if(boost::filesystem::is_directory(it->status()))
        {
            if(recursively && !loadDirectory((it->path() / s).native(), npc, recursively))
                return false;
        }
        else if((s.size() > 4 ? s.substr(s.size() - 4) : "") == ".lua")
            files.push_back(s);
    }
	    std::sort(files.begin(), files.end());
    for(StringVec::iterator it = files.begin(); it != files.end(); ++it)
    {
        if(!loadFile(dir + (*it), npc))
            return false;
    }
	    return true;
}

Opublikowano
34 minuty temu, rafaeru napisał:

Sprawdz to:

luascript.cpp

 

  Ukryj treść

 



	
bool LuaInterface::loadDirectory(const std::string& dir, Npc* npc/* = NULL*/, bool recursively/* = false*/)
{
    StringVec files;
    for(boost::filesystem::directory_iterator it(dir), end; it != end; ++it)
    {
        std::string s = it->leaf();
        if(boost::filesystem::is_directory(it->status()))
        {
            if(recursively && !loadDirectory((it->path() / s).native(), npc, recursively))
                return false;
        }
        else if((s.size() > 4 ? s.substr(s.size() - 4) : "") == ".lua")
            files.push_back(s);
    }
	    std::sort(files.begin(), files.end());
    for(StringVec::iterator it = files.begin(); it != files.end(); ++it)
    {
        if(!loadFile(dir + (*it), npc))
            return false;
    }
	    return true;
}

 

 

Błąd:

 


luascript.cpp: In member function 'bool LuaInterface::loadDirectory(const string&, Npc*, bool)':
luascript.cpp:741:29: error: 'class boost::filesystem3::directory_entry' has no member named 'leaf'
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/ot'
make: *** [all] Error 2

34 minuty temu, rafaeru napisał:

Sprawdz to:

luascript.cpp

 

  Ukryj treść

 



	
bool LuaInterface::loadDirectory(const std::string& dir, Npc* npc/* = NULL*/, bool recursively/* = false*/)
{
    StringVec files;
    for(boost::filesystem::directory_iterator it(dir), end; it != end; ++it)
    {
        std::string s = it->leaf();
        if(boost::filesystem::is_directory(it->status()))
        {
            if(recursively && !loadDirectory((it->path() / s).native(), npc, recursively))
                return false;
        }
        else if((s.size() > 4 ? s.substr(s.size() - 4) : "") == ".lua")
            files.push_back(s);
    }
	    std::sort(files.begin(), files.end());
    for(StringVec::iterator it = files.begin(); it != files.end(); ++it)
    {
        if(!loadFile(dir + (*it), npc))
            return false;
    }
	    return true;
}

 

 

Błąd:

 


luascript.cpp: In member function 'bool LuaInterface::loadDirectory(const string&, Npc*, bool)':
luascript.cpp:741:29: error: 'class boost::filesystem3::directory_entry' has no member named 'leaf'
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/ot'
make: *** [all] Error 2

10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000logoskillowcy.png

 

  • 2 miesiące temu...
Opublikowano

Witam serdecznie na forum. Mam problem: 

collect2: error: ld returned 1 exit status
Makefile:462: recipe for target 'theforgottenserver' failed
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory '/ots/otss/sources'
Makefile:404: recipe for target 'all' failed
make: *** [all] Error 2

Proszę o pomoc :)

Opublikowano

total       used       free     shared    buffers     cached
Mem:          2048       1625        422        144          0       1379
-/+ buffers/cache:        245       1802
Swap:         1024        123        900
Nie jestem pewien czy rozumiem pojęcie tfs. Ściągnąłem silnik z otland i nazywa się on: "[8.60] Thais War with PvP bots" o to pytasz?

Edytowane przez Chomsontoja

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Konto

Nawigacja

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.