Jump to content

Defacer35

Inactive Member
  • Posts

    126
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Defacer35

  1. Thank you very much, i seen this "= default;" in c++11 features page but i been can't implement in the code, thanks for help, bless you.
  2. Hi devs, since i upgrade my compiler to C++23, i have some trouble with this warn, anyone knows to how to deal with it ? Best regards. inline TAffectFlag& operator = (const TAffectFlag& rhs) { bits[0] = rhs.bits[0]; bits[1] = rhs.bits[1]; return *this; }
  3. Great work, if any one need the official FTP adresses, i have some of them ; [Hidden Content] [Hidden Content] [Hidden Content] Good luck with this, best regards.
  4. What a nostalgia, this pic give me a goosebumps.Thank you !
  5. Marty, IRA, Fliege for basic. Otherwise Owsap.
  6. First of all type /shutdown in game after this wait 5 min (cache) after 5 min close auth and channel then db. Thats it.
  7. CXX = g++10 BIN = ../libsql.a CFLAGS = -I/usr/local/include/mysql -Wall -O2 -ggdb3 -g3 -std=gnu++20 -pipe -mtune=i386 -fstack-protector -static CPP = AsyncSQL.cpp Semaphore.cpp Statement.cpp Tellwait.cpp all: $(BIN) clean: rm -f *.o rm -f $(BIN) %.o: %.cpp @echo -e "\033[0;32m[LibSQL]\033[0m \033[0;33mDerleniyor;\033[0m" $* @$(CXX) $(CFLAGS) -c $^ -o $@ $(BIN): $(CPP:%.cpp=%.o) @ar cru $(BIN) $^ @ranlib $(BIN) chmod 700 $(BIN)
  8. Hi, this syslog is the basicly heart beat of the db.I think this syslog useless, if you dont want to see this ; Open db/src/ClientManager.cpp Find ; else { pt_log ("[%9d] return %d/%d/%d/%d async %d/%d/%d%/%d", thecore_heart->pulse, CDBManager::instance().CountReturnQuery (SQL_PLAYER), CDBManager::instance().CountReturnResult (SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished (SQL_PLAYER), CDBManager::instance().CountReturnCopiedQuery (SQL_PLAYER), CDBManager::instance().CountAsyncQuery (SQL_PLAYER), CDBManager::instance().CountAsyncResult (SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished (SQL_PLAYER), CDBManager::instance().CountAsyncCopiedQuery (SQL_PLAYER)); if ((thecore_heart->pulse % 50) == 0) sys_log (0, "[%9d] return %d/%d/%d async %d/%d/%d", thecore_heart->pulse, CDBManager::instance().CountReturnQuery (SQL_PLAYER), CDBManager::instance().CountReturnResult (SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished (SQL_PLAYER), CDBManager::instance().CountAsyncQuery (SQL_PLAYER), CDBManager::instance().CountAsyncResult (SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished (SQL_PLAYER)); } Change like this ; else { //pt_log ("[%9d] return %d/%d/%d/%d async %d/%d/%d%/%d", //thecore_heart->pulse, CDBManager::instance().CountReturnQuery (SQL_PLAYER), CDBManager::instance().CountReturnResult (SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished (SQL_PLAYER), CDBManager::instance().CountReturnCopiedQuery (SQL_PLAYER), CDBManager::instance().CountAsyncQuery (SQL_PLAYER), CDBManager::instance().CountAsyncResult (SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished (SQL_PLAYER), CDBManager::instance().CountAsyncCopiedQuery (SQL_PLAYER)/*)*/; if ((thecore_heart->pulse % 50) == 0) //sys_log (0, "[%9d] return %d/%d/%d async %d/%d/%d", //thecore_heart->pulse, CDBManager::instance().CountReturnQuery (SQL_PLAYER), CDBManager::instance().CountReturnResult (SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished (SQL_PLAYER), CDBManager::instance().CountAsyncQuery (SQL_PLAYER), CDBManager::instance().CountAsyncResult (SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished (SQL_PLAYER)/*)*/; } Best Regards.
  9. Hello devs, after a C++20 released i want to upgrade my compiler support 17 to 20 but i have little trouble with libsql ; Best Regards.
  10. Good as always, best Turk i know. Thanks for share.
  11. Hi devs, as i said compiler cant find (i guess) boost and give me error the problem ; ClientManager.cpp: In member function 'void CClientManager::Destroy()': ClientManager.cpp:68:7: error: 'itertype' was not declared in this scope 68 | for (itertype(m_peerList) i = m_peerList.begin(); i != m_peerList.end(); ++i) | ^~~~~~~~ ClientManager.cpp:68:52: error: 'i' was not declared in this scope 68 | for (itertype(m_peerList) i = m_peerList.begin(); i != m_peerList.end(); ++i) | ^ ClientManager.cpp: In member function 'void CClientManager::MainLoop()': ClientManager.cpp:189:2: error: 'itertype' was not declared in this scope 189 | itertype(m_map_playerCache) it = m_map_playerCache.begin(); | ^~~~~~~~ ClientManager.cpp:191:9: error: 'it' was not declared in this scope; did you mean 'int'? 191 | while (it != m_map_playerCache.end()) | ^~ | int ClientManager.cpp:202:9: error: 'it2' was not declared in this scope 202 | while (it2 != m_map_itemCache.end()) | ^~~ ClientManager.cpp:212:88: error: 'itPriceList' was not declared in this scope 212 | for (itertype(m_mapItemPriceListCache) itPriceList = m_mapItemPriceListCache.begin(); itPriceList != m_mapItemPriceListCache.end(); ++itPriceList) | ^~~~~~~~~~~ ClientManager.cpp: In member function 'void CClientManager::QUERY_BOOT(CPeer*, TPacketGDBoot*)': ClientManager.cpp:324:2: error: 'itertype' was not declared in this scope 324 | itertype(m_map_pkObjectTable) it = m_map_pkObjectTable.begin(); | ^~~~~~~~ ClientManager.cpp:326:9: error: 'it' was not declared in this scope; did you mean 'int'? 326 | while (it != m_map_pkObjectTable.end()) | ^~ | int ClientManager.cpp: In member function 'void CClientManager::SendPartyOnSetup(CPeer*)': ClientManager.cpp:370:7: error: 'itertype' was not declared in this scope 370 | for (itertype(pm) it_party = pm.begin(); it_party != pm.end(); ++it_party) | ^~~~~~~~ ClientManager.cpp:370:43: error: 'it_party' was not declared in this scope 370 | for (itertype(pm) it_party = pm.begin(); it_party != pm.end(); ++it_party) | ^~~~~~~~ ClientManager.cpp:376:73: error: 'it_member' was not declared in this scope 376 | for (itertype(it_party->second) it_member = it_party->second.begin(); it_member != it_party->second.end(); ++it_member) | ^~~~~~~~~ ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg*)': ClientManager.cpp:562:5: error: 'itertype' was not declared in this scope 562 | itertype(m_map_itemTableByVnum) it = m_map_itemTableByVnum.find(r.vnum); | ^~~~~~~~ ClientManager.cpp:564:9: error: 'it' was not declared in this scope; did you mean 'i'? 564 | if (it == m_map_itemTableByVnum.end()) | ^~ | i ClientManager.cpp:571:24: error: 'it' was not declared in this scope; did you mean 'i'? 571 | grid.Put(r.pos, 1, it->second->bSize); | ^~ | i ClientManager.cpp:596:6: error: 'itertype' was not declared in this scope 596 | itertype(m_map_itemTableByVnum) it = m_map_itemTableByVnum.find(pItemAward->dwVnum); This is my makefile include boost ; INCDIR += -I/usr/local/include/boost This is ClientManager.h ; #include <boost/unordered_map.hpp> #include <boost/unordered_set.hpp> #include "../../common/stl.h" #include "../../common/building.h" #include "Peer.h" #include "DBManager.h" #include "LoginData.h" Whats wrong ? Best regards..
  12. Hi devs, first of all i'm so mad at this point but i'm littlarly does everything to fix this. After a little MakeFile update (Nothing special just little updates) this error appears, what does i do wrong ? FIX - BIG THANKS FOR THE DENIZERI24 Open cmd_general.cpp Find ; #include <md5.h> Change ; #include <sys/md5.h> FIX - BIG THANKS FOR THE DENIZERI24 Best regards..
  13. Sadly i try this before this not the problem i think i'm try char name 2048 or 1024 or 512 or 256 also 64 - 128 getting same warn every time, i'm search almost every stackflow post but nothing get anything.. Btw thanks for your effort.
  14. First of all thanks for the answer, does that before but i have same warn again
  15. - SOLVED - Update system_cmd to 512 and char name to 128 thats solve the warning. - SOLVED - Hello devs, i have a little trouble here. name veriable has a char* but i have this warn what should i do ? Best regards.. void log_file_delete_old (const char* filename) { struct stat sb; int num1, num2; char buf[32]; char system_cmd[64]; struct tm new_tm; if (stat(filename, &sb) == -1) { perror("log_file_delete_old: stat"); return; } if (!S_ISDIR(sb.st_mode)) { return; } new_tm = *tm_calc(NULL, -log_keep_days); sprintf (buf, "%04d%02d%02d", new_tm.tm_year + 1900, new_tm.tm_mon + 1, new_tm.tm_mday); num1 = atoi(buf); struct dirent** namelist; int n; n = scandir (filename, &namelist, 0, alphasort); if (n < 0) { perror ("scandir"); } else { char name[MAXNAMLEN + 1]; while (n-- > 0) { strncpy (name, namelist[n]->d_name, 255); name[255] = '\0'; free (namelist[n]); if (*name == '.') { continue; } if (!isdigit (*name)) { continue; } num2 = atoi (name); if (num2 <= num1) { sprintf (system_cmd, "rm -rf %s/%s", filename, name); system (system_cmd); sys_log (0, "%s: SYSTEM_CMD: %s", __FUNCTION__, system_cmd); fprintf (stderr, "%s: SYSTEM_CMD: %s %s:%d %s:%d\n", __FUNCTION__, system_cmd, buf, num1, name, num2); } } } free (namelist); }
  16. I test it again, i'm connecting the game kill 5-6 mobs and i got dc maybe its the thing and skills not working and i used mainline_released for client and server. PhaseGame.cpp [Hidden Content] Stream.cpp [Hidden Content] Okey, i'm gonna look this.
  17. Hello devs, in the game skills not working, whats wrong ? Aug 20 02:05:51.551467 :: CQuestManager::Kill QUEST_KILL_EVENT (pc=57711, npc=454) Aug 20 02:05:55.551479 :: SkillHack: Skill(1) is not in container
×
×
  • 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.